bzzn-cli
v1.2.1
Published
## 使用说明
Downloads
27
Readme
前端脚手架
使用说明
- 安装 cli
npm install bzzn-cli -g --registry=https://npm.bzzndata.cn/
- 构建
bzzn-cli --create project-name --template pc-react
# 或
bzzn-cli -c project-name -t pc-react
- 运行,请参考各个项目模板中的
README.md
目录结构
|-- bin #
| |-- www # 全局命令执行的根文件
|-- src # 源代码目录
| |-- utils # 工具函数
| |-- constants.js # 定义全局可用参数
| |-- display.js # 终端显示函数
| |-- tips.js # 提示语常量
| |-- create.js # 核心函数:根据指令拉取项目
| |-- main.js # 终端指令逻辑
|-- templates # 可用项目模板
| |-- pc-react # 项目模板源代码
| |--