@gmcb/cli 0.3.0 → 0.3.2

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.3.2](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.3.1...@gmcb/cli@0.3.2) (2026-04-22)
7
+
8
+ **Note:** Version bump only for package @gmcb/cli
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.3.1](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.3.0...@gmcb/cli@0.3.1) (2026-04-22)
15
+
16
+ **Note:** Version bump only for package @gmcb/cli
17
+
18
+
19
+
20
+
21
+
6
22
  # [0.3.0](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.2.4...@gmcb/cli@0.3.0) (2026-04-22)
7
23
 
8
24
 
@@ -36,26 +36,26 @@ async function default_1(...args) {
36
36
  choices: opts.wgt
37
37
  ? [
38
38
  {
39
- name: 'AndroidOS',
39
+ name: 'android',
40
40
  value: 1,
41
41
  },
42
42
  {
43
- name: 'IOS',
43
+ name: 'ios',
44
44
  value: 2,
45
45
  },
46
46
  {
47
- name: 'HarmonyOS',
47
+ name: 'harmony',
48
48
  value: 3,
49
49
  },
50
50
  ]
51
51
  : opts.zip
52
52
  ? [
53
53
  {
54
- name: 'WindowsOS',
54
+ name: 'windows',
55
55
  value: 4,
56
56
  },
57
57
  {
58
- name: 'MacOS',
58
+ name: 'macos',
59
59
  value: 5,
60
60
  },
61
61
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "工茂草本前端命令行工具",
5
5
  "author": "yinjiazeng@163.com",
6
6
  "license": "MIT",
@@ -54,5 +54,5 @@
54
54
  "@types/rimraf": "^4.0.5",
55
55
  "@types/user-home": "^2.0.2"
56
56
  },
57
- "gitHead": "d68532753876cb7e245e04af86270cd768ea00fb"
57
+ "gitHead": "3ed64b698d26124f2c95d7f5506d3c96ed74a4b2"
58
58
  }
