babyfs-miniprogram-cli
v0.1.0
Published
babyfs miniprogram custom component cli
Downloads
10
Readme
babyfs-miniprogram-cli
小程序开发相关命令行工具,目前支持以下几种模板:
- 第三方自定义组件(custom-component)
- 小程序 quickstart(miniprogram)
- 小程序插件 quickstart(plugin)
- 小游戏 quickstart(game)
- 小程序 mina(gulp webpack)
安装
npm install -g babyfs-miniprogram-cli
初始化
mina init [options] [dirPath]
根据模板来进行项目的初始化
支持 options 如下:
| option | 描述 | |---|---| | -t, --type | 项目的初始化所使用的模板 | | -f, --force | 强制初始化项目,可能会覆盖掉目录中已存在的项目 | | -p, --proxy | 下载/更新模板时的请求代理 | | -n, --newest | 使用线上最新的模板进行项目的初始化 |
升级
mina upgrade [options] [dirPath]
根据最新模板对已有项目进行升级。目前仅支持自定义组件项目。
支持 options 如下:
| option | 描述 | |---|---| | -f, --force | 强制升级项目,会覆盖掉原有项目中的构建相关文件 | | -p, --proxy | 下载/更新模板时的请求代理 |
缓存
mina cache [options]
显示缓存目录。
支持 options 如下:
| option | 描述 | |---|---| | -c, --clear | 清空缓存的模板 |