1.0.0 • Published 10 years ago
generator-react-rocket v1.0.0
generator-react-rocket

A Yeoman generator to bootstrap a React/Flux application powered by Gulp! 🚀
Features
- Flux directory structure
- Build with Gulp
- Compile React (JSX) components (with Babel)
- Handle CommonJS dependencies with Webpack
- ES6 to ES5 (with Babel)
- Lint JS and JSX code with JSHint
- Compile sass stylesheets
- Browser sync
- Uglify javascript with UglifyJS
- Minify css with gulp-minify-css
- Build for Production with
--production - Preprocess javascript with gulp-preprocess
- Components testing with Karma
- Component sub-generator
Getting Started
Install
npm install -g yo
npm install -g generator-react-rocketUsage
mkdir myapp && cd myapp
yo react-rocketRun your tests (with Karma)
npm testGulp tasks
gulporgulp serveto start a developement web server with live reload (supports the--productionflag)gulp buildto build the app in dist/ directory (supports the--productionflag)gulp cleanto clean up dist/ directory
react-rocket:component
Generates a JSX component class in src/scripts/components and the associated test file in src/scripts/components/__tests__
yo react-rocket:componentFuture improvements
- More sub-generators for commonly created files
- Remove npm dependencies and use bower components instead
- Create a gulp task to run tests
See also
Rocket, a Rails API application template.
License
MIT