@djp6/tpl-cli-vue
A boilerplate tool for vue development
Last updated 8 months ago by djp6 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @djp6/tpl-cli-vue 
SYNC missed versions from official npm registry.

???? A boilerplate tool for vue development.

This cli tool depends on vue-cli 3.x, make sure you already installed it globally, otherwise it will generate the preset by npx.

Usage

Install cli tool

$ npm install -g @djp6/tpl-cli-vue

install template

There are two templates you can pick when initializing.

  • [x] mobile (implemented by Vant, use for mobile application)

  • [ ] desktop (implemeted by element-ui, use for desktop(PC) application)

You should install template globally first. it provides two ways for installation.

  1. By npm
$ npm install -g @djp6/tpl-<templateName>
  1. By cli command
$ tplcli install [templateName]

templateName should be one of mobile,desktop.

Initialize project

After installing template, run tplcli init [projectName] --template <templateName> to initialize your project. Of course, you can also create a project by using vue-cli raw command vue create --preset <remote-repo-path> --clone <projectName>, but it is not so friendly for user to remember the long repo-path and the preset on remote cannot be versioned. Certainly, in order to reuse template's common modules, some preset files will be removed from template's directory later on, it means that generating project by vue-cli raw command with these templates will be inaccessible.

Commands and options

Run tplcli --help and tplcli <command> --help for more details.

TODOS

  • [ ] Create and publish desktop template

Current Tags

  • 1.2.0                                ...           latest (8 months ago)

2 Versions

  • 1.2.0                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (8)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |