项目作者: Alexander2317

项目描述 :
React boilerplate
高级语言: JavaScript
项目地址: git://github.com/Alexander2317/simple-react-boilerplate.git
创建时间: 2020-09-27T14:27:19Z
项目社区:https://github.com/Alexander2317/simple-react-boilerplate

开源协议:

下载


Simple boilerplate for React Applications

Settings for launch

  1. Install package manager yarn.
    npm install -g yarn
  2. Run the command in the console yarn install
  3. Run the command in the console yarn start
  4. Open the project in browser

Main command

  1. lint:js - check correct js code
  2. lint:css - check correct css code
  3. lint - base command wich combine lint:js and lint:css
  4. fix:js - formatting your js code
  5. fix:css - formatting your css code
  6. fix - base command wich combine fix:js and fix:css
  7. flow - check types
  8. test - run all unit tests
  9. test:report - generate report about tests
  10. start - command to start development server
  11. build - build project
  12. analyze - analyze your bundel project

For example yarn start - launch server
It’s not necessary to reload the page because we use Hot Module Replacement (HMR)

Main libraries

  • react
  • react-dom
  • redux
  • redux-saga
  • reselect
  • flow.js
  • postcss
  • babel
  • prettier
  • eslint
  • stylelint
  • HMR
  • Webpack
  • Jest
  • Enzyme