一款面向小程序多端开发的自动化提审、发版CI工具,旨在提高小程序代码上传、提审的效率
online docs:
packages docs:
使用自己熟悉的npm包管理工具如:npm、yarn、pnpm等进行安装,支持局部或全局安装
# 项目中安装
npm install @hengshuai/mini-ci -D
# 全局安装
npm install -g @hengshuai/mini-ci
npx mini-ci init
// mini-ci.config.js
const { defineConfig } = require("@hengshuai/mini-core");
const { Platform, IProjectActionMode } = require("@hengshuai/mini-type");
module.exports = defineConfig({
ci: {},
platforms: {
// WeChat平台
[Platform.Wechat]: {
platformSpecific: {
// 包地址
projectPath: "./dist",
// 上传代码的私钥
privateKeyPath: ".mini-ci/keys/wechat-upload-code.key",
},
subs: [
{
appId: "Your AppId",
admin: "https://mp.weixin.qq.com",
version: "1.0.0",
mode: IProjectActionMode.REVIEW,
description: "测试ci " + +new Date,
compiler: {
// es6: false,
// es7: true,
// minifyJS: true,
},
},
]
}
}
})
npx mini-ci start
不同平台以插件的形式进行开发,预期支持以下平台:
- 微信
- 支付宝
- 抖音
- 百度
- 其他...
相关功能正在开发中...
- 代码上传
- 提审
- 发版
- 版本管理
- 多端同步
- 自定义步骤
架构图
流程图
如果你觉得此项目对你有帮助,不介意的话打赏一杯咖啡,鼓励作者不断分享技术文章,在此感谢!:thumbsup:
If you think this blog is helpful to you, if you don't mind, enjoy a cup of coffee, encourage the author to continue to share technical articles, thank you here!