Skip to content

Simple boilerplate for React with Webpack and Jest support

Notifications You must be signed in to change notification settings

e-maad/react-component-builder

 
 

Repository files navigation

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.

About

Simple boilerplate for React with Webpack and Jest support

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.7%
  • SCSS 6.4%
  • HTML 1.1%
  • Dockerfile 0.8%