slush-rr
v1.0.0
Published
A slush generator for apps using react and redux.
Readme
Slush React Redux
A slush generator for apps using react and redux.
Usage
npm install -g slush
npm install -g slush-rr
mkdir newProject && cd newProject
slush rrThis will install slush and the generator. Then it will run the generator in a directory called newProject.
Features
- Configured webpack with
- Configured dev server
- es2015, react, and stage-0
- auto eslints with js standard
- Use gulp to generate react components
- Mocha is setup with es6 support
- The redux chrome extension is setup
Commands
npm run test- Runs mochanpm run start- Runs the webpack dev servernpm run build:dev- Build for developmentnpm run build:pro- Build for productionnpm run gen:component- Generate a react component
Structure
/client- All files for the client side of the app.index.html- The front ends home pagebundle.js- The compiled javascript file./js- The containing directory for all javascript source filesindex.js- The main js file, used as the entry for webpack/reducers- The root directory for redux reducers/components- All react componentscontainers- React components which are connected to redux
/templates- Base files used for generation
