miniprogram-ci 1.5.1 → 1.8.0

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 (259) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +71 -0
  3. package/dist/@types/ci/code-analyse.d.ts +4 -0
  4. package/dist/@types/ci/getLatestVersion.d.ts +7 -0
  5. package/dist/@types/ci/project.d.ts +4 -0
  6. package/dist/@types/cloud/cloudapi.d.ts +1 -1
  7. package/dist/@types/cloud/uploadContainer.d.ts +36 -7
  8. package/dist/@types/config.d.ts +3 -3
  9. package/dist/@types/core/js/enhance.d.ts +1 -0
  10. package/dist/@types/core/js/generateMap.d.ts +3 -0
  11. package/dist/@types/core/json/app/checkAppFields.d.ts +1 -0
  12. package/dist/@types/core/json/projectWithMockBuffer.d.ts +14 -0
  13. package/dist/@types/core/json/reactiveCache.d.ts +4 -0
  14. package/dist/@types/core/protect/uglifyfilenames.d.ts +2 -4
  15. package/dist/@types/core/worker_thread/task/minifywxml.d.ts +7 -0
  16. package/dist/@types/core.d.ts +1 -1
  17. package/dist/@types/index.d.ts +6 -0
  18. package/dist/@types/summer/ci.d.ts +3 -0
  19. package/dist/@types/summer/devtool.d.ts +9 -1
  20. package/dist/@types/summer/error.d.ts +14 -5
  21. package/dist/@types/summer/graph/appgraph.d.ts +1 -0
  22. package/dist/@types/summer/graph/basegraph.d.ts +4 -0
  23. package/dist/@types/summer/graph/plugingraph.d.ts +2 -1
  24. package/dist/@types/summer/initPlugin.d.ts +1 -1
  25. package/dist/@types/summer/module.d.ts +3 -2
  26. package/dist/@types/summer/plugins/base/es6module.d.ts +4 -2
  27. package/dist/@types/summer/plugins/base/wxss.d.ts +1 -1
  28. package/dist/@types/summer/plugins/enhance.d.ts +3 -1
  29. package/dist/@types/summer/plugins/index.d.ts +1 -16
  30. package/dist/@types/summer/project.d.ts +5 -3
  31. package/dist/@types/summer/summer.d.ts +2 -1
  32. package/dist/@types/summer/types.d.ts +1 -0
  33. package/dist/@types/types/index.d.ts +5 -0
  34. package/dist/@types/types/miniprogram-json/app.d.ts +2 -1
  35. package/dist/@types/types/miniprogram-json/page.d.ts +1 -0
  36. package/dist/@types/types/miniprogram-json/projectconfig.d.ts +2 -0
  37. package/dist/@types/utils/locales/locales.d.ts +4 -0
  38. package/dist/@types/utils/locales/zh.d.ts +4 -0
  39. package/dist/@types/utils/tools.d.ts +1 -0
  40. package/dist/@types/utils/url_config.d.ts +1 -0
  41. package/dist/@types/vendor/code-analyse/index.d.ts +4 -3
  42. package/dist/ci/code-analyse.js +3 -0
  43. package/dist/ci/cos-upload.js +3 -1
  44. package/dist/ci/getCompiledResult.js +3 -1
  45. package/dist/ci/getDevSourceMap.js +3 -1
  46. package/dist/ci/getLatestVersion.js +3 -0
  47. package/dist/ci/jsserver.js +3 -1
  48. package/dist/ci/preview.js +3 -1
  49. package/dist/ci/project.js +3 -1
  50. package/dist/ci/projectattr.js +3 -1
  51. package/dist/ci/upload.js +3 -1
  52. package/dist/ci/utils/pack.js +3 -1
  53. package/dist/ci/utils/packfile.js +3 -1
  54. package/dist/ci/utils/terminalQrcode.js +3 -1
  55. package/dist/cli.js +3 -1
  56. package/dist/cloud/cloudapi.js +3 -1
  57. package/dist/cloud/createTimeTrigger.js +3 -1
  58. package/dist/cloud/uploadContainer.js +3 -1
  59. package/dist/cloud/uploadFile.js +3 -1
  60. package/dist/cloud/uploadFunction.js +3 -1
  61. package/dist/cloud/utils.js +3 -1
  62. package/dist/config.js +3 -1
  63. package/dist/core/analyse/partial.js +3 -1
  64. package/dist/core/compile/common.js +3 -1
  65. package/dist/core/compile/game.js +3 -1
  66. package/dist/core/compile/game_plugin.js +3 -1
  67. package/dist/core/compile/handler/js.js +3 -1
  68. package/dist/core/compile/handler/mpjson.js +3 -1
  69. package/dist/core/compile/handler/wxml.js +3 -1
  70. package/dist/core/compile/handler/wxss.js +3 -1
  71. package/dist/core/compile/index.js +3 -1
  72. package/dist/core/compile/mini_program.js +3 -1
  73. package/dist/core/compile/mini_program_plugin.js +3 -1
  74. package/dist/core/js/enhance.js +1 -1
  75. package/dist/core/js/generateMap.js +1 -0
  76. package/dist/core/js/index.js +1 -1
  77. package/dist/core/js/minifyjs_after_wrap.js +1 -1
  78. package/dist/core/json/app/checkAppFields.js +3 -1
  79. package/dist/core/json/app/getAppJSON.js +3 -1
  80. package/dist/core/json/app/getExtJSON.js +3 -1
  81. package/dist/core/json/app/index.js +3 -1
  82. package/dist/core/json/common.js +3 -1
  83. package/dist/core/json/game.js +3 -1
  84. package/dist/core/json/page/checkPageJSON.js +3 -1
  85. package/dist/core/json/page/getPageJSON.js +3 -1
  86. package/dist/core/json/plugin/plugin.js +3 -1
  87. package/dist/core/json/plugin/plugin_page.js +3 -1
  88. package/dist/core/json/projectWithMockBuffer.js +3 -0
  89. package/dist/core/json/projectconfig.js +3 -1
  90. package/dist/core/json/reactiveCache.js +3 -1
  91. package/dist/core/json/signaturejson.js +3 -1
  92. package/dist/core/json/sitemap.js +3 -1
  93. package/dist/core/json/theme.js +3 -1
  94. package/dist/core/npm/filterdeps.js +3 -1
  95. package/dist/core/npm/packnpm.js +3 -1
  96. package/dist/core/protect/file_flatter.js +3 -1
  97. package/dist/core/protect/uglifyfilenames.js +3 -1
  98. package/dist/core/utils/env.js +3 -1
  99. package/dist/core/utils/logger.js +3 -1
  100. package/dist/core/validate/validate.js +1 -1
  101. package/dist/core/worker_thread/childprocess.js +1 -1
  102. package/dist/core/worker_thread/childprocess_manager.js +1 -1
  103. package/dist/core/worker_thread/fork.js +1 -1
  104. package/dist/core/worker_thread/index.js +1 -1
  105. package/dist/core/worker_thread/task/call_func.js +1 -1
  106. package/dist/core/worker_thread/task/compilejs.js +1 -1
  107. package/dist/core/worker_thread/task/compilewxss.js +1 -1
  108. package/dist/core/worker_thread/task/func.js +1 -1
  109. package/dist/core/worker_thread/task/minifywxml.js +1 -1
  110. package/dist/core/worker_thread/worker.js +1 -1
  111. package/dist/core/worker_thread/worker_manager.js +1 -1
  112. package/dist/core.js +3 -1
  113. package/dist/index.js +3 -1
  114. package/dist/manifest.json +3 -3
  115. package/dist/summer/ci.js +3 -0
  116. package/dist/summer/devtool.js +3 -1
  117. package/dist/summer/entry_process.js +1 -1
  118. package/dist/summer/error.js +3 -1
  119. package/dist/summer/graph/appconf.js +3 -1
  120. package/dist/summer/graph/appgraph.js +3 -1
  121. package/dist/summer/graph/basegraph.js +3 -1
  122. package/dist/summer/graph/pluginconf.js +3 -1
  123. package/dist/summer/graph/plugingraph.js +3 -1
  124. package/dist/summer/index.js +3 -1
  125. package/dist/summer/initPlugin.js +3 -1
  126. package/dist/summer/module.js +3 -1
  127. package/dist/summer/persist_cache.js +3 -1
  128. package/dist/summer/plugin_driver.js +3 -1
  129. package/dist/summer/plugins/base/es6module.js +1 -1
  130. package/dist/summer/plugins/base/javascript.js +1 -1
  131. package/dist/summer/plugins/base/wxss.js +1 -1
  132. package/dist/summer/plugins/enhance.js +1 -1
  133. package/dist/summer/plugins/index.js +1 -1
  134. package/dist/summer/plugins/less.js +1 -1
  135. package/dist/summer/plugins/sass.js +1 -1
  136. package/dist/summer/plugins/terser.js +1 -1
  137. package/dist/summer/plugins/typescript.js +1 -1
  138. package/dist/summer/project.js +3 -1
  139. package/dist/summer/recorder.js +3 -1
  140. package/dist/summer/resolver.js +3 -1
  141. package/dist/summer/summer.js +3 -1
  142. package/dist/summer/types.js +3 -1
  143. package/dist/summer/utils/async.js +3 -1
  144. package/dist/summer/utils/ensureArray.js +3 -1
  145. package/dist/summer/worker.js +3 -1
  146. package/dist/types/index.js +3 -1
  147. package/dist/types/miniprogram-json/app.js +3 -1
  148. package/dist/types/miniprogram-json/base.js +3 -1
  149. package/dist/types/miniprogram-json/ext.js +3 -1
  150. package/dist/types/miniprogram-json/game.js +3 -1
  151. package/dist/types/miniprogram-json/index.js +3 -1
  152. package/dist/types/miniprogram-json/page.js +3 -1
  153. package/dist/types/miniprogram-json/plugin.js +3 -1
  154. package/dist/types/miniprogram-json/projectconfig.js +3 -1
  155. package/dist/types/miniprogram-json/sitemap.js +3 -1
  156. package/dist/types/miniprogram-json/theme.js +3 -1
  157. package/dist/utils/babel_helper.js +3 -1
  158. package/dist/utils/babel_transform_plugin.js +3 -1
  159. package/dist/utils/cache.js +3 -1
  160. package/dist/utils/common.js +3 -1
  161. package/dist/utils/error.js +3 -1
  162. package/dist/utils/fs.js +3 -1
  163. package/dist/utils/fsagent.js +3 -1
  164. package/dist/utils/glob.js +3 -1
  165. package/dist/utils/interruptibletask.js +3 -1
  166. package/dist/utils/jsonParse.js +3 -1
  167. package/dist/utils/jsonlint.js +3 -1
  168. package/dist/utils/locales/en.js +3 -1
  169. package/dist/utils/locales/fomatable_string.js +3 -1
  170. package/dist/utils/locales/locales.js +3 -1
  171. package/dist/utils/locales/zh.js +3 -1
  172. package/dist/utils/log.js +3 -1
  173. package/dist/utils/report.js +3 -1
  174. package/dist/utils/request.js +3 -1
  175. package/dist/utils/sign.js +3 -1
  176. package/dist/utils/taskstatus.js +3 -1
  177. package/dist/utils/tools.js +3 -1
  178. package/dist/utils/url_config.js +3 -1
  179. package/dist/utils/white_ext_list.js +3 -1
  180. package/dist/utils/wxvpkgreader/wxvpkgreader.js +1 -1
  181. package/dist/vendor/cloud-api/src/apis/apis.js +3 -1
  182. package/dist/vendor/cloud-api/src/apis/cdn/cdn.apis.js +3 -1
  183. package/dist/vendor/cloud-api/src/apis/cdn/index.js +3 -1
  184. package/dist/vendor/cloud-api/src/apis/flexdb/flexdb.apis.js +3 -1
  185. package/dist/vendor/cloud-api/src/apis/flexdb/index.js +3 -1
  186. package/dist/vendor/cloud-api/src/apis/scf/index.js +3 -1
  187. package/dist/vendor/cloud-api/src/apis/scf/scf.apis.js +3 -1
  188. package/dist/vendor/cloud-api/src/apis/ssl/index.js +3 -1
  189. package/dist/vendor/cloud-api/src/apis/ssl/ssl.apis.js +3 -1
  190. package/dist/vendor/cloud-api/src/apis/tcb/general.apis.js +3 -1
  191. package/dist/vendor/cloud-api/src/apis/tcb/index.js +3 -1
  192. package/dist/vendor/cloud-api/src/apis/tcb/tcb.apis.js +3 -1
  193. package/dist/vendor/cloud-api/src/index.js +3 -1
  194. package/dist/vendor/cloud-api/src/transaction/contracts/cdn.contracts.js +3 -1
  195. package/dist/vendor/cloud-api/src/transaction/contracts/contracts.js +3 -1
  196. package/dist/vendor/cloud-api/src/transaction/contracts/factory.js +3 -1
  197. package/dist/vendor/cloud-api/src/transaction/contracts/flexdb.contracts.js +3 -1
  198. package/dist/vendor/cloud-api/src/transaction/contracts/scf.contracts.js +3 -1
  199. package/dist/vendor/cloud-api/src/transaction/contracts/ssl.contracts.js +3 -1
  200. package/dist/vendor/cloud-api/src/transaction/contracts/tcb.contracts.js +3 -1
  201. package/dist/vendor/cloud-api/src/transaction/transactor.js +3 -1
  202. package/dist/vendor/cloud-api/src/transaction/validations/cdn.validations.js +3 -1
  203. package/dist/vendor/cloud-api/src/transaction/validations/common.validations.js +3 -1
  204. package/dist/vendor/cloud-api/src/transaction/validations/flexdb.validations.js +3 -1
  205. package/dist/vendor/cloud-api/src/transaction/validations/scf.validations.js +3 -1
  206. package/dist/vendor/cloud-api/src/transaction/validations/ssl.validations.js +3 -1
  207. package/dist/vendor/cloud-api/src/transaction/validations/tcb.validations.js +3 -1
  208. package/dist/vendor/cloud-api/src/transaction/validations/validations.js +3 -1
  209. package/dist/vendor/cloud-api/src/utils/common.js +3 -1
  210. package/dist/vendor/cloud-api/src/utils/validator.js +3 -1
  211. package/dist/vendor/code-analyse/index.js +1 -1
  212. package/dist/vendor/schema/dist/app.js +26 -1
  213. package/dist/vendor/schema/dist/ext.js +21 -1
  214. package/dist/vendor/schema/dist/game.js +29 -1
  215. package/dist/vendor/schema/dist/page.js +18 -1
  216. package/dist/vendor/schema/dist/plugin.js +1 -1
  217. package/dist/vendor/schema/dist/pluginpage.js +1 -1
  218. package/dist/vendor/schema/dist/projectconfig.js +38 -1
  219. package/dist/vendor/schema/dist/sitemap.js +1 -1
  220. package/dist/vendor/schema/dist/theme.js +1 -1
  221. package/package.json +22 -24
  222. package/dist/@types/core/js/__tests__/minifyjs.spec.d.ts +0 -1
  223. package/dist/@types/summer/backup/appconf/index-old.d.ts +0 -0
  224. package/dist/@types/summer/backup/appconf/index.d.ts +0 -33
  225. package/dist/@types/summer/backup/detectors/es6/BasicEvaluatedExpression.d.ts +0 -51
  226. package/dist/@types/summer/backup/detectors/es6/ContextDependencyHelpers.d.ts +0 -4
  227. package/dist/@types/summer/backup/detectors/es6/Evaluator.d.ts +0 -29
  228. package/dist/@types/summer/backup/detectors/es6/Parser.d.ts +0 -134
  229. package/dist/@types/summer/backup/detectors/es6/StackedSetMap.d.ts +0 -17
  230. package/dist/@types/summer/backup/detectors/es6/acorn/acorn.d.ts +0 -0
  231. package/dist/@types/summer/backup/detectors/es6/types.d.ts +0 -37
  232. package/dist/@types/summer/backup/detectors/wxml/index.d.ts +0 -4
  233. package/dist/@types/summer/backup/detectors/wxss/index.d.ts +0 -5
  234. package/dist/@types/summer/backup/detectors/wxss/parse.d.ts +0 -1
  235. package/dist/@types/summer/backup/fslayer/fslayer.d.ts +0 -73
  236. package/dist/@types/summer/backup/graph.d.ts +0 -71
  237. package/dist/@types/summer/backup/module.d.ts +0 -34
  238. package/dist/@types/summer/backup/plugin_driver.d.ts +0 -41
  239. package/dist/@types/summer/backup/structs/app.d.ts +0 -0
  240. package/dist/@types/summer/backup/watcher.d.ts +0 -0
  241. package/dist/core/js/__tests__/minifyjs.spec.js +0 -1
  242. package/dist/summer/backup/appconf/index-old.js +0 -1
  243. package/dist/summer/backup/appconf/index.js +0 -1
  244. package/dist/summer/backup/detectors/es6/BasicEvaluatedExpression.js +0 -1
  245. package/dist/summer/backup/detectors/es6/ContextDependencyHelpers.js +0 -1
  246. package/dist/summer/backup/detectors/es6/Evaluator.js +0 -1
  247. package/dist/summer/backup/detectors/es6/Parser.js +0 -1
  248. package/dist/summer/backup/detectors/es6/StackedSetMap.js +0 -1
  249. package/dist/summer/backup/detectors/es6/acorn/acorn.js +0 -1
  250. package/dist/summer/backup/detectors/es6/types.js +0 -1
  251. package/dist/summer/backup/detectors/wxml/index.js +0 -1
  252. package/dist/summer/backup/detectors/wxss/index.js +0 -1
  253. package/dist/summer/backup/detectors/wxss/parse.js +0 -1
  254. package/dist/summer/backup/fslayer/fslayer.js +0 -1
  255. package/dist/summer/backup/graph.js +0 -1
  256. package/dist/summer/backup/module.js +0 -1
  257. package/dist/summer/backup/plugin_driver.js +0 -1
  258. package/dist/summer/backup/structs/app.js +0 -1
  259. package/dist/summer/backup/watcher.js +0 -1
