React starter with ES6, grunt and webpack.
- React 0.14
- ES6 and JSX to ES5 via babel
- ES6 and JSX validation via ESLint
- webpack with react hot loader
- Grunt tasks
- Have NodeJS installed.
- Run these lines:
npm install -g grunt-cli
npm install
npm start
Note: npm start
will open localhost:3000 in Chrome.
If you do not install Chrome, you can use the no-chrome branch.
-
Other build tasks:
grunt build
: Build the project for distributing.grunt dev
: Build the project for developing or debugging.grunt
: Validate all script files.grunt serve
: Build and preview the project for developing.grunt serve:dist
Build and preview the project for distributing.
This project and code is available under the MIT license.
- React Documents or 中文版
- Grunt Tasks or 中文版
- Webpack Configuration
- Babel Presets
- React template projects: