{"_id":"m-app-ci","_rev":"1-0fe8e7af13642e07ad4c5a444e8658a2","name":"m-app-ci","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"m-app-ci","version":"0.0.1","description":"CLI for miniprogram ci.","main":"index.js","bin":{"m-app-ci":"bin/index.js"},"scripts":{"test":"node ./bin/index.js"},"keywords":["CLI","miniprogram","ci"],"author":{"name":"william"},"license":"MIT","dependencies":{"miniprogram-ci":"^1.9.8"},"private":false,"_id":"m-app-ci@0.0.1","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-NVGUMf0JMAVBuNEugRtSy+Sx5GVW/yKX4Z9YBSOysTq7mLvuUifZGQpLhtQOJ5avGaOfGrElRKBvN5RAZLU84w==","shasum":"f0289d03e8308bce028126b20b44ee1f98ae02e0","tarball":"https://registry.npmjs.org/m-app-ci/-/m-app-ci-0.0.1.tgz","fileCount":3,"unpackedSize":4804,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZDNuiydIsx3nTDfFVOst9swhS31YcRdvaxqmhJI+4eAiEA+ot7JnCTmF0lPm7LNZC8WCYaHZKa1H3drgfuikL7fZc="}]},"_npmUser":{"name":"william-xu-web","email":"petroxuhao@qq.com"},"directories":{},"maintainers":[{"name":"william-xu-web","email":"petroxuhao@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/m-app-ci_0.0.1_1695006759235_0.0667552497604702"},"_hasShrinkwrap":false},"0.2.0":{"name":"m-app-ci","version":"0.2.0","description":"CLI for miniprogram ci.","main":"./bin/index.js","bin":{"m-app-ci":"bin/index.js"},"scripts":{"test":"node ./bin/index.js"},"keywords":["CLI","miniprogram","ci"],"author":{"name":"william"},"license":"MIT","dependencies":{"commander":"^11.1.0","inquirer":"^8.0.0","minidev":"^2.0.0","miniprogram-ci":"^1.9.8"},"private":false,"gitHead":"0bdc0bcce2e09876e4c8e7a8dc5640d946cb6427","_id":"m-app-ci@0.2.0","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-24KRRdoYiBW7KhHMi0S+DRkfUJWHT5YC4Lo9AjsXfZrTWhJmnAgs2IQafQ9GdUVYZ82U1W8G1RiIrH6w3k/4YQ==","shasum":"6170b6526469e04f65d9a8bf918842901a7ba5e5","tarball":"https://registry.npmjs.org/m-app-ci/-/m-app-ci-0.2.0.tgz","fileCount":5,"unpackedSize":6108,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD/+T9im7Qvzs+TuU0kvQzk2BJ2plmsDUtl/b+xhugTwIhAIv5NHeae8d3hFEimbzwb5nDGoGnj84chG0FakGgdAMx"}]},"_npmUser":{"name":"william-xu-web","email":"petroxuhao@qq.com"},"directories":{},"maintainers":[{"name":"william-xu-web","email":"petroxuhao@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/m-app-ci_0.2.0_1699063554237_0.26681600584601584"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-18T03:12:39.234Z","0.0.1":"2023-09-18T03:12:39.434Z","modified":"2023-11-04T02:05:54.721Z","0.2.0":"2023-11-04T02:05:54.546Z"},"maintainers":[{"name":"william-xu-web","email":"petroxuhao@qq.com"}],"description":"CLI for miniprogram ci.","keywords":["CLI","miniprogram","ci"],"author":{"name":"william"},"license":"MIT","readme":"## m-app-ci\r\n\r\n基于 Node.js 的 CLI 工具，用于上传小程序代码。最新的参考文档，请参考 [金山文档](https://kdocs.cn/l/cqNq0lfRGS7C)。\r\n\r\n### 使用\r\n\r\n```shell script\r\nnpm i -g m-app-ci\r\n```\r\n\r\n使用 Git Bash 运行 `m-app-ci` 即可。\r\n\r\n> 如果你在 Windows 上通过 minTTY 使用 Git Bash，交互提示符并不工作。你必须通过 `winpty m-app-ci.cmd` 启动这个命令。\r\n\r\n### 配置\r\n\r\n在项目根目录下创建 `.mprc` 文件，以下为配置示例：\r\n\r\n```json\r\n{\r\n\"weixin\": {\r\n\"project\": {\r\n\"appid\": \"appid\",\r\n\"privateKeyPath\": \"./private.appid.key\",\r\n\"projectPath\": \"./\"\r\n},\r\n\"upload\": {\r\n\"version\": \"1.0.0\",\r\n\"desc\": \"description\"\r\n}\r\n},\r\n\"alipay\": {},\r\n\"baidu\": {}\r\n}\r\n```\r\n\r\n\r\n以下为具体的 project 配置参数：\r\n\r\n| 键 | 类型 | 说明 |\r\n| ----------- | -------- |\r\n------------------------------------------------------------------------------------------------------------------ |\r\n| appid | 属性 | 小程序/小游戏项目的 appid |\r\n| type | 属性 | 项目的类型，有效值 miniProgram/miniProgramPlugin/miniGame/miniGamePlugin |\r\n| projectPath | 属性 | 项目的路径，即 project.config.json 所在的目录 |\r\n| privateKey | 属性 | 私钥，在获取项目属性和上传时用于鉴权使用，在 [微信公众平台](https://mp.weixin.qq.com) 上使用小程序管理员登录后下载 |\r\n| attr | 异步方法 | 项目的属性，如指定了 privateKey 则会使用真实的项目属性 |\r\n| stat | 同步方法 | 特定目录下前缀下（prefix）文件路径 (filePath) 的 stat, 如果不存在则返回 undefined |\r\n| getFile | 异步方法 | 特定目录下前缀下（prefix）文件路径 (filePath) 的 Buffer |\r\n| getFileList | 同步方法 | 特定目录下前缀下（prefix）文件路径 (filePath) 下的文件列表 |\r\n| updateFile | 同步方法 | 更新项目文件 |\r\n\r\n\r\n\r\n以下为具体的 upload 配置参数：\r\n\r\n| 键 | 类型 | 必填 | 说明 |\r\n| ---------------- | -------- | ---- | ------------------------------------- |\r\n| project | IProject | 是 | #项目对象 |\r\n| version | string | 是 | 自定义版本号 |\r\n| desc | string | 否 | 自定义备注 |\r\n| setting | object | 否 | #编译设置 |\r\n| onProgressUpdate | function | 否 | 进度更新监听函数 |\r\n| robot | number | 否 | 指定使用哪一个 ci 机器人，可选值：1 ~ 30 |\r\n| threads | number | 否 | 指定本地编译过程中开启的线程数 |\r\n| useCOS | boolean | 否 | 使用异步方式上传，当代码包大于 5MB 时，默认开启 |\r\n| allowIgnoreUnusedFiles | boolean | 否 | 允许过滤无依赖文件，默认开启 |","readmeFilename":"README.md"}