赞
踩
通过c-create-react-app可以自动配置webpack
脚手架模板:
c-create-react-app是一个更全面的react脚手架,相较于传统的creact-react-app,还集成了typescript、eslint、pritter、commitizen、husky,将开发者从繁琐的配置之中解脱出来,并且方便开发者基于此进行二次开发。
npm install c-create-react-app -g
c-create-react-app create yourProject
yourProject代表你项目的名称。之后c-create-react-app会自动下载脚手架,自动下载依赖包和启动脚手架。
之后会自动打开 http://localhost:3000 在你的浏览器。
启动:
npm run serve
打包:
npm run build
eslint检测:
npm run lint
eslint修复:
npm run lint_fix
git 提交和发布:
git cz
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。