0.1.4 • Published 2 years ago

alice-vue-cli v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Installation

npm install alice-vue-cli -g

or

git clone https://github.com/IamaliceLee/alice-vue-cli.git
cd alice-vue-cli && npm install
npm link

Usage

Open your terminal and type alice-vue-cli -h , you'll see the help infomation below:

Usage: alice-vue-cli <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 project

alice-vue-cli add

This command would help you to add a new template to the templates.json, which will be used by cli to init projects.

$ alice-vue-cli add
? 请输入模板名称 test
? 请输入模板地址 https://xxx.git

√ Add a template successfully!

The latest templateList is:

┌──────┬─────────────────────────────────────────────────────────┐
│ name │ url                                                     │
├──────┼─────────────────────────────────────────────────────────┤
│ app  │ https://github.com/IamaliceLee/mobile-platform-vue3.git │
├──────┼─────────────────────────────────────────────────────────┤
│ test │ http://xxx.git                                          │
└──────┴─────────────────────────────────────────────────────────┘

alice-vue-cli delete

To delete a template, you could use this command:

$ alice-vue-cli delete
? 请输入要删除的模板名称 test
? 请输入要删除的模板名称 test

√ Deleted successfully!

The latest templateList is:

┌──────┬─────────────────────────────────────────────────────────┐
│ name │ url                                                     │
├──────┼─────────────────────────────────────────────────────────┤
│ app  │ https://github.com/IamaliceLee/mobile-platform-vue3.git │
└──────┴─────────────────────────────────────────────────────────┘

alice-vue-cli list

This command will shows you the templates list.

$ alice-vue-cli list
┌──────┬─────────────────────────────────────────────────────────┐
│ name │ url                                                     │
├──────┼─────────────────────────────────────────────────────────┤
│ app  │ https://github.com/IamaliceLee/mobile-platform-vue3.git │
└──────┴─────────────────────────────────────────────────────────┘

alice-vue-cli init

You can init a templates use this command

alice-vue-cli init app project