React + Webpack + Babel web application boilerplate
- JSX, ES6, and ES7 support with babel.js
- Source maps included in all builds
- Development server with hot reload when possible and refresh otherwise
- Production builds with cache busting and asset minification
- Testing environment using karma to run tests and mocha as the framework
- Code coverage when tests are run
- No gulp and no grunt, just npm run-scripts
> git clone https://github.com/AlexKVal/react-web-app-boilerplate.git project_name_folder
> cd project_name_folder
> npm install
> npm run dev
Browser window will auto-open and wait http://localhost:8080/
All scripts are run with npm run [script]
, for example: npm run test
.
build
- generate a minified build to public folderdev
- start development servertest
- run all testslint
- run linting (eslint + standard config)tdd
- continuously run tests watching for changes
See what each script does by looking at the scripts
section in package.json.
Used eslint
+ standard config for linting.
This boilerplate is heavily inspired by cesarandreu/web-app, gaearon/react-hot-boilerplate and react-bootstrap/react-bootstrap