@zgltryy/zwt-cli
v1.3.4
Published
rapid development project tool
Downloads
1
Readme
@zgltryy/zwt-cli
A rapid development project tool based on Vue.
安装
npm install @zgltryy/zwt-cli -g
Usage
Open your terminal and type zwt
or zwt -h
, you'll see the help infomation below:
Usage: zwt <command>
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
create [options] <app-name> create a new project powered by vue
list|l List all the templates
_ _ _
____ __ __ | |_ ___ | | (_)
|_ / \ \ /\ / / | __| _____ / __| | | | |
/ / \ V V / | |_ |_____| | (__ | | | |
/___| \_/\_/ \__| \___| |_| |_|
Commands
create | c
you can use this command to generate a project by choose a third-party template.
$ zwt create t1
√ Downloading template...
? Choose app type (Use arrow keys)
> vue2
vue3
gzuniapp
or
$ zwt create t1 -t vue3
√ Downloading template...
?Are you want to install rk-lint(Y/N) (Y/n)
list | l
It shows you the templates list.
$ zwt list
┌───────────────┬──────────┬─────────────────────────────────────────────────────────────────────┐
│ Template Name │ Branch │ Url │
├───────────────┼──────────┼─────────────────────────────────────────────────────────────────────┤
│ template1 │ master │ http://gitlab.tianti.tg.unicom.local/superlcientfiles/subapp-h5.git │
├───────────────┼──────────┼─────────────────────────────────────────────────────────────────────┤
│ template2 │ vue3 │ http://gitlab.tianti.tg.unicom.local/superlcientfiles/subapp-h5.git │
├───────────────┼──────────┼─────────────────────────────────────────────────────────────────────┤
│ template3 │ gzuniapp │ http://gitlab.tianti.tg.unicom.local/superlcientfiles/subapp-h5.git │
└───────────────┴──────────┴─────────────────────────────────────────────────────────────────────┘
Template
The most important part of im is template
. The official template information is listed in templates.json, and the third-party templates are listed in remote-templates.json.A template means a project sample, which has a simple or complex file structure.
You can create your own templates repository, and push your templates in different branches. All you need to do then is to add the templates into im's templates.json
.
Env and dependencies
- node
- webPack
- Vuex
- VueRouter
- vant
- axios
License
需要连接公司内部VPN才能下载 MIT.