Boilerplate for kick starting a project with the following technologies:
- React
- ES6 with Babel
- Webpack for bundling
- Webpack Dev Server
- React Hot Loader for tweaking React components in real time.
- Karma for running unit tests.
The various webpack options used have been explained in detailed as comments in the config file. Should help with understanding the nitty-gritty :)
Based on react-es6-webpack-boilerplate.
npm install
npm start
# Open http://localhost:5000
ESLint with React linting options have been enabled.
npm run lint
Start Karma test runner.
This will run the tests only one, ideal for CI (travis and such).
npm test
This will auto watch all files for changes and rerun the tests. Ideal for development.
npm run test_watch