miniprogram-ci 1.6.10 → 1.8.18

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 (179) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/dist/@types/ci/cos-upload.d.ts +1 -3
  4. package/dist/@types/config.d.ts +1 -3
  5. package/dist/@types/core/json/app/checkAppFields.d.ts +2 -0
  6. package/dist/@types/index.d.ts +2 -0
  7. package/dist/@types/summer/devtool.d.ts +5 -0
  8. package/dist/@types/summer/graph/basegraph.d.ts +2 -0
  9. package/dist/@types/summer/summer.d.ts +1 -0
  10. package/dist/@types/summer/types.d.ts +13 -3
  11. package/dist/@types/types/miniprogram-json/app.d.ts +5 -1
  12. package/dist/@types/types/miniprogram-json/page.d.ts +1 -0
  13. package/dist/@types/utils/locales/locales.d.ts +7 -0
  14. package/dist/@types/utils/locales/zh.d.ts +7 -0
  15. package/dist/@types/utils/tools.d.ts +1 -0
  16. package/dist/@types/vendor/code-analyse/index.d.ts +58 -1
  17. package/dist/ci/code-analyse.js +3 -1
  18. package/dist/ci/cos-upload.js +3 -1
  19. package/dist/ci/getCompiledResult.js +3 -1
  20. package/dist/ci/getDevSourceMap.js +3 -1
  21. package/dist/ci/getLatestVersion.js +3 -1
  22. package/dist/ci/jsserver.js +3 -1
  23. package/dist/ci/preview.js +3 -1
  24. package/dist/ci/project.js +3 -1
  25. package/dist/ci/projectattr.js +3 -1
  26. package/dist/ci/upload.js +3 -1
  27. package/dist/ci/utils/pack.js +3 -1
  28. package/dist/ci/utils/packfile.js +3 -1
  29. package/dist/ci/utils/terminalQrcode.js +3 -1
  30. package/dist/cli.js +3 -1
  31. package/dist/cloud/cloudapi.js +3 -1
  32. package/dist/cloud/createTimeTrigger.js +3 -1
  33. package/dist/cloud/uploadContainer.js +3 -1
  34. package/dist/cloud/uploadFile.js +3 -1
  35. package/dist/cloud/uploadFunction.js +3 -1
  36. package/dist/cloud/utils.js +3 -1
  37. package/dist/config.js +3 -1
  38. package/dist/core/analyse/partial.js +3 -1
  39. package/dist/core/compile/common.js +3 -1
  40. package/dist/core/compile/game.js +3 -1
  41. package/dist/core/compile/game_plugin.js +3 -1
  42. package/dist/core/compile/handler/js.js +3 -1
  43. package/dist/core/compile/handler/mpjson.js +3 -1
  44. package/dist/core/compile/handler/wxml.js +3 -1
  45. package/dist/core/compile/handler/wxss.js +3 -1
  46. package/dist/core/compile/index.js +3 -1
  47. package/dist/core/compile/mini_program.js +3 -1
  48. package/dist/core/compile/mini_program_plugin.js +3 -1
  49. package/dist/core/js/minifyjs.js +1 -1
  50. package/dist/core/json/app/checkAppFields.js +3 -1
  51. package/dist/core/json/app/getAppJSON.js +3 -1
  52. package/dist/core/json/app/getExtJSON.js +3 -1
  53. package/dist/core/json/app/index.js +3 -1
  54. package/dist/core/json/common.js +3 -1
  55. package/dist/core/json/game.js +3 -1
  56. package/dist/core/json/page/checkPageJSON.js +3 -1
  57. package/dist/core/json/page/getPageJSON.js +3 -1
  58. package/dist/core/json/plugin/plugin.js +3 -1
  59. package/dist/core/json/plugin/plugin_page.js +3 -1
  60. package/dist/core/json/projectWithMockBuffer.js +3 -1
  61. package/dist/core/json/projectconfig.js +3 -1
  62. package/dist/core/json/reactiveCache.js +3 -1
  63. package/dist/core/json/signaturejson.js +3 -1
  64. package/dist/core/json/sitemap.js +3 -1
  65. package/dist/core/json/theme.js +3 -1
  66. package/dist/core/npm/filterdeps.js +3 -1
  67. package/dist/core/npm/packnpm.js +3 -1
  68. package/dist/core/protect/file_flatter.js +3 -1
  69. package/dist/core/protect/uglifyfilenames.js +3 -1
  70. package/dist/core/utils/env.js +3 -1
  71. package/dist/core/utils/logger.js +3 -1
  72. package/dist/core/worker_thread/task/compilejs.js +1 -1
  73. package/dist/core.js +3 -1
  74. package/dist/index.js +3 -1
  75. package/dist/manifest.json +2 -2
  76. package/dist/schema/dist/index.d.ts +1 -1
  77. package/dist/summer/ci.js +3 -1
  78. package/dist/summer/devtool.js +3 -1
  79. package/dist/summer/error.js +3 -1
  80. package/dist/summer/graph/appconf.js +3 -1
  81. package/dist/summer/graph/appgraph.js +3 -1
  82. package/dist/summer/graph/basegraph.js +3 -1
  83. package/dist/summer/graph/pluginconf.js +3 -1
  84. package/dist/summer/graph/plugingraph.js +3 -1
  85. package/dist/summer/index.js +3 -1
  86. package/dist/summer/initPlugin.js +3 -1
  87. package/dist/summer/module.js +3 -1
  88. package/dist/summer/persist_cache.js +3 -1
  89. package/dist/summer/plugin_driver.js +3 -1
  90. package/dist/summer/plugins/base/es6module.js +1 -1
  91. package/dist/summer/plugins/enhance.js +1 -1
  92. package/dist/summer/plugins/less.js +1 -1
  93. package/dist/summer/plugins/sass.js +1 -1
  94. package/dist/summer/plugins/terser.js +1 -1
  95. package/dist/summer/project.js +3 -1
  96. package/dist/summer/recorder.js +3 -1
  97. package/dist/summer/resolver.js +3 -1
  98. package/dist/summer/summer.js +3 -1
  99. package/dist/summer/types.js +3 -1
  100. package/dist/summer/utils/async.js +3 -1
  101. package/dist/summer/utils/ensureArray.js +3 -1
  102. package/dist/summer/worker.js +3 -1
  103. package/dist/types/index.js +3 -1
  104. package/dist/types/miniprogram-json/app.js +3 -1
  105. package/dist/types/miniprogram-json/base.js +3 -1
  106. package/dist/types/miniprogram-json/ext.js +3 -1
  107. package/dist/types/miniprogram-json/game.js +3 -1
  108. package/dist/types/miniprogram-json/index.js +3 -1
  109. package/dist/types/miniprogram-json/page.js +3 -1
  110. package/dist/types/miniprogram-json/plugin.js +3 -1
  111. package/dist/types/miniprogram-json/projectconfig.js +3 -1
  112. package/dist/types/miniprogram-json/sitemap.js +3 -1
  113. package/dist/types/miniprogram-json/theme.js +3 -1
  114. package/dist/utils/babel_helper.js +3 -1
  115. package/dist/utils/babel_transform_plugin.js +3 -1
  116. package/dist/utils/cache.js +3 -1
  117. package/dist/utils/common.js +3 -1
  118. package/dist/utils/error.js +3 -1
  119. package/dist/utils/fs.js +3 -1
  120. package/dist/utils/fsagent.js +3 -1
  121. package/dist/utils/glob.js +3 -1
  122. package/dist/utils/interruptibletask.js +3 -1
  123. package/dist/utils/jsonParse.js +3 -1
  124. package/dist/utils/jsonlint.js +3 -1
  125. package/dist/utils/locales/en.js +3 -1
  126. package/dist/utils/locales/fomatable_string.js +3 -1
  127. package/dist/utils/locales/locales.js +3 -1
  128. package/dist/utils/locales/zh.js +3 -1
  129. package/dist/utils/log.js +3 -1
  130. package/dist/utils/report.js +3 -1
  131. package/dist/utils/request.js +3 -1
  132. package/dist/utils/sign.js +3 -1
  133. package/dist/utils/taskstatus.js +3 -1
  134. package/dist/utils/tools.js +3 -1
  135. package/dist/utils/url_config.js +3 -1
  136. package/dist/utils/white_ext_list.js +3 -1
  137. package/dist/vendor/cloud-api/src/apis/apis.js +3 -1
  138. package/dist/vendor/cloud-api/src/apis/cdn/cdn.apis.js +3 -1
  139. package/dist/vendor/cloud-api/src/apis/cdn/index.js +3 -1
  140. package/dist/vendor/cloud-api/src/apis/flexdb/flexdb.apis.js +3 -1
  141. package/dist/vendor/cloud-api/src/apis/flexdb/index.js +3 -1
  142. package/dist/vendor/cloud-api/src/apis/scf/index.js +3 -1
  143. package/dist/vendor/cloud-api/src/apis/scf/scf.apis.js +3 -1
  144. package/dist/vendor/cloud-api/src/apis/ssl/index.js +3 -1
  145. package/dist/vendor/cloud-api/src/apis/ssl/ssl.apis.js +3 -1
  146. package/dist/vendor/cloud-api/src/apis/tcb/general.apis.js +3 -1
  147. package/dist/vendor/cloud-api/src/apis/tcb/index.js +3 -1
  148. package/dist/vendor/cloud-api/src/apis/tcb/tcb.apis.js +3 -1
  149. package/dist/vendor/cloud-api/src/index.js +3 -1
  150. package/dist/vendor/cloud-api/src/transaction/contracts/cdn.contracts.js +3 -1
  151. package/dist/vendor/cloud-api/src/transaction/contracts/contracts.js +3 -1
  152. package/dist/vendor/cloud-api/src/transaction/contracts/factory.js +3 -1
  153. package/dist/vendor/cloud-api/src/transaction/contracts/flexdb.contracts.js +3 -1
  154. package/dist/vendor/cloud-api/src/transaction/contracts/scf.contracts.js +3 -1
  155. package/dist/vendor/cloud-api/src/transaction/contracts/ssl.contracts.js +3 -1
  156. package/dist/vendor/cloud-api/src/transaction/contracts/tcb.contracts.js +3 -1
  157. package/dist/vendor/cloud-api/src/transaction/transactor.js +3 -1
  158. package/dist/vendor/cloud-api/src/transaction/validations/cdn.validations.js +3 -1
  159. package/dist/vendor/cloud-api/src/transaction/validations/common.validations.js +3 -1
  160. package/dist/vendor/cloud-api/src/transaction/validations/flexdb.validations.js +3 -1
  161. package/dist/vendor/cloud-api/src/transaction/validations/scf.validations.js +3 -1
  162. package/dist/vendor/cloud-api/src/transaction/validations/ssl.validations.js +3 -1
  163. package/dist/vendor/cloud-api/src/transaction/validations/tcb.validations.js +3 -1
  164. package/dist/vendor/cloud-api/src/transaction/validations/validations.js +3 -1
  165. package/dist/vendor/cloud-api/src/utils/common.js +3 -1
  166. package/dist/vendor/cloud-api/src/utils/validator.js +3 -1
  167. package/dist/vendor/code-analyse/index.js +1 -1
  168. package/dist/vendor/schema/dist/app.js +47 -1
  169. package/dist/vendor/schema/dist/ext.js +46 -1
  170. package/dist/vendor/schema/dist/game.js +1 -1
  171. package/dist/vendor/schema/dist/index.js +2 -1
  172. package/dist/vendor/schema/dist/page.js +38 -1
  173. package/dist/vendor/schema/dist/plugin.js +1 -1
  174. package/dist/vendor/schema/dist/pluginpage.js +1 -1
  175. package/dist/vendor/schema/dist/projectconfig.js +423 -9
  176. package/dist/vendor/schema/dist/projectprivateconfig.js +351 -0
  177. package/dist/vendor/schema/dist/sitemap.js +1 -1
  178. package/dist/vendor/schema/dist/theme.js +1 -1
  179. package/package.json +19 -17
