yangyu-cli
v1.0.0
Published
一个简单脚手架
Readme
Installation
npm install yangyu-cli -gor
cd yangyu-cli && npm install
npm linkUsage
Open your terminal and type yangyu-cli -h , you'll see the help infomation below:
Usage: yangyu-cli <command>
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
add 新增模板项目地址
delete 删除模板项目地址
list 模板项目列表
create 根据脚手架创建项目yangyu-cli add
新增模板项目地址
$ yangyu-cli add
? 请输入模板名称 admin
? 请输入模板地址 https://github.com/Michael-lzg/vue-ant-template.git
√ Add a template successfully!
The latest templateList is:
┌───────┬─────────────────────────────────────────────────────┐
│ name │ url │
├───────┼─────────────────────────────────────────────────────┤
│ app │ https://github.com/Michael-lzg/vue-cli4-vant.git │
├───────┼─────────────────────────────────────────────────────┤
│ admin │ https://github.com/Michael-lzg/vue-ant-template.git │
└───────┴─────────────────────────────────────────────────────┘yangyu-cli delete
删除模板项目地址
$ yangyu-cli delete
? 请输入要删除的模板名称 admin
? 请输入要删除的模板名称 admin
√ Deleted successfully!
The latest templateList is:
┌──────┬──────────────────────────────────────────────────┐
│ name │ url │
├──────┼──────────────────────────────────────────────────┤
│ app │ https://github.com/Michael-lzg/vue-cli4-vant.git │
└──────┴──────────────────────────────────────────────────┘yangyu-cli list
查看所有模板列表
$ yangyu-cli list
┌──────┬──────────────────────────────────────────────────┐
│ name │ url │
├──────┼──────────────────────────────────────────────────┤
│ app │ https://github.com/Michael-lzg/vue-cli4-vant.git │
└──────┴──────────────────────────────────────────────────┘yangyu-cli create
根据脚手架创建项目
yangyu-cli create app project