A react component generator with UMD build and browser testing infrastructure.
npm install generator-react-libA react component generator with UMD build and browser testing infrastructure.


+ NodeJS
+ Yeoman
* react - View layer
* babel - JS compiler
* webpack - UMD bundler
* jest - Test suite
* enzyme - React testing utils
* eslint - Style linter
Install it globally:
``sh`
$ npm install -g generator-react-lib
Make a folder for your lib:
`sh`
$ mkdir lib-name && cd lib-name
Generate the scaffolding:
`sh`
$ yo react-lib
Run the example app at http://localhost:8080:
``
$ npm start
Run tests and watch for code changes using jest:
``
$ npm test
Lint src and test files:
``
$ npm run lint
Generate UMD output in the lib folder (runs implicitly on npm version):
```
$ npm run build
MIT