Skip to content

a mini program ci tool for miniprogram automatic package delivery assistant. 一款面向小程序多端开发的自动化提审、发版CI工具,旨在提高小程序代码上传、提审的效率

Notifications You must be signed in to change notification settings

ihengshuai/mini-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini CI

一款面向小程序多端开发的自动化提审、发版CI工具,旨在提高小程序代码上传、提审的效率

Docs

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!

About

a mini program ci tool for miniprogram automatic package delivery assistant. 一款面向小程序多端开发的自动化提审、发版CI工具,旨在提高小程序代码上传、提审的效率

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published