8000 GitHub - jackyzonewen/mp-cli: 微信小程序上传预览工具
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

微信小程序上传预览工具

Notifications You must be signed in to change notification settings

jackyzonewen/mp-cli

 
 

Repository files navigation

mp-cli

听说你还在用开发者工具手动上传,微信小程序 miniprogram-ci

功能列表

  • 支持指定参数 如 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: 写文章

About

微信小程序上传预览工具

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.3%
  • Shell 3.7%
0