yxc-mt-template
v1.0.4
Published
本地脚手架管理工具
Downloads
4
Readme
本地脚手架管理工具
- 1.进行安装
$ yarn global add yxc-mt-template
或者
$ npm i yxc-mt-template -g
- 2.查看版本
$ mt-temp -V
- 3.查看所有可以用的命令
$ mt-temp help
- 4.所有的命令
Commands:
add|a 创建一个新的模板
delete|d 删除一个已存在的模板
init|i 按照模板,初始化项目
list|p 列出所有模板
help [command] display help for command
- 5-1.创建一个新的模板
$ mt-temp add
创建一个模板,存在本地,会存储以下信息:
模板名称: {
git地址,
分支地址
}
- 5-2.删除一个已存在的模板
$ mt-temp delete
将本地存储的模板信息,进行按需删除。
- 5-3.列出所有模板
$ mt-temp list
列出本地所有模板。
- 5-4.按照模板,初始化项目
$ mt-temp init
会选择之前添加的模板,使用之前存储的信息,进行初始化项目。