qingfengweb

今天介绍一个react脚手架,react-cli, 可以说是 vue-cli 的外表,react的心!

安装步骤:

npm install -g sao

sao yang302/react-cli new-project --install

cd new-project
npm install npm run dev npm run build npm run build --report npm run lint npm test

 

 

它包含了:

1,react全家桶

2,webpack热加载

3,Expressdev server

4,Proxy接口代理

5,Global-Variable全局变量,用来区分线上线下环境

6,ESlint

7,jest with Enzyme, to make unit test for react components easier.

 

运行起来是这样的

 

分类:

技术点:

相关文章:

  • 2022-01-02
  • 2019-07-02
  • 2021-11-15
  • 2021-11-05
  • 2022-01-19
  • 2021-07-31
  • 2021-11-07
  • 2021-11-05
猜你喜欢
  • 2021-11-05
  • 2018-01-11
  • 2021-11-05
  • 2021-11-05
  • 2021-06-20
  • 2021-04-13
  • 2018-07-25
相关资源
相似解决方案