A Yeoman generator to bootstrap a React/Flux application powered by Gulp! 🚀
- 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
npm install -g yo
npm install -g generator-react-rocket
mkdir myapp && cd myapp
yo react-rocket
gulp
orgulp serve
to start a developement web server with live reload (supports the--production
flag)gulp build
to build the app in dist/ directory (supports the--production
flag)gulp clean
to clean up dist/ directory
Generates a JSX component class in src/scripts/components
and the associated test file in src/scripts/components/__tests__
yo react-rocket:component
npm test
- More/better tests
- More sub-generators
Rocket, a Rails API application template.
MIT
- Fork it ( https://github.com/nsarno/generator-react-rocket/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request