4.0.0 • Published 7 years ago
generator-react-lib v4.0.0
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-lib
Usage
Make a folder for your lib:
$ mkdir lib-name && cd lib-name
Generate the scaffolding:
$ yo react-lib
Development
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
License
MIT
4.0.0
7 years ago
3.0.0
7 years ago
2.0.10
7 years ago
2.0.9
7 years ago
2.0.8
7 years ago
2.0.7
7 years ago
2.0.6
7 years ago
2.0.5
7 years ago
2.0.4
7 years ago
2.0.3
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago