This repo is a springrass for React-Babel-Webpack project. You could use it as a base to build your own web app.
- Equip with React 0.14, ES6 & Babel 6
- Lint with ESlint and Airbnb's .eslintrc
- Build with Webpack
- Support hot module replacement
- Auto Open a new browser tab when Webpack loads, and reload the page when you modified the code
- Use Commitizen to produce commit message according to AngularJS convention
- Support git hook
pre-commit
used to lint and test your code - Support git hook
commit-msg
used to lint your commit message - Use conventional-changelog to generate
CHANGELOG.md
First, you should clone the repo and install the dependencies.
npm install -g cnpm --registry=https://registry.npm.taobao.org
$ git clone [email protected]:yplmail/ypl-react.git <yourAppName>
$ cd <yourAppName>
$ cnpm install
Then, launch the springrass app.
$ npm run start
$ npm run preventive
$ npm run production
MIT