@yunquejs/cli
v0.2.1
Published
A cli for creating front-end projects, encapsulating common templates, improving development efficiency.
Downloads
11
Readme
@yunquejs/cli
A cli for creating front-end projects, encapsulating common templates, improving development efficiency.
Install
npm install -g @yunquejs/cli
yarn global add @yunquejs/cli
pnpm add -g @yunquejs/cli
Usage
yunque my-app
# Choose a template first
yunque vite-vue-template my-app
# alias
yq my-app
Templates
| 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
.
{
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
yunque xinlei3166/vite-vue-template my-app
yunque github:xinlei3166/vite-vue-template my-app
Branch / Version / Tag
yunque xinlei3166/vite-vue-template#main my-app
yunque xinlei3166/vite-vue-template#v1.0.0 my-app
View template list
yunque list
Get Help
yunque --help
Thanks
@yunquejs/cli based on sao