https://github.com/zxdong262/react-lib-starter-kit
starter kit for creating react lib with webpack2/babel/es6/es7, test/ci/codecoverage/umd/source map included
https://github.com/zxdong262/react-lib-starter-kit
library react starter-kit
Last synced: 2 months ago
JSON representation
starter kit for creating react lib with webpack2/babel/es6/es7, test/ci/codecoverage/umd/source map included
- Host: GitHub
- URL: https://github.com/zxdong262/react-lib-starter-kit
- Owner: zxdong262
- License: mit
- Created: 2016-09-18T13:42:20.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-04T12:59:56.000Z (over 9 years ago)
- Last Synced: 2026-03-12T13:48:17.154Z (4 months ago)
- Topics: library, react, starter-kit
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-lib-starter-kit [![Travis][build-badge]][build] [![Codecov][codecov-badge]][codecov]
starter kit for creating react lib with webpack2/babel/es6/es7, unit test/ci/codecoverage/umd/source map included.
## features
- only webpack, no gulp/grunt etc
- write es6/es7 code.
- dist minified/unmimified umd and source map
- test with karma-webpack
- code coverage
- live reload to code change(by webpack)
- proper comment header for distribution
- with ci, codecov badge( read `.travis.yml`)
- proper npm commands
## get/dev
```bash
git clone git@github.com:zxdong262/react-lib-starter-kit.git
cd react-lib-starter-kit
rm -rf .git
# reset vc
git init
git remote add origin your-git-url
npm i
npm i react react-dom
# start dev
npm start
# then edit src/*.jsx to see changes
# build (auto rebuild when code change)
npm run build
# test and create code coverage
npm run test
```
## real example
- [react-pagenav](https://github.com/zxdong262/react-pagenav)
## License
MIT
[build-badge]: https://img.shields.io/travis/zxdong262/react-lib-starter-kit/master.svg?style=flat-square
[build]: https://travis-ci.org/zxdong262/react-lib-starter-kit
[codecov-badge]: https://img.shields.io/codecov/c/github/zxdong262/react-lib-starter-kit/master.svg?style=flat-square
[codecov]: https://codecov.io/gh/zxdong262/react-lib-starter-kit