@@ -128,6 +128,9 @@ module.exports = {
128
128
  "resizable": {
129
129
  "type": "boolean"
130
130
  },
131
+ "frameset": {
132
+ "type": "boolean"
133
+ },
131
134
  "functionalPages": {
132
135
  "anyOf": [
133
136
  {
@@ -241,6 +244,25 @@ module.exports = {
241
244
  "items": {
242
245
  "$ref": "#/definitions/ISupportMaterial"
243
246
  }
247
+ },
248
+ "requireBackgroundModes": {
249
+ "type": "array",
250
+ "items": {
251
+ "type": "string"
252
+ }
253
+ },
254
+ "embeddedAppIdList": {
255
+ "type": "array",
256
+ "items": {
257
+ "type": "string"
258
+ }
259
+ },
260
+ "renderer": {
261
+ "enum": [
262
+ "skyline",
263
+ "webview"
264
+ ],
265
+ "type": "string"
244
266
  }
245
267
  },
246
268
  "additionalProperties": false,
@@ -257,6 +279,9 @@ module.exports = {
257
279
  "backgroundColorBottom": {
258
280
  "type": "string"
259
281
  },
282
+ "backgroundColorContent": {
283
+ "type": "string"
284
+ },
260
285
  "backgroundColor": {
261
286
  "type": "string"
262
287
  },
@@ -479,5 +504,5 @@ module.exports = {
479
504
  }
480
505
  },
481
506
  "$schema": "http://json-schema.org/draft-07/schema#",
482
- "$version": 1623400449007
507
+ "$version": 1641386684031
483
508
  }
@@ -389,6 +389,13 @@ module.exports = {
389
389
  "additionalProperties": {
390
390
  "type": "string"
391
391
  }
392
+ },
393
+ "renderer": {
394
+ "enum": [
395
+ "skyline",
396
+ "webview"
397
+ ],
398
+ "type": "string"
392
399
  }
393
400
  },
394
401
  "additionalProperties": false
@@ -444,6 +451,9 @@ module.exports = {
444
451
  "backgroundColorBottom": {
445
452
  "type": "string"
446
453
  },
454
+ "backgroundColorContent": {
455
+ "type": "string"
456
+ },
447
457
  "usingComponents": {
448
458
  "type": "object",
449
459
  "additionalProperties": {
@@ -479,6 +489,13 @@ module.exports = {
479
489
  ],
480
490
  "type": "string"
481
491
  },
492
+ "renderer": {
493
+ "enum": [
494
+ "skyline",
495
+ "webview"
496
+ ],
497
+ "type": "string"
498
+ },
482
499
  "component": {
483
500
  "type": "boolean"
484
501
  },
@@ -523,6 +540,9 @@ module.exports = {
523
540
  "backgroundColorBottom": {
524
541
  "type": "string"
525
542
  },
543
+ "backgroundColorContent": {
544
+ "type": "string"
545
+ },
526
546
  "backgroundColor": {
527
547
  "type": "string"
528
548
  },
@@ -745,5 +765,5 @@ module.exports = {
745
765
  }
746
766
  },
747
767
  "$schema": "http://json-schema.org/draft-07/schema#",
748
- "$version": 1622114847352
768
+ "$version": 1631795974263
749
769
  }
@@ -90,6 +90,34 @@ module.exports = {
90
90
  "additionalProperties": {
91
91
  "$ref": "#/definitions/IPluginConfig"
92
92
  }
93
+ },
94
+ "resizable": {
95
+ "type": "boolean"
96
+ },
97
+ "lockStepOptions": {
98
+ "type": "object",
99
+ "properties": {
100
+ "gameTick": {
101
+ "type": "number"
102
+ },
103
+ "heartBeatTick": {
104
+ "type": "number"
105
+ },
106
+ "offlineTimeLength": {
107
+ "type": "number"
108
+ },
109
+ "UDPReliabilityStrategy": {
110
+ "type": "number"
111
+ },
112
+ "dataType": {
113
+ "enum": [
114
+ "ArrayBuffer",
115
+ "String"
116
+ ],
117
+ "type": "string"
118
+ }
119
+ },
120
+ "additionalProperties": false
93
121
  }
94
122
  },
95
123
  "additionalProperties": false,
@@ -159,5 +187,5 @@ module.exports = {
159
187
  }
160
188
  },
