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 startThis 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 coverageRunning the following command:
npm buildIt will generate the dist folder with the minified code and vendor packages.