@chenzr/vue-scaffold
v0.8.1
Published
vue 组件开发脚手架
Downloads
69
Readme
vue 组件开发脚手架
注:自用!!!
安装
yarn global add @chenzr/vue-scaffold
命令
创建新项目
scaffold create <dir>
| 参数 | 说明 | 默认值 | | ----------------------- | ---------- | ------------ | | --template <name> | 指定模板 | project |
启动开发服务器
scaffold dev
| 参数 | 说明 | 默认值 | | --------------------------- | ---------- | ------------ | | --port <port> | 监听端口 | 8080 | | --publicPath <publicPath> | 公共路径 | / | | --entry <path> | 入口文件路径 | dev/main.ts |
构建
构建入口为 dev/main.ts
scaffold build
| 参数 | 说明 | 默认值 | | --------------------------- | ----------- | ---------- | | --dest <dir> | 输出目录 | docs | | --publicPath <publicPath> | 公共路径 | / | | --analyze | 打包分析 | false | | --entry <path> | 入口文件路径 | dev/main.ts |
打包组件
构建入口为 package/index.ts
scaffold lib
| 参数 | 说明 | 默认值 | | --------------------------- | ----------- | ---------------- | | --name <name> | 库的名称 | index | | --analyze | 打包分析 | false | | --entry <path> | 入口文件路径 | package/index.ts |