1.0.0 • Published 10 years ago

generator-react-rocket v1.0.0

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

generator-react-rocket Build Status npm version

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-rocket

Usage

mkdir myapp && cd myapp
yo react-rocket

Run your tests (with Karma)

npm test

Gulp tasks

  • gulp or gulp 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

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:component

Future 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

1.0.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago