项目作者: nhanhoangtrong

项目描述 :
Boilerplate for React + Redux + HMR development and production
高级语言: JavaScript
项目地址: git://github.com/nhanhoangtrong/react-babel-boilerplate.git
创建时间: 2016-10-26T12:50:08Z
项目社区:https://github.com/nhanhoangtrong/react-babel-boilerplate

开源协议:MIT License

下载


Kendy ReactJS Boilerplate

My ReactJS boilerplate using Babel, Webpack HMR, Jest Testing Framework and other stuffs.

1. Prerequisites

  • Node >= 8.10.0
  • Yarn >= 1.5.0

2. Installation

  • Clone repository:
  1. git clone git@github.com:nhanhoangtrong/react-babel-boilerplate.git
  • Change to working directory
  • Run bootstraping command:
  1. yarn
  • Build DLL file first:
  1. yarn build:dll
  • Start development server with:
  1. yarn dev

3. Scripts

3.1. Build DLL file

  1. yarn build:dll

3.2. Build production bundle

  1. yarn build

3.3. Start production server

  1. yarn start

3.4. Analyze production bundle

  1. yarn analyze

3.4. Run tests with Jest

  1. # Run tests
  2. yarn test
  3. # Run test and view coverage
  4. yarn coverage

3.5. Other utils

  1. # Run eslint error checking
  2. yarn lint
  3. # Run prettier formating
  4. yarn prettier

4. License

MIT License

Copyright (c) 2016 Kendy Hoang