Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 811 Bytes

File metadata and controls

41 lines (26 loc) · 811 Bytes

y-init

A simple CLI for scaffolding projects implement by vue-cli.

Installation

Prerequisites: Node.js (>=4.x, 6.x preferred), npm version 3+ and Git.

$ npm install -g y-init

Usage

$ y-init <template-name>#<branch-name> <project-name>

Example:

# 从 github 下载模板、生成项目
$ y-init username/repo my-project

# 直接从 url 下载模板、生成项目
$ y-init direct:https://my.gitlab.com/username/repo#my-branch my-project --clone

# 或者直接选一个默认模板
$ y-init

# 查看帮助
$ y-init -h

Writing Templates from Scratch

see vue-cli.

License

MIT