miniprogram-ci 1.6.1 → 1.8.12

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 (199) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +3 -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/js/generateMap.d.ts +3 -0
  6. package/dist/@types/core/json/app/checkAppFields.d.ts +2 -0
  7. package/dist/@types/index.d.ts +2 -0
  8. package/dist/@types/summer/devtool.d.ts +5 -0
  9. package/dist/@types/summer/graph/basegraph.d.ts +2 -0
  10. package/dist/@types/summer/summer.d.ts +1 -0
  11. package/dist/@types/summer/types.d.ts +13 -3
  12. package/dist/@types/types/miniprogram-json/app.d.ts +5 -1
  13. package/dist/@types/types/miniprogram-json/page.d.ts +1 -0
  14. package/dist/@types/types/miniprogram-json/projectconfig.d.ts +1 -0
  15. package/dist/@types/utils/locales/locales.d.ts +6 -0
  16. package/dist/@types/utils/locales/zh.d.ts +6 -0
  17. package/dist/@types/utils/tools.d.ts +1 -0
  18. package/dist/ci/code-analyse.js +3 -1
  19. package/dist/ci/cos-upload.js +3 -1
  20. package/dist/ci/getCompiledResult.js +3 -1
  21. package/dist/ci/getDevSourceMap.js +3 -1
  22. package/dist/ci/getLatestVersion.js +3 -1
  23. package/dist/ci/jsserver.js +3 -1
  24. package/dist/ci/preview.js +3 -1
  25. package/dist/ci/project.js +3 -1
  26. package/dist/ci/projectattr.js +3 -1
  27. package/dist/ci/upload.js +3 -1
  28. package/dist/ci/utils/pack.js +3 -1
  29. package/dist/ci/utils/packfile.js +3 -1
  30. package/dist/ci/utils/terminalQrcode.js +3 -1
  31. package/dist/cli.js +3 -1
  32. package/dist/cloud/cloudapi.js +3 -1
  33. package/dist/cloud/createTimeTrigger.js +3 -1
  34. package/dist/cloud/uploadContainer.js +3 -1
  35. package/dist/cloud/uploadFile.js +3 -1
  36. package/dist/cloud/uploadFunction.js +3 -1
  37. package/dist/cloud/utils.js +3 -1
  38. package/dist/config.js +3 -1
  39. package/dist/core/analyse/partial.js +3 -1
  40. package/dist/core/compile/common.js +3 -1
  41. package/dist/core/compile/game.js +3 -1
  42. package/dist/core/compile/game_plugin.js +3 -1
  43. package/dist/core/compile/handler/js.js +3 -1
  44. package/dist/core/compile/handler/mpjson.js +3 -1
  45. package/dist/core/compile/handler/wxml.js +3 -1
  46. package/dist/core/compile/handler/wxss.js +3 -1
  47. package/dist/core/compile/index.js +3 -1
  48. package/dist/core/compile/mini_program.js +3 -1
  49. package/dist/core/compile/mini_program_plugin.js +3 -1
  50. package/dist/core/js/enhance.js +1 -1
  51. package/dist/core/js/generateMap.js +1 -0
  52. package/dist/core/js/index.js +1 -1
  53. package/dist/core/js/minifyjs.js +1 -1
  54. package/dist/core/js/minifyjs_after_wrap.js +1 -1
  55. package/dist/core/json/app/checkAppFields.js +3 -1
  56. package/dist/core/json/app/getAppJSON.js +3 -1
  57. package/dist/core/json/app/getExtJSON.js +3 -1
  58. package/dist/core/json/app/index.js +3 -1
  59. package/dist/core/json/common.js +3 -1
  60. package/dist/core/json/game.js +3 -1
  61. package/dist/core/json/page/checkPageJSON.js +3 -1
  62. package/dist/core/json/page/getPageJSON.js +3 -1
  63. package/dist/core/json/plugin/plugin.js +3 -1
  64. package/dist/core/json/plugin/plugin_page.js +3 -1
  65. package/dist/core/json/projectWithMockBuffer.js +3 -1
  66. package/dist/core/json/projectconfig.js +3 -1
  67. package/dist/core/json/reactiveCache.js +3 -1
  68. package/dist/core/json/signaturejson.js +3 -1
  69. package/dist/core/json/sitemap.js +3 -1
  70. package/dist/core/json/theme.js +3 -1
  71. package/dist/core/npm/filterdeps.js +3 -1
  72. package/dist/core/npm/packnpm.js +3 -1
  73. package/dist/core/protect/file_flatter.js +3 -1
  74. package/dist/core/protect/uglifyfilenames.js +3 -1
  75. package/dist/core/utils/env.js +3 -1
  76. package/dist/core/utils/logger.js +3 -1
  77. package/dist/core/validate/validate.js +1 -1
  78. package/dist/core/worker_thread/childprocess.js +1 -1
  79. package/dist/core/worker_thread/childprocess_manager.js +1 -1
  80. package/dist/core/worker_thread/fork.js +1 -1
  81. package/dist/core/worker_thread/index.js +1 -1
  82. package/dist/core/worker_thread/task/call_func.js +1 -1
  83. package/dist/core/worker_thread/task/compilejs.js +1 -1
  84. package/dist/core/worker_thread/task/compilewxss.js +1 -1
  85. package/dist/core/worker_thread/task/func.js +1 -1
  86. package/dist/core/worker_thread/task/minifywxml.js +1 -1
  87. package/dist/core/worker_thread/worker.js +1 -1
  88. package/dist/core/worker_thread/worker_manager.js +1 -1
  89. package/dist/core.js +3 -1
  90. package/dist/index.js +3 -1
  91. package/dist/manifest.json +2 -2
  92. package/dist/schema/dist/index.d.ts +1 -1
  93. package/dist/summer/ci.js +3 -1
  94. package/dist/summer/devtool.js +3 -1
  95. package/dist/summer/entry_process.js +1 -1
  96. package/dist/summer/error.js +3 -1
  97. package/dist/summer/graph/appconf.js +3 -1
  98. package/dist/summer/graph/appgraph.js +3 -1
  99. package/dist/summer/graph/basegraph.js +3 -1
  100. package/dist/summer/graph/pluginconf.js +3 -1
  101. package/dist/summer/graph/plugingraph.js +3 -1
  102. package/dist/summer/index.js +3 -1
  103. package/dist/summer/initPlugin.js +3 -1
  104. package/dist/summer/module.js +3 -1
  105. package/dist/summer/persist_cache.js +3 -1
  106. package/dist/summer/plugin_driver.js +3 -1
  107. package/dist/summer/plugins/base/es6module.js +1 -1
  108. package/dist/summer/plugins/base/javascript.js +1 -1
  109. package/dist/summer/plugins/base/wxss.js +1 -1
  110. package/dist/summer/plugins/enhance.js +1 -1
  111. package/dist/summer/plugins/less.js +1 -1
  112. package/dist/summer/plugins/sass.js +1 -1
  113. package/dist/summer/plugins/terser.js +1 -1
  114. package/dist/summer/plugins/typescript.js +1 -1
  115. package/dist/summer/project.js +3 -1
  116. package/dist/summer/recorder.js +3 -1
  117. package/dist/summer/resolver.js +3 -1
  118. package/dist/summer/summer.js +3 -1
  119. package/dist/summer/types.js +3 -1
  120. package/dist/summer/utils/async.js +3 -1
  121. package/dist/summer/utils/ensureArray.js +3 -1
  122. package/dist/summer/worker.js +3 -1
  123. package/dist/types/index.js +3 -1
  124. package/dist/types/miniprogram-json/app.js +3 -1
  125. package/dist/types/miniprogram-json/base.js +3 -1
  126. package/dist/types/miniprogram-json/ext.js +3 -1
  127. package/dist/types/miniprogram-json/game.js +3 -1
  128. package/dist/types/miniprogram-json/index.js +3 -1
  129. package/dist/types/miniprogram-json/page.js +3 -1
  130. package/dist/types/miniprogram-json/plugin.js +3 -1
  131. package/dist/types/miniprogram-json/projectconfig.js +3 -1
  132. package/dist/types/miniprogram-json/sitemap.js +3 -1
  133. package/dist/types/miniprogram-json/theme.js +3 -1
  134. package/dist/utils/babel_helper.js +3 -1
  135. package/dist/utils/babel_transform_plugin.js +3 -1
  136. package/dist/utils/cache.js +3 -1
  137. package/dist/utils/common.js +3 -1
  138. package/dist/utils/error.js +3 -1
  139. package/dist/utils/fs.js +3 -1
  140. package/dist/utils/fsagent.js +3 -1
  141. package/dist/utils/glob.js +3 -1
  142. package/dist/utils/interruptibletask.js +3 -1
  143. package/dist/utils/jsonParse.js +3 -1
  144. package/dist/utils/jsonlint.js +3 -1
  145. package/dist/utils/locales/en.js +3 -1
  146. package/dist/utils/locales/fomatable_string.js +3 -1
  147. package/dist/utils/locales/locales.js +3 -1
  148. package/dist/utils/locales/zh.js +3 -1
  149. package/dist/utils/log.js +3 -1
  150. package/dist/utils/report.js +3 -1
  151. package/dist/utils/request.js +3 -1
  152. package/dist/utils/sign.js +3 -1
  153. package/dist/utils/taskstatus.js +3 -1
  154. package/dist/utils/tools.js +3 -1
  155. package/dist/utils/url_config.js +3 -1
  156. package/dist/utils/white_ext_list.js +3 -1
  157. package/dist/utils/wxvpkgreader/wxvpkgreader.js +1 -1
  158. package/dist/vendor/cloud-api/src/apis/apis.js +3 -1
  159. package/dist/vendor/cloud-api/src/apis/cdn/cdn.apis.js +3 -1
  160. package/dist/vendor/cloud-api/src/apis/cdn/index.js +3 -1
  161. package/dist/vendor/cloud-api/src/apis/flexdb/flexdb.apis.js +3 -1
  162. package/dist/vendor/cloud-api/src/apis/flexdb/index.js +3 -1
  163. package/dist/vendor/cloud-api/src/apis/scf/index.js +3 -1
  164. package/dist/vendor/cloud-api/src/apis/scf/scf.apis.js +3 -1
  165. package/dist/vendor/cloud-api/src/apis/ssl/index.js +3 -1
  166. package/dist/vendor/cloud-api/src/apis/ssl/ssl.apis.js +3 -1
  167. package/dist/vendor/cloud-api/src/apis/tcb/general.apis.js +3 -1
  168. package/dist/vendor/cloud-api/src/apis/tcb/index.js +3 -1
  169. package/dist/vendor/cloud-api/src/apis/tcb/tcb.apis.js +3 -1
  170. package/dist/vendor/cloud-api/src/index.js +3 -1
  171. package/dist/vendor/cloud-api/src/transaction/contracts/cdn.contracts.js +3 -1
  172. package/dist/vendor/cloud-api/src/transaction/contracts/contracts.js +3 -1
  173. package/dist/vendor/cloud-api/src/transaction/contracts/factory.js +3 -1
  174. package/dist/vendor/cloud-api/src/transaction/contracts/flexdb.contracts.js +3 -1
  175. package/dist/vendor/cloud-api/src/transaction/contracts/scf.contracts.js +3 -1
  176. package/dist/vendor/cloud-api/src/transaction/contracts/ssl.contracts.js +3 -1
  177. package/dist/vendor/cloud-api/src/transaction/contracts/tcb.contracts.js +3 -1
  178. package/dist/vendor/cloud-api/src/transaction/transactor.js +3 -1
  179. package/dist/vendor/cloud-api/src/transaction/validations/cdn.validations.js +3 -1
  180. package/dist/vendor/cloud-api/src/transaction/validations/common.validations.js +3 -1
  181. package/dist/vendor/cloud-api/src/transaction/validations/flexdb.validations.js +3 -1
  182. package/dist/vendor/cloud-api/src/transaction/validations/scf.validations.js +3 -1
  183. package/dist/vendor/cloud-api/src/transaction/validations/ssl.validations.js +3 -1
  184. package/dist/vendor/cloud-api/src/transaction/validations/tcb.validations.js +3 -1
  185. package/dist/vendor/cloud-api/src/transaction/validations/validations.js +3 -1
  186. package/dist/vendor/cloud-api/src/utils/common.js +3 -1
  187. package/dist/vendor/cloud-api/src/utils/validator.js +3 -1
  188. package/dist/vendor/schema/dist/app.js +47 -1
  189. package/dist/vendor/schema/dist/ext.js +46 -1
  190. package/dist/vendor/schema/dist/game.js +29 -1
  191. package/dist/vendor/schema/dist/index.js +2 -1
  192. package/dist/vendor/schema/dist/page.js +38 -1
  193. package/dist/vendor/schema/dist/plugin.js +1 -1
  194. package/dist/vendor/schema/dist/pluginpage.js +1 -1
  195. package/dist/vendor/schema/dist/projectconfig.js +425 -9
  196. package/dist/vendor/schema/dist/projectprivateconfig.js +347 -0
  197. package/dist/vendor/schema/dist/sitemap.js +1 -1
  198. package/dist/vendor/schema/dist/theme.js +1 -1
  199. package/package.json +21 -18
