根据vueCli改写,减少部分功能.
只留下初始化部分
可以从gitlab/github/本地文件中的项目模板构建新应用
npm i @zzwing/create-app -g
create-app init <template-name> <project-name> [-c]
如果需要通过git clone来拉取项目.请使用-c
参数
你可以使用本地模板作为你的新项目模板
create-app init ~/fs/path/to-custom-template my-project
The short hand repository string to download the repository from:
- GitHub -
github:owner/name
or simplyowner/name
- GitLab -
gitlab:owner/name
- Bitbucket -
bitbucket:owner/name
Using http download from Github repository at master.
create-app init path/to/repo myProject
Using git clone from Bitbucket repository at my-branch.
create-app init bitbucket:path/to/repo#my-branch myProject
Using http download from GitLab repository with custom origin.
create-app init gitlab:mygitlab.com:path/to/repo#my-branch myProject