Giter VIP home page Giter VIP logo

mp-cli's Introduction

mp-cli

基于微信小程序 miniprogram-ci 开发的上传小程序的自动化工具

miniprogram-ci 官方文档

密钥及 IP 白名单配置 参考文档。一般来说自己使用,可以关闭 IP 白名单,因为 IP 地址可能变。

上传效果如下图所示:

上传效果

功能列表

  • 支持指定参数 如 robot 默认是 1,命令:yarn run upload --robot 2
  • 支持上传 yarn run upload
  • 支持预览 yarn run preview
  • 支持空跑,不执行 yarn run upload --dry
  • 支持指定 git commit hash 和作者
  • 支持单选多个小程序 yarn run upload --useSelect
  • 支持选择多个批量上传 yarn run upload --useMultiSelect
参数可以相互结合。
--robot 2 [ 可选 1-30 ]
--dry 空跑
--useSelect 单选
--useMultiSelect 多选批量上传

可自行开发

git clone https://github.com/lxchuan12/mp-cli.git
cd mp-cli
yarn install
# 建议使用 yarn install

.env 默认配置

# 可选,未填时 输出【未设置名称】
name="若川视野-小程序1"
# 必填
projectPath="../tdesign-miniprogram-starter-retail"
# 必填
appid="wxdd3948dc1c7f95c2"
# 必填
privateKeyPath="./src/key/private.wxdd3948dc1c7f95c2.key"
# 需要支持单选和多选上传预览时 必填
# 多个小程序配置的路径
configPath="./src/config"

configPath json 配置

参考 src/config/example.json

{
	"name": "若川视野的小程序-默认",
	"appid": "wxdd3948dc1c7f95c2",
	"privateKeyPath": "./src/key/private.wxdd3948dc1c7f95c2.key",
	"projectPath": "../tdesign-miniprogram-starter-retail"
}

支持可视化操作 TODO

有空再开发

TODO: 写文章

mp-cli's People

Contributors

ruochuan12 avatar

Forkers

zyl-me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.