@@ -1,12 +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
+ },
67
+ "pluginAppid": {
68
+ "type": "string"
69
+ },
70
+ "jsserverRoot": {
71
+ "type": "string"
72
+ },
73
+ "projectname": {
74
+ "type": "string"
75
+ },
76
+ "appid": {
77
+ "type": "string"
78
+ },
10
79
  "packOptions": {
11
80
  "type": "object",
12
81
  "properties": {
@@ -22,33 +91,380 @@ module.exports = {
22
91
  "type": "string"
23
92
  }
24
93
  },
25
- "additionalProperties": false,
94
+ "required": [
95
+ "type",
96
+ "value"
97
+ ]
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
+ },
26
112
  "required": [
27
113
  "type",
28
114
  "value"
29
115
  ]
30
116
  }
31
117
  }
32
- },
33
- "additionalProperties": false
118
+ }
119
+ },
120
+ "watchOptions": {
121
+ "type": "object",
122
+ "properties": {
123
+ "ignore": {
124
+ "type": "array",
125
+ "items": {
126
+ "type": "string"
127
+ }
128
+ }
129
+ }
34
130
  },
35
131
  "setting": {
36
132
  "type": "object",
37
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
+ },
38
176
  "babelSetting": {
39
177
  "type": "object",
40
178
  "properties": {
41
179
  "outputPath": {
42
180
  "type": "string"
181
+ },
182
+ "ignore": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "string"
186
+ }
187
+ },
188
+ "disablePlugins": {
189
+ "type": "array",
190
+ "items": {}
191
+ }
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
+ "number"
336
+ ]
337
+ },
338
+ "shareInfo": {},
339
+ "referrerInfo": {},
340
+ "chatroomUsernameInfo": {},
341
+ "groupInfo": {}
342
+ }
343
+ }
344
+ }
345
+ }
346
+ },
347
+ "gamePlugin": {
348
+ "type": "object",
349
+ "properties": {
350
+ "current": {
351
+ "type": "number"
352
+ },
353
+ "list": {
354
+ "type": "array",
355
+ "items": {
356
+ "type": "object",
357
+ "properties": {
358
+ "name": {
359
+ "type": "string"
360
+ },
361
+ "query": {
362
+ "type": "string"
363
+ },
364
+ "scene": {
365
+ "type": [
366
+ "null",
367
+ "number"
368
+ ]
369
+ },
370
+ "shareInfo": {},
371
+ "referrerInfo": {},
372
+ "groupInfo": {}
373
+ }
374
+ }
375
+ }
376
+ }
377
+ },
378
+ "plugin": {
379
+ "type": "object",
380
+ "properties": {
381
+ "current": {
382
+ "type": "number"
383
+ },
384
+ "list": {
385
+ "type": "array",
386
+ "items": {
387
+ "type": "object",
388
+ "properties": {
389
+ "name": {
390
+ "type": "string"
391
+ },
392
+ "pathName": {
393
+ "type": "string"
394
+ },
395
+ "query": {
396
+ "type": "string"
397
+ },
398
+ "launchMode": {
399
+ "type": "string"
400
+ },
401
+ "scene": {
402
+ "type": [
403
+ "null",
404
+ "number"
405
+ ]
406
+ },
407
+ "shareInfo": {},
408
+ "referrerInfo": {},
409
+ "groupInfo": {}
410
+ }
411
+ }
43
412
  }
44
- },
45
- "additionalProperties": false
413
+ }
414
+ },
415
+ "miniprogram": {
416
+ "type": "object",
417
+ "properties": {
418
+ "current": {
419
+ "type": "number"
420
+ },
421
+ "list": {
422
+ "type": "array",
423
+ "items": {
424
+ "type": "object",
425
+ "properties": {
426
+ "name": {
427
+ "type": "string"
428
+ },
429
+ "pathName": {
430
+ "type": "string"
431
+ },
432
+ "query": {
433
+ "type": "string"
434
+ },
435
+ "launchMode": {
436
+ "type": "string"
437
+ },
438
+ "scene": {
439
+ "type": [
440
+ "null",
441
+ "number"
442
+ ]
443
+ },
444
+ "partialCompile": {
445
+ "type": "object",
446
+ "properties": {
447
+ "enabled": {
448
+ "type": "boolean"
449
+ },
450
+ "pages": {
451
+ "type": "array",
452
+ "items": {}
453
+ }
454
+ }
455
+ },
456
+ "shareInfo": {},
457
+ "referrerInfo": {},
458
+ "chatroomUsernameInfo": {},
459
+ "groupInfo": {}
460
+ }
461
+ }
462
+ }
463
+ }
46
464
  }
47
- },
48
- "additionalProperties": false
465
+ }
49
466
  }
50
467
  },
51
- "additionalProperties": false,
52
468
  "$schema": "http://json-schema.org/draft-07/schema#",
53
- "$version": 1629885238743
469
+ "$version": 1647243253912
54
470
  }