@gmcb/cli 0.5.4 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +37 -1
  3. package/lib/actions/build.js +181 -45
  4. package/lib/actions/copy.js +2 -2
  5. package/lib/actions/create.js +2 -3
  6. package/lib/actions/publish.js +67 -38
  7. package/lib/actions/skill.js +2 -3
  8. package/lib/apis/http.d.ts +49 -0
  9. package/lib/apis/http.js +133 -0
  10. package/lib/apis/index.d.ts +116 -0
  11. package/lib/apis/index.js +234 -0
  12. package/lib/bin.js +3 -1
  13. package/lib/commands/option.d.ts +2 -0
  14. package/lib/commands/option.js +2 -1
  15. package/lib/commands/platform.js +1 -1
  16. package/lib/index.d.ts +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/scripts/app-apk.d.ts +1 -0
  19. package/lib/scripts/app-apk.js +15 -0
  20. package/lib/scripts/app-wgt.d.ts +1 -0
  21. package/lib/scripts/app-wgt.js +15 -0
  22. package/lib/scripts/asar-zip.d.ts +1 -0
  23. package/lib/scripts/asar-zip.js +17 -0
  24. package/lib/scripts/h5-exe.d.ts +1 -0
  25. package/lib/scripts/h5-exe.js +17 -0
  26. package/lib/scripts/h5-zip.d.ts +1 -0
  27. package/lib/scripts/h5-zip.js +15 -0
  28. package/lib/scripts/mp-weixin.d.ts +1 -0
  29. package/lib/scripts/mp-weixin.js +37 -0
  30. package/lib/scripts/publish.d.ts +9 -0
  31. package/lib/scripts/publish.js +112 -0
  32. package/lib/scripts/wgt-zip.d.ts +1 -0
  33. package/lib/scripts/wgt-zip.js +15 -0
  34. package/lib/{actions → utils}/config.d.ts +24 -6
  35. package/lib/{actions → utils}/config.js +19 -17
  36. package/lib/utils/const.d.ts +25 -1
  37. package/lib/utils/const.js +31 -2
  38. package/lib/utils/function.d.ts +2 -0
  39. package/lib/utils/function.js +20 -0
  40. package/lib/utils/index.d.ts +2 -0
  41. package/lib/utils/index.js +2 -0
  42. package/lib/utils/png2ico.d.ts +1 -0
  43. package/lib/utils/png2ico.js +48 -0
  44. package/package.json +8 -3
  45. package/schema.json +39 -3
package/schema.json CHANGED
@@ -6,6 +6,10 @@
6
6
  "type": ["boolean", "string"],
7
7
  "description": "是否在分支下打包,true表示在当前分支下打包,字符串表示仅在该分支下打包"
8
8
  },
9
+ "install": {
10
+ "type": "string",
11
+ "description": "安装依赖的命令,默认为 npm install,可配置为 pnpm install、yarn 等"
12
+ },
9
13
  "cli": {
10
14
  "type": "object",
11
15
  "description": "cli配置",
@@ -56,7 +60,7 @@
56
60
  "description": "远程路径"
57
61
  }
58
62
  },
59
- "required": ["brand", "type", "path"]
63
+ "required": ["brand", "type"]
60
64
  },
61
65
  "publish": {
62
66
  "type": "object",
@@ -67,7 +71,7 @@
67
71
  "description": "品牌全称"
68
72
  },
69
73
  "brandId": {
70
- "type": ["string", "number"],
74
+ "type": ["string"],
71
75
  "description": "品牌ID"
72
76
  },
73
77
  "channel": {
@@ -95,7 +99,7 @@
95
99
  "description": "远程路径"
96
100
  }
97
101
  },
98
- "required": ["path", "publishType"]
102
+ "required": ["publishType"]
99
103
  },
100
104
  "cos": {
101
105
  "type": "object",
@@ -189,6 +193,14 @@
189
193
  "certpassword": {
190
194
  "type": "string",
191
195
  "description": "打包证书密码"
196
+ },
197
+ "name": {
198
+ "type": "string",
199
+ "description": "导出文件名称,默认为app-release.apk"
200
+ },
201
+ "path": {
202
+ "type": "string",
203
+ "description": "导出路径,默认app/build/outputs/apk/release"
192
204
  }
193
205
  },
194
206
  "required": ["androidpacktype", "certalias", "certfile", "certpassword"]
@@ -216,6 +228,14 @@
216
228
  "certpassword": {
217
229
  "type": "string",
218
230
  "description": "使用自定义证书打包的证书密码"
231
+ },
232
+ "name": {
233
+ "type": "string",
234
+ "description": "导出文件名称,默认为app-release.ipa"
235
+ },
236
+ "path": {
237
+ "type": "string",
238
+ "description": "导出路径,默认app/release"
219
239
  }
220
240
  },
221
241
  "required": ["supporteddevice", "profile", "certfile", "certpassword"]
@@ -306,6 +326,14 @@
306
326
  "appid": {
307
327
  "type": "string",
308
328
  "description": "应用ID"
329
+ },
330
+ "name": {
331
+ "type": "string",
332
+ "description": "导出文件名称,默认为app-release.exe"
333
+ },
334
+ "path": {
335
+ "type": "string",
336
+ "description": "导出路径,默认dist"
309
337
  }
310
338
  }
311
339
  },
@@ -316,6 +344,14 @@
316
344
  "appid": {
317
345
  "type": "string",
318
346
  "description": "应用ID"
347
+ },
348
+ "name": {
349
+ "type": "string",
350
+ "description": "导出文件名称,默认为app-release.dmg"
351
+ },
352
+ "path": {
353
+ "type": "string",
354
+ "description": "导出路径,默认dist"
319
355
  }
320
356
  }
321
357
  },