JonathanGuo / React-Redux-Saga-Boilerplate

A simple React boilerplate with redux, redux-saga and webpack configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ES6 React + Redux-Saga boilerplate using Webpack

Build Status PRs Welcome

Big thanks to KleoPetroff/react-webpack-boilerplate

The boilerplate includes:

  • React 16.8.0
  • ECMAScript 6 and JSX support
  • React Router v4
  • Component testing using Enzyme, Jest and redux-saga-test-plan
  • Code Coverage
  • Webpack v4 and Webpack Dev Server (v3.1.14) with Scope Hoisting enabled
  • Hot Module Replacement using react-hot-loader
  • ES6 linting with continuous linting on file change
  • SASS support
  • Separate CSS stylesheets generation
  • Automatic HTML generation
  • Production Config
  • Custom Babel 7 Preset with Decorators, Class Properties, Rest/Spread operator support
  • Export Separate Vendor Files
  • Redux
  • Redux-Saga
  • DotEnv
  • Flow

Starting the dev server

Make sure you have the latest Stable or LTS version of Node.js installed.

  1. git clone https://github.com/JonathanGuo/React-Redux-Saga-Boilerplate.git
  2. Run npm install or yarn install
  3. Start the dev server using npm start
  4. Open http://localhost:8080

Available Commands

  • npm start - start the dev server
  • npm clean - delete the dist folder
  • npm run production - create a production ready build in dist folder
  • npm run lint - execute an eslint check
  • npm test - run all tests
  • npm run test:watch - run all tests in watch mode
  • npm run coverage - generate code coverage report in the coverage folder

Code Coverage

The project is using the Jest Code Coverage tool. The reports are generated by running npm run coverage. All configurations are located in package.json, inside the jest object.

Production code

Run npm run production. The production-ready code will be located under dist folder.

Licence

React-Redux-Saga-Boilerplate is available under MIT.

About

A simple React boilerplate with redux, redux-saga and webpack configuration

License:MIT License


Languages

Language:JavaScript 96.5%Language:HTML 3.2%Language:CSS 0.2%