Scaffolds a rapid development environment to create your React component packages quickly & efficiently using awesome React Hot Loader implementation.
- Ready-to-use Gulpfile with tasks such as serve, test, build.
- ES6 support via Browserify & Reactify
- Integrated Jest testing
Install Yeoman and React Hot Component generator:
npm install -g yo
npm install -g generator-react-hot-component
Navigate to folder where you wish to scaffold the project and run:
# if possible: nvm use 0.10
yo react-hot-component
Run gulp serve
and open http://localhost:3000
Optionally, gulp watch
will run JSHint to check your source files and will run tests when you modify the specs.
You can seperately execute your test specs with gulp test
. Please be sure that your Node.js version is ~0.10
since Jest might be buggy with newer versions.
Finally run gulp build
to generate distribution files.
Checkout gulpfile.js for stand-alone tasks.