taro-weapp-upload
v0.0.8
Published
batch upload WeChat miniprogram for Taro project
Downloads
20
Maintainers
Readme
taro-weapp-upload
介绍
用于Taro项目中批量上传微信小程序的工具
安装
npm install taro-weapp-upload -D
修改package.json文件
// ...
"script": {
// ...
"init": "weapp-upload init",
"upload": "weapp-upload upload"
// ...
}
生成配置文件
npm run init
version
上传的版本号
appid
微信小程序的appid列表
description
支持变量
变量|说明
---|---
${TIME}| 开始上传的时间
${VERSION}| 配置文件中的version
字段的值
${AUTHOR}| git log -1
的作者
${BRANCH}| 当前 git 分支
${COMMIT}| git log -1
的commit
hash值(commit id)
${DATE}| git log -1
的commit
时间
${INFO}| git log -1
的commit
内容
projectPath
微信小程序项目的根目录,即 project.config.json 所在的路径
privateKeyPath
存放上传key的文件夹
里面密钥文件的命名格式:private.${appid}.key
;获取方式看文档
上传代码
npm run upload