仿照
create-vue
写了一个生成一个 pnpm monorepo 的工作仓内部packages
目录下业务项目的 CLI
-
注意:该 CLI 只适合在使用
create-vue-monorepo
CLI 命令生成的项目中使用
# 全局安装
pnpm add create-vue-business --global
# 在要新建业务项目的packages目录下
create-vue-business
- 渲染核心代码 template
- 渲染配置文件
- web(默认使用 Element-plus)
- h5(默认使用 Vant)
- 渲染 package.json
- web(默认使用 Element-plus)
- h5(默认使用 Vant)