1.0.0 • Published 3 years ago
monorepo-vcli v1.0.0
Installation
npm install monorepo-vcli -gUsage
Open your terminal and type monorepo -h , you'll see the help infomation below:
Usage: monorepo <command>
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
add add a new template
delete delete a template
list List the templateList
init init a projectmonorepo add
This command would help you to add a new template to the templates.json, which will be used by monorepo to init projects.
$ monorepo 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 │
└───────┴─────────────────────────────────────────────────────┘monorepo delete
To delete a template, you could use this command:
$ monorepo delete
? 请输入要删除的模板名称 admin
? 请输入要删除的模板名称 admin
√ Deleted successfully!
The latest templateList is:
┌──────┬──────────────────────────────────────────────────┐
│ name │ url │
├──────┼──────────────────────────────────────────────────┤
│ app │ https://github.com/Michael-lzg/vue-cli4-vant.git │
└──────┴──────────────────────────────────────────────────┘monorepo list
This command will shows you the templates list.
$ monorepo list
┌──────┬──────────────────────────────────────────────────┐
│ name │ url │
├──────┼──────────────────────────────────────────────────┤
│ app │ https://github.com/Michael-lzg/vue-cli4-vant.git │
└──────┴──────────────────────────────────────────────────┘monorepo init
You can init a templates use this command
monorepo init app project1.0.0
3 years ago