微信小程序构建工作流
同步 git / npm 及微信小程序版本号,方便维护。
$ npm i wechat-miniapp-release-workflow -D
修改 package.json
{
// ...
"scripts": {
"prerelease": "git pull && git checkout master", // 可选
"release": "release-wechat"
}
// ...
}
脚本环境基于 macOS 编写,windows 平台暂不适用 npm 版本,可自行 clone release.sh
文件,修改微信开发者工具路径。(欢迎 PR 适配版本)
请参考:https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html
Apache-2.0 @ baranwang