Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.02 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.02 KB

React Component Builder

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

Install it

Just run npm install to install the dependencies.

Run it

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

Run the unit tests

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

Create the build

Running the following command:

npm build

It will generate the dist folder with the minified code and vendor packages.