Appearance
@yunquejs/cli
A cli for creating front-end projects, encapsulating common templates, improving development efficiency.
Install
bash
# npm
npm install -g @yunquejs/cli
# yarn
yarn global add @yunquejs/cli
# pnpm
pnpm add -g @yunquejs/cliUsage
bash
yunque my-app
# Choose a template first
yunque vite-vue-template my-app
# alias
yq my-appTemplates
| name | description |
|---|---|
| ts-template | 一个 typescript 项目模版. |
| vite-vue-template | 一个后台管理系统模版, 使用 Vite2 + Vue3 + Vuex + Vue-Router + TypeScript + Ant-Design-Vue + Mockjs |
| vite-electron-template | 一个 Electron 模版, 使用 Vite2 + Vue3 + Electron12. |
| vite-react-template | 一个后台管理系统模版, 使用 Vite2 + React17 + Redux4 + React-Router6 + Unocss + Typescript + Ant-Design + Mockjs. |
| umi-unocss-template | 一个后台管理系统模版, 使用 Umi + Unocss + Typescript + Ant-Design + Mockjs. |
Adding a Template
1.Add the template information in the templates/index.js file.
2.Create a repo on github, the repo name is the same as the template name.
3.The name should be simple and clear, and end with xxx-template.
js
{
name: 'ts-template',
desc: '一个 typescript 项目模版.',
repo: 'xinlei3166/vite-vue-template' // xinlei3166 是用户名,vite-vue-template 是仓库名
}Git Repo Support
Git Repo https://github.com/xinlei3166/vite-vue-template
bash
yunque xinlei3166/vite-vue-template my-app
yunque github:xinlei3166/vite-vue-template my-appBranch / Version / Tag
bash
yunque xinlei3166/vite-vue-template#main my-app
yunque xinlei3166/vite-vue-template#v1.0.0 my-appView template list
bash
yunque listGet Help
bash
yunque --helpThanks
@yunquejs/cli based on sao