0.1.8 • Published 4 years ago

szzj-cli v0.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

szzj-cli


使用

提前设置公司的npm私有仓库地址

npm set registry http://59.202.38.92:10008

安装

npm install szzj-cli -g

命令

  • szCli -V 查看当前版本
  • szCli -h 命令帮助信息
Usage: szCli <command>

Options:
  -V, --version                 output the version number
  -h, --help                    display help for command

Commands:
  list|l                        List all the templates
  create [name]                 Generate a new project
  addPage [options] <pageName>  add a new page and config the router
  help [command]                display help for command
  • szCli list 支持的模板信息
  模板1:
  名称:vueES6
  描述:基于ECMAScript6.0,Vue2.6.11,view-design4.3.2的脚手架
  • szCli create [项目名称]
  ? 当前目录已存在同名项目,请更换项目名 my-project
  ? 请输入项目版本 1.0.0
  ? 请输入项目描述 fdasfdsafdsa
  ? 请选择项目模板 vueES6
  ? 是否自动安装依赖? No
  √ 下载成功

  ✔ 创建: my-project/.gitignore
  ✔ 创建: my-project/babel.config.js
  ✔ 创建: my-project/index.js
  ✔ 创建: my-project/public
  ✔ 创建: my-project/README.md
  ✔ 创建: my-project/src
  ✔ 创建: my-project/vue.config.js
  ✔ 创建: my-project/package.json

  √ cd my-project目录, 执行 git init
  • szCli addPage [页面名称]

  √ 页面Page1创建成功