161
189
  "$schema": "http://json-schema.org/draft-07/schema#",
162
- "$version": 1604045430707
190
+ "$version": 1634549592232
163
191
  }
@@ -139,6 +139,13 @@ module.exports = {
139
139
  "additionalProperties": {
140
140
  "type": "string"
141
141
  }
142
+ },
143
+ "renderer": {
144
+ "enum": [
145
+ "skyline",
146
+ "webview"
147
+ ],
148
+ "type": "string"
142
149
  }
143
150
  },
144
151
  "additionalProperties": false,
@@ -194,6 +201,9 @@ module.exports = {
194
201
  "backgroundColorBottom": {
195
202
  "type": "string"
196
203
  },
204
+ "backgroundColorContent": {
205
+ "type": "string"
206
+ },
197
207
  "usingComponents": {
198
208
  "type": "object",
199
209
  "additionalProperties": {
@@ -229,6 +239,13 @@ module.exports = {
229
239
  ],
230
240
  "type": "string"
231
241
  },
242
+ "renderer": {
243
+ "enum": [
244
+ "skyline",
245
+ "webview"
246
+ ],
247
+ "type": "string"
248
+ },
232
249
  "component": {
233
250
  "type": "boolean"
234
251
  },
@@ -266,5 +283,5 @@ module.exports = {
266
283
  }
267
284
  },
268
285
  "$schema": "http://json-schema.org/draft-07/schema#",
269
- "$version": 1623400465708
286
+ "$version": 1640574774060
270
287
  }