@@ -1,18 +1,81 @@
1
1
  module.exports = {
2
2
  "type": "object",
3
3
  "properties": {
4
+ "libVersion": {
5
+ "type": "string"
6
+ },
7
+ "editorSetting": {
8
+ "type": "object",
9
+ "properties": {
10
+ "tabIndent": {
11
+ "enum": [
12
+ "auto",
13
+ "insertSpaces",
14
+ "tab"
15
+ ],
16
+ "type": "string"
17
+ },
18
+ "tabSize": {
19
+ "anyOf": [
20
+ {
21
+ "enum": [
22
+ "\t"
23
+ ],
24
+ "type": "string"
25
+ },
26
+ {
27
+ "type": "number"
28
+ }
29
+ ]
30
+ }
31
+ }
32
+ },
33
+ "cloudfunctionRoot": {
34
+ "type": "string"
35
+ },
36
+ "cloudfunctionTemplateRoot": {
37
+ "type": "string"
38
+ },
39
+ "cloudcontainerRoot": {
40
+ "type": "string"
41
+ },
42
+ "srcMiniprogramRoot": {
43
+ "type": "string"
44
+ },
45
+ "description": {
46
+ "type": "string"
47
+ },
48
+ "simulatorType": {
49
+ "type": "string"
50
+ },
51
+ "simulatorPluginLibVersion": {},
4
52
  "miniprogramRoot": {
5
53
  "type": "string"
6
54
  },
55
+ "qcloudRoot": {
56
+ "type": "string"
57
+ },
7
58
  "pluginRoot": {
8
59
  "type": "string"
9
60
  },
61
+ "cloudbaseRoot": {
62
+ "type": "string"
63
+ },
64
+ "compileType": {
65
+ "type": "string"
66
+ },
10
67
  "pluginAppid": {
11
68
  "type": "string"
12
69
  },
13
70
  "jsserverRoot": {
14
71
  "type": "string"
15
72
  },
73
+ "projectname": {
74
+ "type": "string"
75
+ },
76
+ "appid": {
77
+ "type": "string"
78
+ },
16
79
  "packOptions": {
17
80
  "type": "object",
18
81
  "properties": {
@@ -28,33 +91,384 @@ module.exports = {
28
91
  "type": "string"
29
92
  }
30
93
  },
31
- "additionalProperties": false,
32
94
  "required": [
33
95
  "type",
34
96
  "value"
35
97
  ]
36
98
  }
99
+ },
100
+ "include": {
101
+ "type": "array",
102
+ "items": {
103
+ "type": "object",
104
+ "properties": {
105
+ "type": {
106
+ "type": "string"
107
+ },
108
+ "value": {
109
+ "type": "string"
110
+ }
111
+ },
112
+ "required": [
113
+ "type",
114
+ "value"
115
+ ]
116
+ }
117
+ }
118
+ }
119
+ },
120
+ "watchOptions": {
121
+ "type": "object",
122
+ "properties": {
123
+ "ignore": {
124
+ "type": "array",
125
+ "items": {
126
+ "type": "string"
127
+ }
37
128
  }
38
- },
39
- "additionalProperties": false
129
+ }
40
130
  },
