0.1.1 • Published 7 years ago

create-rrr-app v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Create React Router Redux App

This is a react, react-router and redux combination with react-hot-loader, built on Facebook's create-react-app

If you are constantly using create-react-app in your daily work, and add react-hot-loader every time after ejecting the app, this package is just for you.

Install

To install create-rrr-app you need to simply run the command:

npm install create-rrr-app --global

Updating

Updating global packages is often forgotten. Since this is a new package, please check for updates time to time using this command:

npm update -g create-rrr-app

Usage

There is no configuration. The parameters are exactly same with create-react-app

create-rrr-app myApp

What is does?

This package is actually a simple system that automatically installs and ejects create-react-app.

  • Creates new project using create-react-app.
  • Ejects the project using npm run eject.
  • Installs additional required dependencies. (react, redux, react-redux, react-router-redux, react-thunk and for development: redux-logger, react-hot-loader)
  • Modifies webpack.config.dev.js for React hot reloading and defines project root as src folder to avoid using ./ or ../. (Instead of typing import SomeComp from '../../components/SomeComp' you can simply write import SomeComp from 'components/SomeComp')
  • Replaces src folder with pre-configured react, router, redux app.

Documentation

This is a automatic installer of create-react-app so after installation, please check Getting Started documentation of create-react-app.

Contributing

I plan to keep this package as simple as possible. So if you found a bug, feel free to open up an issue or send a pull request.

License

MIT (https://opensource.org/licenses/mit-license.php)