1.0.0 • Published 4 years ago

@cubetool/cubetool-plugin-batch v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

cube 批处理工具

该插件为 CLI 工具提供更多命令功能。迅速生成同类cube,并且快速上线。

cubetool batch -h 查看具体命令

常用操作:

  • cubetool batch online -p 对模版进行批处理后,进行发布上线操作

  • cubetool batch -w 对模版改动进行监听,并持续处理

  • cubetool batch -p 默认发到 preview 环境

使用方法:

  • 创建tpl目录(或自定义模板目录),并创建模板文件模板文件

  • 在/tpl下创建配置文件data.config.js

  • 根目录下 cubetool batch

  • 构建产物自动输出到/dist目录

示例:

下载这个目录 cubetool batch

cubetool audit -h 查看具体命令

常用操作:

  • cubetool audit token 批量提交审核

  • cubetool audit token -d 批量撤销审核中的版本

  • cubetool audit token -o 批量上线审核通过的版本

使用方法:

  • 根目录下执行 cubetool audit 系列命令

  • 命令会根据配置文件 data.config.js 中的配置进行批量处理

  • audit 命令通常可以在 cubetool batch 批处理结束并发布后,进行批量提交审核的操作

  • 审核通过后可通过 -o 参数批量上线