41
131
  "setting": {
42
132
  "type": "object",
43
133
  "properties": {
134
+ "es6": {
135
+ "type": "boolean"
136
+ },
137
+ "enhance": {
138
+ "type": "boolean"
139
+ },
140
+ "postcss": {
141
+ "type": "boolean"
142
+ },
143
+ "minified": {
144
+ "type": "boolean"
145
+ },
146
+ "minifyWXSS": {
147
+ "type": "boolean"
148
+ },
149
+ "minifyWXML": {
150
+ "type": "boolean"
151
+ },
152
+ "uglifyFileName": {
153
+ "type": "boolean"
154
+ },
155
+ "ignoreUploadUnusedFiles": {
156
+ "type": "boolean"
157
+ },
158
+ "autoAudits": {
159
+ "type": "boolean"
160
+ },
161
+ "urlCheck": {
162
+ "type": "boolean"
163
+ },
164
+ "compileHotReLoad": {
165
+ "type": "boolean"
166
+ },
167
+ "preloadBackgroundData": {
168
+ "type": "boolean"
169
+ },
170
+ "lazyloadPlaceholderEnable": {
171
+ "type": "boolean"
172
+ },
173
+ "useStaticServer": {
174
+ "type": "boolean"
175
+ },
44
176
  "babelSetting": {
45
177
  "type": "object",
46
178
  "properties": {
47
179
  "outputPath": {
48
180
  "type": "string"
181
+ },
182
+ "ignore": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "string"
186
+ }
187
+ },
188
+ "disablePlugins": {
189
+ "type": "array",
190
+ "items": {}
49
191
  }
50
- },
51
- "additionalProperties": false
192
+ }
193
+ },
194
+ "useCompilerPlugins": {
195
+ "anyOf": [
196
+ {
197
+ "type": "array",
198
+ "items": {
199
+ "enum": [
200
+ "less",
201
+ "sass",
202
+ "typescript"
203
+ ],
204
+ "type": "string"
205
+ }
206
+ },
207
+ {
208
+ "enum": [
209
+ false
210
+ ],
211
+ "type": "boolean"
212
+ }
213
+ ]
214
+ },
215
+ "disableUseStrict": {
216
+ "type": "boolean"
217
+ },
218
+ "uploadWithSourceMap": {
219
+ "type": "boolean"
220
+ },
221
+ "localPlugins": {
222
+ "type": "boolean"
223
+ },
224
+ "packNpmManually": {
225
+ "type": "boolean"
226
+ },
227
+ "packNpmRelationList": {
228
+ "type": "array",
229
+ "items": {
230
+ "type": "object",
231
+ "properties": {
232
+ "packageJsonPath": {
233
+ "type": "string"
234
+ },
235
+ "miniprogramNpmDistDir": {
236
+ "type": "string"
237
+ }
238
+ }
239
+ }
240
+ },
241
+ "coverView": {
242
+ "type": "boolean"
243
+ },
244
+ "ignoreDevUnusedFiles": {
245
+ "type": "boolean"
246
+ },
247
+ "checkInvalidKey": {
248
+ "type": "boolean"
249
+ },
250
+ "showShadowRootInWxmlPanel": {
251
+ "type": "boolean"
252
+ },
253
+ "useIsolateContext": {
254
+ "type": "boolean"
255
+ },
256
+ "useMultiFrameRuntime": {
257
+ "type": "boolean"
258
+ },
259
+ "useApiHook": {
260
+ "type": "boolean"
261
+ },
262
+ "useApiHostProcess": {
263
+ "type": "boolean"
264
+ },
265
+ "useLanDebug": {
266
+ "type": "boolean"
267
+ },
268
+ "enableEngineNative": {
269
+ "type": "boolean"
270
+ },
271
+ "showES6CompileOption": {
272
+ "type": "boolean"
273
+ }
274
+ }
275
+ },
276
+ "staticServerOptions": {
277
+ "type": "object",
278
+ "properties": {
279
+ "servePath": {
280
+ "type": "string"
281
+ }
282
+ }
283
+ },
284
+ "scripts": {
285
+ "type": "object",
286
+ "properties": {
287
+ "beforeCompile": {
288
+ "type": "string"
289
+ },
290
+ "beforePreview": {
291
+ "type": "string"
292
+ },
293
+ "beforeUpload": {
294
+ "type": "string"
295
+ }
296
+ }
297
+ },
298
+ "debugOptions": {
299
+ "type": "object",
300
+ "properties": {
301
+ "hideInDevtools": {
302
+ "type": "array",
303
+ "items": {
304
+ "type": "string"
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "condition": {
310
+ "type": "object",
311
+ "properties": {
312
+ "game": {
313
+ "type": "object",
314
+ "properties": {
315
+ "current": {
316
+ "type": "number"
317
+ },
318
+ "list": {
319
+ "type": "array",
320
+ "items": {
321
+ "type": "object",
322
+ "properties": {
323
+ "name": {
324
+ "type": "string"
325
+ },
326
+ "pathName": {
327
+ "type": "string"
328
+ },
329
+ "query": {
330
+ "type": "string"
331
+ },
332
+ "scene": {
333
+ "type": [
334
+ "null",
335
+ "string",
336
+ "number"
337
+ ]
338
+ },
339
+ "shareInfo": {},
340
+ "referrerInfo": {},
341
+ "chatroomUsernameInfo": {},
342
+ "groupInfo": {}
343
+ }
344
+ }
345
+ }
346
+ }
347
+ },
348
+ "gamePlugin": {
349
+ "type": "object",
350
+ "properties": {
351
+ "current": {
352
+ "type": "number"
353
+ },
354
+ "list": {
355
+ "type": "array",
356
+ "items": {
357
+ "type": "object",
358
+ "properties": {
359
+ "name": {
360
+ "type": "string"
361
+ },
362
+ "query": {
363
+ "type": "string"
364
+ },
365
+ "scene": {
366
+ "type": [
367
+ "null",
368
+ "string",
369
+ "number"
370
+ ]
371
+ },
372
+ "shareInfo": {},
373
+ "referrerInfo": {},
374
+ "groupInfo": {}
375
+ }
376
+ }
377
+ }
378
+ }
379
+ },
380
+ "plugin": {
381
+ "type": "object",
382
+ "properties": {
383
+ "current": {
384
+ "type": "number"
385
+ },
386
+ "list": {
387
+ "type": "array",
388
+ "items": {
389
+ "type": "object",
390
+ "properties": {
391
+ "name": {
392
+ "type": "string"
393
+ },
394
+ "pathName": {
395
+ "type": "string"
396
+ },
397
+ "query": {
398
+ "type": "string"
399
+ },
400
+ "launchMode": {
401
+ "type": "string"
402
+ },
403
+ "scene": {
404
+ "type": [
405
+ "null",
406
+ "string",
407
+ "number"
408
+ ]
409
+ },
410
+ "shareInfo": {},
411
+ "referrerInfo": {},
412
+ "groupInfo": {}
413
+ }
414
+ }
415
+ }
416
+ }
417
+ },
418
+ "miniprogram": {
419
+ "type": "object",
420
+ "properties": {
421
+ "current": {
422
+ "type": "number"
423
+ },
424
+ "list": {
425
+ "type": "array",
426
+ "items": {
427
+ "type": "object",
428
+ "properties": {
429
+ "name": {
430
+ "type": "string"
431
+ },
432
+ "pathName": {
433
+ "type": "string"
434
+ },
435
+ "query": {
436
+ "type": "string"
437
+ },
438
+ "launchMode": {
439
+ "type": "string"
440
+ },
441
+ "scene": {
442
+ "type": [
443
+ "null",
444
+ "string",
445
+ "number"
446
+ ]
447
+ },
448
+ "partialCompile": {
449
+ "type": "object",
450
+ "properties": {
451
+ "enabled": {
452
+ "type": "boolean"
453
+ },
454
+ "pages": {
455
+ "type": "array",
456
+ "items": {}
457
+ }
458
+ }
459
+ },
460
+ "shareInfo": {},
461
+ "referrerInfo": {},
462
+ "chatroomUsernameInfo": {},
463
+ "groupInfo": {}
464
+ }
465
+ }
466
+ }
467
+ }
52
468
  }
53
- },
54
- "additionalProperties": false
469
+ }
55
470
  }
56
471
  },
57
- "additionalProperties": false,
58
472
  "$schema": "http://json-schema.org/draft-07/schema#",
59
- "$version": 1634545246254
473
+ "$version": 1649903386341
60
474
  }