@@ -37,5 +37,5 @@ module.exports = {
37
37
  },
38
38
  "additionalProperties": false,
39
39
  "$schema": "http://json-schema.org/draft-07/schema#",
40
- "$version": 1625037998184
40
+ "$version": 1631795974264
41
41
  }
@@ -10,5 +10,5 @@ module.exports = {
10
10
  },
11
11
  "additionalProperties": false,
12
12
  "$schema": "http://json-schema.org/draft-07/schema#",
13
- "$version": 1598429206815
13
+ "$version": 1631795974264
14
14
  }
@@ -7,6 +7,12 @@ module.exports = {
7
7
  "pluginRoot": {
8
8
  "type": "string"
9
9
  },
10
+ "pluginAppid": {
11
+ "type": "string"
12
+ },
13
+ "jsserverRoot": {
14
+ "type": "string"
15
+ },
10
16
  "packOptions": {
11
17
  "type": "object",
12
18
  "properties": {
@@ -28,6 +34,37 @@ module.exports = {
28
34
  "value"
29
35
  ]
30
36
  }
37
+ },
38
+ "include": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "type": "string"
45
+ },
46
+ "value": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "additionalProperties": false,
51
+ "required": [
52
+ "type",
53
+ "value"
54
+ ]
55
+ }
56
+ }
57
+ },
58
+ "additionalProperties": false
59
+ },
60
+ "watchOptions": {
61
+ "type": "object",
62
+ "properties": {
63
+ "ignore": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "string"
67
+ }
31
68
  }
