Setup a React app with Webpack using the ES6 syntax and ESLint for code quality.
Clone this project, then run in your console :
$ npm install
$ npm start
By default the app is available on http://localhost:8080
Execute test by running the following command :
$ npm test
Process coverage report :
$ npm run coverage
Coverage report is available in the test\coverage
folder.
The port number can be change in the package.json
:
"scripts": {
"start": "webpack-dev-server --port 8080 --hot --inline --content-base build/"
}
By default, tests are executed on Chrome. Use the browsers
configuration option in the karma.conf.test.js
file to override this behavior. (Firefox and Internet Explorer are available but disabled).
All rules can be overwrite in the .eslintrc
file.