https://github.com/k-w-wang/react-tool
脚手架工具
https://github.com/k-w-wang/react-tool
Last synced: 3 months ago
JSON representation
脚手架工具
- Host: GitHub
- URL: https://github.com/k-w-wang/react-tool
- Owner: k-w-wang
- Created: 2021-10-19T07:47:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-19T07:50:06.000Z (over 3 years ago)
- Last Synced: 2025-01-16T03:31:02.346Z (5 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
新建的脚手架,初步完善
全局安装脚手架
npm i k-react-cli -g使用脚手架初始化一个项目
kr-create 模版名称 自定义项目名称
kr-create: 创建命令
模版名称:[react:最精简初始模版,react-all:包含axios,ts,antd,less等]
自定义项目名称(my-app)
示例:
kr-create react my-app
cd my-app
npm install
启动
npm run start打包
npm run build