This is a very basic boilerplate with support for:
- React 17
- React Router
- Jest & Enzyme (unit tests)
- Webpack 5 (module bundler)
- Babel 7+
- ESLint with Airbnb standards
Just run npm install
to install the dependencies.
For active development you should run it with the following commands:
# Run it with watcher, so the process stays alive and it rerenders the page every time you apply a change to the code
npm start
This repository comes with Jest unit testing library with Enzyme, for React support, it also includes coverage report with Instanbul that can be found in the coverage
folder.
# You can run Jest with a watcher, so it updates when the code changes
npm run test:watch
# Run it once
npm run test
# or
npm test
# Run the coverage
npm run coverage
Running the following command:
npm build
It will generate the dist
folder with the minified code and vendor packages.