32
69
  },
33
70
  "additionalProperties": false
@@ -50,5 +87,5 @@ module.exports = {
50
87
  },
51
88
  "additionalProperties": false,
52
89
  "$schema": "http://json-schema.org/draft-07/schema#",
53
- "$version": 1602236355092
90
+ "$version": 1640574774061
54
91
  }
@@ -49,5 +49,5 @@ module.exports = {
49
49
  "rules"
50
50
  ],
51
51
  "$schema": "http://json-schema.org/draft-07/schema#",
52
- "$version": 1598429206815
52
+ "$version": 1631795974265
53
53
  }
@@ -16,5 +16,5 @@ module.exports = {
16
16
  },
17
17
  "additionalProperties": false,
18
18
  "$schema": "http://json-schema.org/draft-07/schema#",
19
- "$version": 1598429206815
19
+ "$version": 1631795974265
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miniprogram-ci",
3
- "version": "1.5.1",
3
+ "version": "1.8.0",
4
4
  "description": "pre compilation module about the miniProgram / miniGame project extracted from WeChatDevtools.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/@types/index.d.ts",
@@ -41,28 +41,26 @@
41
41
  "license": "MIT",
42
42
  "devDependencies": {
43
43
  "@tencent/eslint-config-tencent": "^1.0.0-beta.5",
44
- "@types/autoprefixer": "^9.6.1",
45
44
  "@types/babel-code-frame": "^6.20.2",
46
45
  "@types/babel-core": "^6.25.6",
47
- "@types/babel__core": "^7.1.3",
48
- "@types/cssnano": "^4.0.0",
46
+ "@types/babel__core": "^7.1.17",
47
+ "@types/cssnano": "^4.0.1",
49
48
  "@types/estree": "0.0.47",
50
49
  "@types/fs-extra": "^8.0.0",
51
- "@types/glob": "^7.1.1",
50
+ "@types/glob": "^7.2.0",
52
51
  "@types/html-minifier": "^3.5.3",
53
52
  "@types/jest": "^26.0.20",
54
- "@types/less": "^3.0.2",
55
- "@types/lodash": "^4.14.144",
56
- "@types/node": "^12.7.12",
57
- "@types/node-sass": "^4.11.1",
53
+ "@types/less": "^3.0.3",
54
+ "@types/lodash": "^4.14.178",
55
+ "@types/node": "^13.13.52",
58
56
  "@types/read-package-tree": "^5.2.0",
59
57
  "@types/request": "^2.48.3",
60
58
  "@types/rimraf": "^3.0.0",
61
- "@types/sass": "^1.16.1",
59
+ "@types/sass": "^1.43.1",
62
60
  "@types/uglify-js": "^3.0.4",
63
61
  "@types/yargs": "^13.0.3",
64
- "@typescript-eslint/eslint-plugin": "^4.15.2",
65
- "@typescript-eslint/parser": "^4.15.2",
62
+ "@typescript-eslint/eslint-plugin": "^4.33.0",
63
+ "@typescript-eslint/parser": "^4.33.0",
66
64
  "chai": "^4.2.0",
67
65
  "chai-as-promised": "^7.1.1",
68
66
  "eslint": "^7.20.0",
@@ -73,7 +71,7 @@
73
71
  "mochawesome": "^4.1.0",
74
72
  "nyc": "^14.1.1",
75
73
  "ts-jest": "^26.5.2",
76
- "typescript": "^4.1.3",
74
+ "typescript": "^4.5.3",
77
75
  "typescript-json-schema": "^0.41.0"
78
76
  },