package/schema.json CHANGED
@@ -1,304 +1,337 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "type": "object",
4
- "properties": {
5
- "branch": {
6
- "type": ["boolean", "string"],
7
- "description": "是否在分支下打包,true表示在当前分支下打包,字符串表示仅在该分支下打包"
8
- },
9
- "cli": {
10
- "type": "object",
11
- "description": "cli配置",
12
- "properties": {
13
- "hbuilderx": {
14
- "type": "string",
15
- "description": "hbuilderx cli路径"
16
- }
17
- }
18
- },
19
- "web": {
20
- "type": "object",
21
- "description": "管理平台配置",
22
- "properties": {
23
- "username": {
24
- "type": "string",
25
- "description": "登录用户名"
26
- },
27
- "password": {
28
- "type": "string",
29
- "description": "登录密码"
30
- }
31
- },
32
- "required": ["username", "password"]
33
- },
34
- "pub": {
35
- "type": "object",
36
- "description": "发布配置",
37
- "properties": {
38
- "brand": {
39
- "type": "string",
40
- "description": "品牌名称"
41
- },
42
- "type": {
43
- "type": "number",
44
- "description": "应用类型,1:医生端、2:门店端、3:患者端"
45
- },
46
- "status": {
47
- "type": "number",
48
- "description": "更新状态,4:强制更新、3:提示更新、2:不提示更新"
49
- },
50
- "platform": {
51
- "type": "number",
52
- "description": "平台类型,1:android、2:ios、3:harmonyos、4:windows、5:macos"
53
- },
54
- "path": {
55
- "type": "string",
56
- "description": "远程路径"
57
- }
58
- },
59
- "required": ["brand", "type", "path"]
60
- },
61
- "cos": {
62
- "type": "object",
63
- "description": "腾讯云对象存储配置",
64
- "properties": {
65
- "secretid": {
66
- "type": "string",
67
- "description": "秘钥id"
68
- },
69
- "secretkey": {
70
- "type": "string",
71
- "description": "秘钥key"
72
- },
73
- "bucket": {
74
- "type": "string",
75
- "description": "存储桶名称"
76
- },
77
- "region": {
78
- "type": "string",
79
- "description": "所属地域,例如ap-nanjing"
80
- },
81
- "path": {
82
- "type": "string",
83
- "description": "上传远程目录,默认/"
84
- }
85
- },
86
- "required": ["bucket", "region"]
87
- },
88
- "app": {
89
- "type": "object",
90
- "description": "app配置",
91
- "properties": {
92
- "iscustom": {
93
- "type": "boolean",
94
- "description": "是否使用自定义基座"
95
- },
96
- "safemode": {
97
- "type": "boolean",
98
- "description": "是否为安心打包"
99
- },
100
- "isconfusion": {
101
- "type": "boolean",
102
- "description": "是否对配置的js/nvue文件进行原生混淆"
103
- },
104
- "splashads": {
105
- "type": "boolean",
106
- "description": "是否开启开屏广告"
107
- },
108
- "rpads": {
109
- "type": "boolean",
110
- "description": "是否开启悬浮红包广告"
111
- },
112
- "pushads": {
113
- "type": "boolean",
114
- "description": "是否开启推送广告"
115
- },
116
- "exchange": {
117
- "type": "boolean",
118
- "description": "是否加入换量联盟"
119
- },
120
- "android": {
121
- "type": "object",
122
- "description": "android配置",
123
- "properties": {
124
- "packagename": {
125
- "type": "string",
126
- "description": "包名"
127
- },
128
- "androidpacktype": {
129
- "type": "integer",
130
- "description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
131
- },
132
- "certalias": {
133
- "type": "string",
134
- "description": "打包证书别名"
135
- },
136
- "certfile": {
137
- "type": "string",
138
- "description": "打包证书文件路径"
139
- },
140
- "certpassword": {
141
- "type": "string",
142
- "description": "打包证书密码"
143
- }
144
- },
145
- "required": ["packagename", "androidpacktype", "certalias", "certfile", "certpassword"]
146
- },
147
- "ios": {
148
- "type": "object",
149
- "description": "ios配置",
150
- "properties": {
151
- "bundle": {
152
- "type": "string",
153
- "description": "包名"
154
- },
155
- "supporteddevice": {
156
- "type": "string",
157
- "description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
158
- },
159
- "profile": {
160
- "type": "string",
161
- "description": "使用自定义证书打包的profile文件路径"
162
- },
163
- "certfile": {
164
- "type": "string",
165
- "description": "使用自定义证书打包的p12文件路径"
166
- },
167
- "certpassword": {
168
- "type": "string",
169
- "description": "使用自定义证书打包的证书密码"
170
- }
171
- },
172
- "required": ["bundle", "supporteddevice", "profile", "certfile", "certpassword"]
173
- },
174
- "wgt": {
175
- "type": "object",
176
- "description": "移动应用热更新资源配置",
177
- "properties": {
178
- "name": {
179
- "type": "string",
180
- "description": "导出文件名称,例如app.wgt,默认为[appid].wgt"
181
- },
182
- "path": {
183
- "type": "string",
184
- "description": "导出路径,默认unpackage/release"
185
- }
186
- }
187
- },
188
- "zip": {
189
- "type": "object",
190
- "description": "桌面应用热更新资源配置",
191
- "properties": {
192
- "name": {
193
- "type": "string",
194
- "description": "导出文件名称,例如app.zip,默认为[name].zip"
195
- },
196
- "path": {
197
- "type": "string",
198
- "description": "导出路径,默认unpackage/release"
199
- },
200
- "source": {
201
- "type": "string",
202
- "description": "资源路径,默认dist/win-unpacked/resources"
203
- }
204
- }
205
- },
206
- "custom": {
207
- "type": "object",
208
- "description": "自定义基座配置",
209
- "properties": {
210
- "android": {
211
- "type": "object",
212
- "description": "android配置",
213
- "properties": {
214
- "packagename": {
215
- "type": "string",
216
- "description": "包名"
217
- },
218
- "androidpacktype": {
219
- "type": "integer",
220
- "description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
221
- },
222
- "certalias": {
223
- "type": "string",
224
- "description": "打包证书别名"
225
- },
226
- "certfile": {
227
- "type": "string",
228
- "description": "打包证书文件路径"
229
- },
230
- "certpassword": {
231
- "type": "string",
232
- "description": "打包证书密码"
233
- }
234
- }
235
- },
236
- "ios": {
237
- "type": "object",
238
- "description": "ios配置",
239
- "properties": {
240
- "bundle": {
241
- "type": "string",
242
- "description": "包名"
243
- },
244
- "supporteddevice": {
245
- "type": "string",
246
- "description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
247
- },
248
- "profile": {
249
- "type": "string",
250
- "description": "使用自定义证书打包的profile文件路径"
251
- },
252
- "certfile": {
253
- "type": "string",
254
- "description": "使用自定义证书打包的p12文件路径"
255
- },
256
- "certpassword": {
257
- "type": "string",
258
- "description": "使用自定义证书打包的证书密码"
259
- }
260
- },
261
- "required": ["profile", "certfile"]
262
- }
263
- }
264
- }
265
- }
266
- },
267
- "mp": {
268
- "type": "object",
269
- "description": "小程序配置",
270
- "properties": {
271
- "weixin": {
272
- "type": "object",
273
- "description": "微信小程序配置",
274
- "properties": {
275
- "type": {
276
- "type": "string",
277
- "description": "上传类型"
278
- },
279
- "privatekey": {
280
- "type": "string",
281
- "description": "代码上传密钥文件"
282
- }
283
- },
284
- "required": ["privatekey"]
285
- },
286
- "alipay": {
287
- "type": "object",
288
- "description": "支付宝小程序配置",
289
- "properties": {
290
- "type": {
291
- "type": "string",
292
- "description": "上传类型"
293
- },
294
- "privatekey": {
295
- "type": "string",
296
- "description": "代码上传密钥文件"
297
- }
298
- },
299
- "required": ["privatekey"]
300
- }
301
- }
302
- }
303
- }
304
- }
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "branch": {
6
+ "type": ["boolean", "string"],
7
+ "description": "是否在分支下打包,true表示在当前分支下打包,字符串表示仅在该分支下打包"
8
+ },
9
+ "cli": {
10
+ "type": "object",
11
+ "description": "cli配置",
12
+ "properties": {
13
+ "hbuilderx": {
14
+ "type": "string",
15
+ "description": "hbuilderx cli路径"
16
+ }
17
+ }
18
+ },
19
+ "web": {
20
+ "type": "object",
21
+ "description": "管理平台配置",
22
+ "properties": {
23
+ "username": {
24
+ "type": "string",
25
+ "description": "登录用户名"
26
+ },
27
+ "password": {
28
+ "type": "string",
29
+ "description": "登录密码"
30
+ }
31
+ },
32
+ "required": ["username", "password"]
33
+ },
34
+ "pub": {
35
+ "type": "object",
36
+ "description": "发布配置",
37
+ "properties": {
38
+ "brand": {
39
+ "type": "string",
40
+ "description": "品牌名称"
41
+ },
42
+ "type": {
43
+ "type": "number",
44
+ "description": "应用类型,1:医生端、2:门店端、3:患者端"
45
+ },
46
+ "status": {
47
+ "type": "number",
48
+ "description": "更新状态,4:强制更新、3:提示更新、2:不提示更新"
49
+ },
50
+ "platform": {
51
+ "type": "number",
52
+ "description": "平台类型,1:android、2:ios、3:harmonyos、4:windows、5:macos"
53
+ },
54
+ "path": {
55
+ "type": "string",
56
+ "description": "远程路径"
57
+ }
58
+ },
59
+ "required": ["brand", "type", "path"]
60
+ },
61
+ "cos": {
62
+ "type": "object",
63
+ "description": "腾讯云对象存储配置",
64
+ "properties": {
65
+ "secretid": {
66
+ "type": "string",
67
+ "description": "秘钥id"
68
+ },
69
+ "secretkey": {
70
+ "type": "string",
71
+ "description": "秘钥key"
72
+ },
73
+ "bucket": {
74
+ "type": "string",
75
+ "description": "存储桶名称"
76
+ },
77
+ "region": {
78
+ "type": "string",
79
+ "description": "所属地域,例如ap-nanjing"
80
+ },
81
+ "path": {
82
+ "type": "string",
83
+ "description": "上传远程目录,默认/"
84
+ }
85
+ },
86
+ "required": ["bucket", "region"]
87
+ },
88
+ "app": {
89
+ "type": "object",
90
+ "description": "app配置",
91
+ "properties": {
92
+ "iscustom": {
93
+ "type": "boolean",
94
+ "description": "是否使用自定义基座"
95
+ },
96
+ "safemode": {
97
+ "type": "boolean",
98
+ "description": "是否为安心打包"
99
+ },
100
+ "isconfusion": {
101
+ "type": "boolean",
102
+ "description": "是否对配置的js/nvue文件进行原生混淆"
103
+ },
104
+ "splashads": {
105
+ "type": "boolean",
106
+ "description": "是否开启开屏广告"
107
+ },
108
+ "rpads": {
109
+ "type": "boolean",
110
+ "description": "是否开启悬浮红包广告"
111
+ },
112
+ "pushads": {
113
+ "type": "boolean",
114
+ "description": "是否开启推送广告"
115
+ },
116
+ "exchange": {
117
+ "type": "boolean",
118
+ "description": "是否加入换量联盟"
119
+ },
120
+ "harmony": {
121
+ "type": "object",
122
+ "description": "harmony配置",
123
+ "properties": {
124
+ "packagename": {
125
+ "type": "string",
126
+ "description": "包名"
127
+ }
128
+ },
129
+ "required": ["packagename"]
130
+ },
131
+ "windows": {
132
+ "type": "object",
133
+ "description": "windows配置",
134
+ "properties": {
135
+ "packagename": {
136
+ "type": "string",
137
+ "description": "包名"
138
+ }
139
+ },
140
+ "required": ["packagename"]
141
+ },
142
+ "macos": {
143
+ "type": "object",
144
+ "description": "macos配置",
145
+ "properties": {
146
+ "packagename": {
147
+ "type": "string",
148
+ "description": "包名"
149
+ }
150
+ },
151
+ "required": ["packagename"]
152
+ },
153
+ "android": {
154
+ "type": "object",
155
+ "description": "android配置",
156
+ "properties": {
157
+ "packagename": {
158
+ "type": "string",
159
+ "description": "包名"
160
+ },
161
+ "androidpacktype": {
162
+ "type": "integer",
163
+ "description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
164
+ },
165
+ "certalias": {
166
+ "type": "string",
167
+ "description": "打包证书别名"
168
+ },
169
+ "certfile": {
170
+ "type": "string",
171
+ "description": "打包证书文件路径"
172
+ },
173
+ "certpassword": {
174
+ "type": "string",
175
+ "description": "打包证书密码"
176
+ }
177
+ },
178
+ "required": ["packagename", "androidpacktype", "certalias", "certfile", "certpassword"]
179
+ },
180
+ "ios": {
181
+ "type": "object",
182
+ "description": "ios配置",
183
+ "properties": {
184
+ "bundle": {
185
+ "type": "string",
186
+ "description": "包名"
187
+ },
188
+ "supporteddevice": {
189
+ "type": "string",
190
+ "description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
191
+ },
192
+ "profile": {
193
+ "type": "string",
194
+ "description": "使用自定义证书打包的profile文件路径"
195
+ },
196
+ "certfile": {
197
+ "type": "string",
198
+ "description": "使用自定义证书打包的p12文件路径"
199
+ },
200
+ "certpassword": {
201
+ "type": "string",
202
+ "description": "使用自定义证书打包的证书密码"
203
+ }
204
+ },
205
+ "required": ["bundle", "supporteddevice", "profile", "certfile", "certpassword"]
206
+ },
207
+ "wgt": {
208
+ "type": "object",
209
+ "description": "移动应用热更新资源配置",
210
+ "properties": {
211
+ "name": {
212
+ "type": "string",
213
+ "description": "导出文件名称,例如app.wgt,默认为[appid].wgt"
214
+ },
215
+ "path": {
216
+ "type": "string",
217
+ "description": "导出路径,默认unpackage/release"
218
+ }
219
+ }
220
+ },
221
+ "zip": {
222
+ "type": "object",
223
+ "description": "桌面应用热更新资源配置",
224
+ "properties": {
225
+ "name": {
226
+ "type": "string",
227
+ "description": "导出文件名称,例如app.zip,默认为[name].zip"
228
+ },
229
+ "path": {
230
+ "type": "string",
231
+ "description": "导出路径,默认unpackage/release"
232
+ },
233
+ "source": {
234
+ "type": "string",
235
+ "description": "资源路径,默认dist/win-unpacked/resources"
236
+ }
237
+ }
238
+ },
239
+ "custom": {
240
+ "type": "object",
241
+ "description": "自定义基座配置",
242
+ "properties": {
243
+ "android": {
244
+ "type": "object",
245
+ "description": "android配置",
246
+ "properties": {
247
+ "packagename": {
248
+ "type": "string",
249
+ "description": "包名"
250
+ },
251
+ "androidpacktype": {
252
+ "type": "integer",
253
+ "description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
254
+ },
255
+ "certalias": {
256
+ "type": "string",
257
+ "description": "打包证书别名"
258
+ },
259
+ "certfile": {
260
+ "type": "string",
261
+ "description": "打包证书文件路径"
262
+ },
263
+ "certpassword": {
264
+ "type": "string",
265
+ "description": "打包证书密码"
266
+ }
267
+ }
268
+ },
269
+ "ios": {
270
+ "type": "object",
271
+ "description": "ios配置",
272
+ "properties": {
273
+ "bundle": {
274
+ "type": "string",
275
+ "description": "包名"
276
+ },
277
+ "supporteddevice": {
278
+ "type": "string",
279
+ "description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
280
+ },
281
+ "profile": {
282
+ "type": "string",
283
+ "description": "使用自定义证书打包的profile文件路径"
284
+ },
285
+ "certfile": {
286
+ "type": "string",
287
+ "description": "使用自定义证书打包的p12文件路径"
288
+ },
289
+ "certpassword": {
290
+ "type": "string",
291
+ "description": "使用自定义证书打包的证书密码"
292
+ }
293
+ },
294
+ "required": ["profile", "certfile"]
295
+ }
296
+ }
297
+ }
298
+ }
299
+ },
300
+ "mp": {
301
+ "type": "object",
302
+ "description": "小程序配置",
303
+ "properties": {
304
+ "weixin": {
305
+ "type": "object",
306
+ "description": "微信小程序配置",
307
+ "properties": {
308
+ "type": {
309
+ "type": "string",
310
+ "description": "上传类型"
311
+ },
312
+ "privatekey": {
313
+ "type": "string",
314
+ "description": "代码上传密钥文件"
315
+ }
316
+ },
317
+ "required": ["privatekey"]
318
+ },
319
+ "alipay": {
320
+ "type": "object",
321
+ "description": "支付宝小程序配置",
322
+ "properties": {
323
+ "type": {
324
+ "type": "string",
325
+ "description": "上传类型"
326
+ },
327
+ "privatekey": {
328
+ "type": "string",
329
+ "description": "代码上传密钥文件"
330
+ }
331
+ },
332
+ "required": ["privatekey"]
333
+ }
334
+ }
335
+ }
336
+ }
337
+ }