Skip to content

xiaomaer/react-scaffolding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Scaffolding

react脚手架

特性

  • react
  • react-router(v4)
  • babel
  • eslint(基于airbnb)
  • es6
  • css/less/sass
  • webpack(v3)

配置

  • node
  • npm

安装与使用

npm install react-create-cli -g
create-react [projectName]
cd [projectName]
npm install

create-react相关命令

create-react [projectName] 创建项目
create-react -v 查看create-react版本号
create-react -h 查看帮助

启动命令

npm start:启动服务,支持热更新,端口号9999
npm run build:生产环境打包,支持压缩
npm run analyze: 生成环境打包模块分析
npm run fix:src:自动修复src目录下不符合eslint的代码
npm run fix:test: 自动修复test目录下不符合eslint的代码

目录结构

About

react项目脚手架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published