generator-react-lib
v4.0.0
Published
A react component generator with UMD build and browser testing infrastructure.
Maintainers
Readme
generator-react-lib
A react component generator with UMD build and browser testing infrastructure.
Requirements
- NodeJS
- Yeoman
Tech Stack
- react - View layer
- babel - JS compiler
- webpack - UMD bundler
- jest - Test suite
- enzyme - React testing utils
- eslint - Style linter
Setup
Install it globally:
$ npm install -g generator-react-libUsage
Make a folder for your lib:
$ mkdir lib-name && cd lib-nameGenerate the scaffolding:
$ yo react-libDevelopment
Run the example app at http://localhost:8080:
$ npm startRun tests and watch for code changes using jest:
$ npm testLint src and test files:
$ npm run lintGenerate UMD output in the lib folder (runs implicitly on npm version):
$ npm run buildLicense
MIT