79
77
  "dependencies": {
@@ -87,21 +85,23 @@
87
85
  "@babel/plugin-proposal-function-bind": "7.12.1",
88
86
  "@babel/plugin-proposal-function-sent": "7.12.1",
89
87
  "@babel/plugin-proposal-pipeline-operator": "7.12.1",
88
+ "@babel/plugin-proposal-private-methods": "7.12.1",
90
89
  "@babel/plugin-proposal-throw-expressions": "7.12.1",
90
+ "@babel/plugin-transform-modules-commonjs": "^7.15.4",
91
91
  "@babel/plugin-transform-runtime": "7.12.1",
92
- "@babel/plugin-transform-typescript": "^7.14.4",
92
+ "@babel/plugin-transform-typescript": "^7.16.1",
93
93
  "@babel/preset-env": "7.12.1",
94
94
  "@babel/runtime": "7.12.1",
95
95
  "@vue/reactivity": "3.0.5",
96
96
  "acorn": "^6.1.1",
97
- "autoprefixer": "^7.2.6",
97
+ "autoprefixer": "^10.4.0",
98
98
  "babel-code-frame": "6.26.0",
99
99
  "babel-core": "6.26.0",
100
100
  "babel-preset-es2015": "6.24.1",
101
101
  "babel-preset-stage-0": "6.24.1",
102
102
  "chokidar": "^3.5.1",
103
- "cos-nodejs-sdk-v5": "^2.9.12",
104
- "cssnano": "4.1.10",
103
+ "cos-nodejs-sdk-v5": "^2.11.4",
104
+ "cssnano": "^5.0.12",
105
105
  "eventemitter3": "^4.0.5",
106
106
  "fs-extra": "8.1.0",
107
107
  "get-proxy": "^2.1.0",
@@ -110,21 +110,19 @@
110
110
  "jimp": "^0.9.3",
111
111
  "jsonschema": "^1.2.5",
112
112
  "jszip": "^3.4.0",
113
- "less": "^4.1.1",
113
+ "less": "^4.1.2",
114
+ "licia": "^1.31.1",
114
115
  "lodash": "^4.17.15",
115
116
  "memory-fs": "^0.5.0",
116
117
  "minimatch": "3.0.4",
117
- "moment-timezone": "^0.5.31",
118
- "node-sass": "^5.0.0",
119
- "postcss": "^7.0.35",
118
+ "moment-timezone": "^0.5.34",
119
+ "postcss": "^8.4.4",
120
120
  "qrcode-reader": "^1.0.4",
121
121
  "qrcode-terminal": "^0.12.0",
122
122
  "read-package-tree": "5.2.1",
123
123
  "request": "^2.81.2",
124
124
  "rimraf": "^3.0.2",
125
- "rollup": "^2.45.2",
126
- "rollup-plugin-postcss": "^4.0.0",
127
- "sass": "^1.35.2",
125
+ "sass": "^1.44.0",
128
126
  "source-map": "0.6.1",
129
127
  "terser": "4.8.0",
130
128
  "tslib": "1.10.0",
@@ -1 +0,0 @@
1
- export {};
File without changes
@@ -1,33 +0,0 @@
1
- import { Graph } from '../graph/base';
2
- import { SummerCompiler } from '../summer';
3
- import { IDevtoolProject } from '../types';
4
- export declare function resolvePath(currentPath: string, targetPath: string): string;
5
- declare type JSONType = 'App' | 'Page' | 'Comp' | 'Sitemap';
6
- interface RawJSONCacheItem {
7
- id: string;
8
- type: JSONType;
9
- json: any;
10
- depFileId: string;
11
- }
12
- export declare class AppConf {
13
- private compiler;
14
- graph: Graph;
15
- rawJSON: Map<string, RawJSONCacheItem>;
16
- app: any;
17
- packages: Map<string, any>;
18
- pages: Map<string, any>;
19
- comps: Map<string, any>;
20
- sitemap: any;
21
- theme: any;
22
- proxyProject: IDevtoolProject;
23
- constructor(compiler: SummerCompiler, graph: Graph);
24
- build(): Promise<void>;
25
- onFileChange: (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', path: string) => void;
26
- private resetState;
27
- private loadApp;
28
- private loadPage;
29
- private loadComp;
30
- private loadSitemap;
31
- private loadTheme;
32
- }
33
- export {};
@@ -1,51 +0,0 @@
1
- export default class BasicEvaluatedExpression {
2
- type: number;
3
- range: null;
4
- falsy: boolean;
5
- truthy: boolean;
6
- bool: null;
7
- number: null;
8
- regExp: null;
9
- string: null;
10
- quasis: null;
11
- parts: null;
12
- array: null;
13
- items: null;
14
- options: null;
15
- prefix: null;
16
- postfix: null;
17
- wrappedInnerExpressions: null;
18
- expression: null;
19
- constructor();
20
- isNull(): boolean;
21
- isString(): boolean;
22
- isNumber(): boolean;
23
- isBoolean(): boolean;
24
- isRegExp(): boolean;
25
- isConditional(): boolean;
26
- isArray(): boolean;
27
- isConstArray(): boolean;
28
- isIdentifier(): boolean;
29
- isWrapped(): boolean;
30
- isTemplateString(): boolean;
31
- isTruthy(): boolean;
32
- isFalsy(): boolean;
33
- asBool(): boolean | null | undefined;
34
- asString(): string | null | undefined;
35
- setString(string: any): this;
36
- setNull(): this;
37
- setNumber(number: any): this;
38
- setBoolean(bool: any): this;
39
- setRegExp(regExp: any): this;
40
- setIdentifier(identifier: any): this;
41
- setWrapped(prefix: any, postfix: any, innerExpressions: any): this;
42
- setOptions(options: any): this;
43
- addOptions(options: any): this;
44
- setItems(items: any): this;
45
- setArray(array: any): this;
46
- setTemplateString(quasis: any, parts: any, kind: any): this;
47
- setTruthy(): this;
48
- setFalsy(): this;
49
- setRange(range: any): this;
50
- setExpression(expression: any): this;
51
- }
@@ -1,4 +0,0 @@
1
- import { Expression } from "estree";
2
- import JavascriptParser from "./Parser";
3
- import BasicEvaluatedExpression from "./BasicEvaluatedExpression";
4
- export declare function collectContextDependency(param: BasicEvaluatedExpression, expr: Expression, parser: JavascriptParser): void;
@@ -1,29 +0,0 @@
1
- import JavascriptParser from "./Parser";
2
- import { Expression, SpreadElement, UnaryExpression, BinaryExpression, LogicalExpression, ConditionalExpression, TemplateLiteral, Literal, TaggedTemplateExpression, MemberExpression, ThisExpression, Identifier, Super } from "estree";
3
- declare type EvaluateHook<T> = (expr: T) => any;
4
- declare type EvaluateTypeofHook<T> = (expr: T) => any;
5
- export declare class Evaluator {
6
- parser: JavascriptParser;
7
- hooks: {
8
- evaluate: {
9
- Literal: EvaluateHook<Literal>;
10
- LogicalExpression: EvaluateHook<LogicalExpression>;
11
- BinaryExpression: EvaluateHook<BinaryExpression>;
12
- UnaryExpression: EvaluateHook<UnaryExpression>;
13
- Identifier: EvaluateHook<Identifier>;
14
- ThisExpression: EvaluateHook<ThisExpression>;
15
- MemberExpression: EvaluateHook<MemberExpression>;
16
- TemplateLiteral: EvaluateHook<TemplateLiteral>;
17
- TaggedTemplateExpression: EvaluateHook<TaggedTemplateExpression>;
18
- ConditionalExpression: EvaluateHook<ConditionalExpression>;
19
- };
20
- evaluateTypeof: {
21
- require: EvaluateTypeofHook<Identifier>;
22
- undefined: EvaluateTypeofHook<Identifier>;
23
- };
24
- };
25
- constructor(parser: JavascriptParser);
26
- initializeEvaluating(): void;
27
- evaluateExpression(expression: Expression | SpreadElement | Super): any;
28
- }
29
- export {};
@@ -1,134 +0,0 @@
1
- import StackedSetMap from "./StackedSetMap";
2
- import { ParserState } from "./types";
3
- import { Evaluator } from './Evaluator';
4
- import { Program, BlockStatement, ExpressionStatement, IfStatement, LabeledStatement, WithStatement, SwitchStatement, ReturnStatement, ThrowStatement, TryStatement, WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, Declaration, FunctionDeclaration, ClassDeclaration, MethodDefinition, ImportDeclaration, ExportNamedDeclaration, ExportAllDeclaration, ExportDefaultDeclaration, SwitchCase, CatchClause, Pattern as ESTreePattern, AssignmentPattern, ObjectPattern, ArrayPattern, RestElement, Expression, AwaitExpression, ArrayExpression, SpreadElement, ObjectExpression, FunctionExpression, ArrowFunctionExpression, SequenceExpression, UpdateExpression, UnaryExpression, BinaryExpression, LogicalExpression, AssignmentExpression, ConditionalExpression, NewExpression, CallExpression, ClassExpression, YieldExpression, TemplateLiteral, TaggedTemplateExpression, MemberExpression, Identifier, AssignmentProperty, VariableDeclaration, Super } from "estree";
5
- interface Scope {
6
- topLevelScope: boolean;
7
- inTry: boolean;
8
- inShorthand: boolean;
9
- isStrict: boolean;
10
- isAsmJs: boolean;
11
- definitions: StackedSetMap;
12
- renames: StackedSetMap;
13
- }
14
- declare type Statement = Program["body"][number];
15
- declare type Pattern = ESTreePattern | AssignmentProperty | null;
16
- declare type OnIndent = (name: string, pattern?: Pattern) => void;
17
- export interface Es6ParserContext {
18
- isLayaGame: boolean;
19
- }
20
- export default class ES6Parser {
21
- scope: Scope;
22
- state: ParserState;
23
- evaluator: Evaluator;
24
- parserContext: Es6ParserContext;
25
- constructor(parserContext: Es6ParserContext);
26
- parse(source: string | Program): ParserState;
27
- static parse(code: string): Program;
28
- detectMode(statements: Statement[]): void;
29
- getRenameIdentifier(expr: Expression | SpreadElement): any;
30
- walkClass(classy: ClassExpression | ClassDeclaration): void;
31
- walkMethodDefinition(methodDefinition: MethodDefinition): void;
32
- prewalkStatements(statements: Statement[]): void;
33
- blockPrewalkStatements(statements: Statement[]): void;
34
- walkStatements(statements: Statement[]): void;
35
- prewalkStatement(statement: Statement): void;
36
- blockPrewalkStatement(statement: Statement): void;
37
- walkStatement(statement: Statement): void;
38
- prewalkBlockStatement(statement: BlockStatement): void;
39
- walkBlockStatement(statement: BlockStatement): void;
40
- walkExpressionStatement(statement: ExpressionStatement): void;
41
- prewalkIfStatement(statement: IfStatement): void;
42
- walkIfStatement(statement: IfStatement): void;
43
- prewalkLabeledStatement(statement: LabeledStatement): void;
44
- walkLabeledStatement(statement: LabeledStatement): void;
45
- prewalkWithStatement(statement: WithStatement): void;
46
- walkWithStatement(statement: WithStatement): void;
47
- prewalkSwitchStatement(statement: SwitchStatement): void;
48
- walkSwitchStatement(statement: SwitchStatement): void;
49
- walkTerminatingStatement(statement: ReturnStatement | ThrowStatement): void;
50
- walkReturnStatement(statement: ReturnStatement): void;
51
- walkThrowStatement(statement: ThrowStatement): void;
52
- prewalkTryStatement(statement: TryStatement): void;
53
- walkTryStatement(statement: TryStatement): void;
54
- prewalkWhileStatement(statement: WhileStatement): void;
55
- walkWhileStatement(statement: WhileStatement): void;
56
- prewalkDoWhileStatement(statement: DoWhileStatement): void;
57
- walkDoWhileStatement(statement: DoWhileStatement): void;
58
- prewalkForStatement(statement: ForStatement): void;
59
- walkForStatement(statement: ForStatement): void;
60
- prewalkForInStatement(statement: ForInStatement): void;
61
- walkForInStatement(statement: ForInStatement): void;
62
- prewalkForOfStatement(statement: ForOfStatement): void;
63
- walkForOfStatement(statement: ForOfStatement): void;
64
- prewalkFunctionDeclaration(statement: FunctionDeclaration): void;
65
- walkFunctionDeclaration(statement: FunctionDeclaration): void;
66
- prewalkImportDeclaration(statement: ImportDeclaration): void;
67
- enterDeclaration(declaration: Declaration, onIdent: OnIndent): void;
68
- blockPrewalkExportNamedDeclaration(statement: ExportNamedDeclaration): void;
69
- prewalkExportNamedDeclaration(statement: ExportNamedDeclaration): void;
70
- walkExportNamedDeclaration(statement: ExportNamedDeclaration): void;
71
- blockPrewalkExportDefaultDeclaration(statement: ExportDefaultDeclaration): void;
72
- prewalkExportDefaultDeclaration(statement: ExportDefaultDeclaration): void;
73
- walkExportDefaultDeclaration(statement: ExportDefaultDeclaration): void;
74
- prewalkExportAllDeclaration(statement: ExportAllDeclaration): void;
75
- prewalkVariableDeclaration(statement: VariableDeclaration): void;
76
- blockPrewalkVariableDeclaration(statement: VariableDeclaration): void;
77
- _prewalkVariableDeclaration(statement: VariableDeclaration): void;
78
- walkVariableDeclaration(statement: VariableDeclaration): void;
79
- blockPrewalkClassDeclaration(statement: ClassDeclaration): void;
80
- walkClassDeclaration(statement: ClassDeclaration): void;
81
- prewalkSwitchCases(switchCases: SwitchCase[]): void;
82
- walkSwitchCases(switchCases: SwitchCase[]): void;
83
- walkCatchClause(catchClause: CatchClause): void;
84
- walkPattern(pattern: NonNullable<Pattern>): void;
85
- walkAssignmentPattern(pattern: AssignmentPattern): void;
86
- walkObjectPattern(pattern: ObjectPattern): void;
87
- walkArrayPattern(pattern: ArrayPattern): void;
88
- walkRestElement(pattern: RestElement): void;
89
- walkExpressions(expressions: Array<Expression | SpreadElement | Super>): void;
90
- walkExpression(expression: Expression | SpreadElement | Super): void;
91
- walkAwaitExpression(expression: AwaitExpression): void;
92
- walkArrayExpression(expression: ArrayExpression): void;
93
- walkSpreadElement(expression: SpreadElement): void;
94
- walkObjectExpression(expression: ObjectExpression): void;
95
- walkFunctionExpression(expression: FunctionExpression): void;
96
- walkArrowFunctionExpression(expression: ArrowFunctionExpression): void;
97
- walkSequenceExpression(expression: SequenceExpression): void;
98
- walkUpdateExpression(expression: UpdateExpression): void;
99
- walkUnaryExpression(expression: UnaryExpression): void;
100
- walkLeftRightExpression(expression: BinaryExpression | LogicalExpression): void;
101
- walkBinaryExpression(expression: BinaryExpression): void;
102
- walkLogicalExpression(expression: LogicalExpression): void;
103
- walkAssignmentExpression(expression: AssignmentExpression): void;
104
- walkConditionalExpression(expression: ConditionalExpression): void;
105
- walkNewExpression(expression: NewExpression): void;
106
- walkYieldExpression(expression: YieldExpression): void;
107
- walkTemplateLiteral(expression: TemplateLiteral): void;
108
- walkTaggedTemplateExpression(expression: TaggedTemplateExpression): void;
109
- walkClassExpression(expression: ClassExpression): void;
110
- _walkIIFE(functionExpression: FunctionExpression, options: Array<Expression | SpreadElement>, currentThis: Expression | SpreadElement | null): void;
111
- walkCallExpression(expression: CallExpression): void;
112
- walkMemberExpression(expression: MemberExpression): void;
113
- walkIdentifier(expression: Identifier): void;
114
- inFunctionScope(hasThis: boolean, params: Array<ESTreePattern | string>, fn: () => void): void;
115
- inBlockScope(fn: () => void): void;
116
- enterPatterns(patterns: Array<Pattern | string>, onIdent: OnIndent): void;
117
- enterPattern(pattern: Pattern, onIdent: OnIndent): void;
118
- enterIdentifier(pattern: Identifier, onIdent: OnIndent): void;
119
- enterObjectPattern(pattern: ObjectPattern, onIdent: OnIndent): void;
120
- enterArrayPattern(pattern: ArrayPattern, onIdent: OnIndent): void;
121
- enterRestElement(pattern: RestElement, onIdent: OnIndent): void;
122
- enterAssignmentPattern(pattern: AssignmentPattern, onIdent: OnIndent): void;
123
- getNameForExpression(expression: Expression): {
124
- name: any;
125
- nameGeneral: string;
126
- free: boolean;
127
- } | null;
128
- evaluateExpression(expression: Expression | SpreadElement | Super): any;
129
- trackHarmonyExportImport(expr: ExportAllDeclaration | ExportNamedDeclaration): void;
130
- trackHarmonyImport(expr: ImportDeclaration): void;
131
- trackImportOrRequireCall(expr: CallExpression, type: "import" | "require"): boolean;
132
- warnRequireExpression(expr: Expression): boolean;
133
- }
134
- export {};
@@ -1,17 +0,0 @@
1
- export default class StackedSetMap {
2
- constructor(parentStack?: any);
3
- add(item: any): void;
4
- set(item: any, value: any): void;
5
- delete(item: any): void;
6
- has(item: any): boolean;
7
- get(item: any): any;
8
- _compress(): void;
9
- asArray(): any[];
10
- asSet(): Set<any>;
11
- asPairArray(): unknown[];
12
- asMap(): Map<unknown, unknown>;
13
- get size(): any;
14
- createChild(): StackedSetMap;
15
- get length(): void;
16
- set length(value: void);
17
- }