All Projects → ineo6 → mp-ci

ineo6 / mp-ci

Licence: MIT license
微信小程序、小游戏发布助手(CI)

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to mp-ci

Mini Deploy
微信小程序发布助手 mini program
Stars: ✭ 26 (-65.79%)
Mutual labels:  jenkins, deploy
Cax
HTML5 Canvas 2D Rendering Engine - 小程序、小游戏以及 Web 通用 Canvas 渲染引擎
Stars: ✭ 1,864 (+2352.63%)
Mutual labels:  minigame, miniprogram
miniprogram
[微信小程序/小游戏] A fast wechat miniprogram/minigame development sdk written in Golang
Stars: ✭ 52 (-31.58%)
Mutual labels:  minigame, miniprogram
three-platformize
一个让 THREE 平台化的项目,目前已适配微信,淘宝,头条小程序,微信小游戏
Stars: ✭ 418 (+450%)
Mutual labels:  minigame, miniprogram
mirror-adapter
An adapter of Jenkins update center
Stars: ✭ 35 (-53.95%)
Mutual labels:  jenkins
osf-builder-suite-for-sfcc-deploy-plugin
OSF Builder Suite For Salesforce Commerce Cloud :: Deploy
Stars: ✭ 14 (-81.58%)
Mutual labels:  jenkins
alminium
勉強しながら、少しずつ更新しています。現在、Ubuntu 18.04&CentOS7でRedmine3.4が動作します。
Stars: ✭ 14 (-81.58%)
Mutual labels:  jenkins
OpenGnsys
OpenGnsys (pronounced Open Genesis) is a free and open source project that provides tools for managing and deploying different operating systems.
Stars: ✭ 15 (-80.26%)
Mutual labels:  deploy
terraform-provider-jenkins
A Terraform plugin to enable JenkinsCI manipulation from Terraform.
Stars: ✭ 47 (-38.16%)
Mutual labels:  jenkins
snak
Snak is a Hyperledger Burrow’s tools, which provides some facilities to compile, deploy and test smart contracts and send transactions to the Burrow. With Snack you can easily install and uninstall Burrow (currently only for Darwin and Ubuntu 16.04 amd64) and easily launch a Burrow test network.(Updated for Hyperledger Burrow v0.18.0)
Stars: ✭ 14 (-81.58%)
Mutual labels:  deploy
easydock
Dockerize your PHP apps ;)
Stars: ✭ 52 (-31.58%)
Mutual labels:  deploy
folder-auth-plugin
Authorization Plugin for Jenkins that works on folders
Stars: ✭ 21 (-72.37%)
Mutual labels:  jenkins
wxml-languageserver
Language server implementation for wxml file in wechat miniprogram
Stars: ✭ 18 (-76.32%)
Mutual labels:  miniprogram
go-zero-looklook
🔥基于go-zero(go zero) 微服务全技术栈开发最佳实践项目。Develop best practice projects based on the full technology stack of go zero (go zero) microservices.
Stars: ✭ 2,691 (+3440.79%)
Mutual labels:  jenkins
mpapi
🐤 小程序API兼容插件,一次编写,多端运行。支持:微信小程序、支付宝小程序、百度智能小程序、字节跳动小程序
Stars: ✭ 40 (-47.37%)
Mutual labels:  miniprogram
moadsd-ng
The MOADSD-NG project does provide a simple way to setup a hybrid cloud security demo, playground and learning environment within the clouds.
Stars: ✭ 13 (-82.89%)
Mutual labels:  jenkins
dropship
Super simple deployment tool
Stars: ✭ 62 (-18.42%)
Mutual labels:  deploy
Husky
k8s 离线部署脚本
Stars: ✭ 33 (-56.58%)
Mutual labels:  deploy
MCW-OSS-PaaS-and-DevOps
MCW OSS PaaS and DevOps
Stars: ✭ 49 (-35.53%)
Mutual labels:  jenkins
studio-lab-examples
Example notebooks for working with SageMaker Studio Lab. Sign up for an account at the link below!
Stars: ✭ 319 (+319.74%)
Mutual labels:  deploy

微信小程序(游戏)发布助手(mp-ci)

version downloads

PRs Welcome

Watch on GitHub Star on GitHub

微信小程序(游戏)发布助手, 支持预览和上传。可以和JenkinsGitHub Actions结合使用,实现自动化发布。

基于官方miniprogram-ci封装。

功能特性

  • 无需扫码登录
  • 自动读取appidsetting
  • 提交信息智能生成
  • 美化执行结果显示

Installation

// 全局安装
npm install -g mp-ci

// 本地安装
npm install --save-dev mp-ci

使用前需要使用小程序管理员身份访问"微信公众平台-开发-开发设置"后下载代码上传密钥,并配置 IP 白名单,才能进行上传、预览操作。

注意事项

  • 代码上传密钥拥有预览、上传代码的权限
  • 代码上传密钥不会明文存储在微信公众平台上,一旦遗失必须重置,请妥善保管
  • 未配置IP白名单的,将无法使用 mp-ci 进行预览和上传
  • 可选择不对IP进行限制,但务必明白风险

Usage

Usage: mp-ci [--options ...]

Options:
  -V, --version                  output the version number
  -h, --help                     display help for command

Commands:
  upload [options] [workspace]   上传代码
  preview [options] [workspace]  预览代码
  help [command]                 display help for command

Commands里面的workspace代表项目目录,默认使用命令执行目录,同时会检查project.config.json文件是否存在,并读取appidsetting设置。

命令返回的结果值如下:

  • 0: 成功
  • 1: 失败

upload

Usage: mp-ci upload [options] [workspace]

上传代码

Options:
  --env [value]     环境 (default: "dev")
  --type [value]    项目类型 (default: "miniProgram")
  --ver [value]     发布版本号
  --desc [value]    发布简介
  --pkp [value]     私钥文件所在路径
  --proxy [value]   代理url
  --robot [value]   指定CI机器人,1 ~ 30 (default: "1")
  -h, --help        display help for command

preview

Usage: mp-ci preview [options] [workspace]

预览代码

Options:
  --env [value]          环境 (default: "dev")
  --type [value]         项目类型 (default: "miniProgram")
  --ver [value]          发布版本号
  --desc [value]         发布简介
  --pkp [value]          私钥文件所在路径
  --qr [value]           二维码文件的格式: terminal|base64|image (default: "image")
  --qrDest [value]       二维码文件保存路径  (default: "preview.png")
  --pagePath [value]     预览页面路径
  --searchQuery [value]  预览页面路径启动参数,这里的&字符在命令行中应写成转义字符\&
  --proxy [value]        代理url
  --robot [value]        指定CI机器人,1 ~ 30 (default: "1")
  -h, --help             display help for command

说明:

version & desc

  • version版本号规则
    • 尝试读取目录下的 package.json 文件中version
    • 例如: 1.0.0
  • desc备注规则
    • 读取命令行中传入的环境参数: --env
    • 读取命令行中传入的备注参数: --desc
    • 获取项目(git)最新commitmessage
    • 组合: env: ${env} ${desc || message(hash)}
    • 例如: env: dev 补充信息(e0c015a)

pkp

私钥文件位置。

小程序管理员身份访问"微信公众平台-开发-开发设置"后下载密钥。

qr

可选值包括 terminal, base64, image

qrDest

qr设置为base64image时,需要设置qrDest指定输出位置(相对于项项目目录)。

searchQuery

预览页面启动参数。

这里的&字符在命令行中应写成转义字符\&

相关资源

  • mp-ci-demoTaroGitHub Actions持续集成示例
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].