1.0.4 • Published 4 years ago
xzt-cli v1.0.4
XZT-CLI
安装
全局安装
npm i -g xzt-cli
使用
HELP 命令
xzt -h
Usage: xzt <command> [options]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
install|i [pkgOptions] install npm package
uninstall <pkg> uninstall npm package
clone clone a template of web framework
add-git-commit-validation|agcv auto add git commit validation tool environment
remove-git-commit-validation|rgcv auto remove git commit validation tool environment
add-vue-eslint|ave auto add vue eslint + prettier environment
remove-vue-eslint|rve auto remove vue eslint + prettier environment
下载模板
xzt clone
安装 vue
框架中 prettier
+ eslint
环境
xzt add-vue-eslint
或者
xzt ave
也可以使用卸载命令,注意依赖是否冲突,否则会被卸载
xzt remove-vue-eslint
或者
xzt rve
安装 git commit
验证工具和自动生成 changelog.md
xzt add-git-commit-validation
或者
xzt agcv
也可以使用卸载命令,注意依赖是否冲突,否则会被卸载
xzt remove-git-commit-validation
或者
xzt rgcv
替代 npm
命令
彩蛋,自制命令,你也可以用来替代
npm
xzt i axios -S