1.0.4 • Published 10 months ago

@zgltryy/uapp-cli v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

@zgltryy/uapp-cli

A rapid development project tool based on Vue.

安装

npm install @zgltryy/uapp-cli -g

Usage

Open your terminal and type uapp or uapp -h , you'll see the help infomation below:

Usage: uapp <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
  add|a [dependencies]         Add a new dependencies
  list|l                       List all the templates
                                                 _   _
  _   _    __ _   _ __    _ __             ___  | | (_)
 | | | |  / _` | | '_ \  | '_ \   _____   / __| | | | |
 | |_| | | (_| | | |_) | | |_) | |_____| | (__  | | | |
  \__,_|  \__,_| | .__/  | .__/           \___| |_| |_|
                 |_|     |_|

Commands

create | c

you can use this command to generate a project by choose a third-party template.

$ uapp create t1

√ Downloading template...
? Choose app type (Use arrow keys)
> vue2
  vue3
  gzuniapp

or

$ uapp 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.

$ uapp 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.