Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

react-lib-starter-kit Travis 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

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

License

MIT

About

starter kit for creating react lib with webpack2/babel/es6/es7, test/ci/codecoverage/umd/source map included

Topics

Resources

License

You can’t perform that action at this time.