pingjiang / react-boilerplate

Production-ready React+router+redux+less+hot-loader boilerplate with Poi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React boilerplate

Production-ready React+router+redux+less+hot-loader boilerplate with Poi.

Keywords: React.js, Redux, Hot Reloading, ESNext, Babel, react-router, Offline First, ServiceWorker, less, redux-saga

Features

Basically Poi works with a React.js app out of the box, but this example adds extra features:

  • Poi bundler.
  • ESLint config for build and code editor.
  • Hot module replacement with react-hot-loader.
  • Best practices.

Quick start

git clone --depth=1 https://github.com/pingjiang/react-boilerplate.git <YOUR_PROJECT_NAME>

Usage

In this directory run:

# start dev-server at http://localhost:4000
npm start

# eslint+prettier
npm run lint -- --fix

# production build
npm run build

# unit testing using jest
npm test

# e2e testing using cypress
npm run test:e2e

About

Production-ready React+router+redux+less+hot-loader boilerplate with Poi.


Languages

Language:JavaScript 90.4%Language:CSS 5.3%Language:HTML 4.3%