miniprogram-ci 1.8.0 → 1.8.25

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 (165) hide show
  1. package/CHANGELOG.md +11 -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 -1
  5. package/dist/@types/core/json/app/checkAppFields.d.ts +1 -0
  6. package/dist/@types/core/worker_thread/task/minifywxml.d.ts +26 -1
  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/plugins/minifywxml.d.ts +5 -0
  10. package/dist/@types/summer/summer.d.ts +1 -0
  11. package/dist/@types/summer/types.d.ts +12 -3
  12. package/dist/@types/types/miniprogram-json/app.d.ts +3 -0
  13. package/dist/@types/utils/babel_plugin_worklet.d.ts +34 -0
  14. package/dist/@types/utils/locales/locales.d.ts +3 -0
  15. package/dist/@types/utils/locales/zh.d.ts +3 -0
  16. package/dist/@types/vendor/code-analyse/index.d.ts +58 -1
  17. package/dist/ci/code-analyse.js +1 -1
  18. package/dist/ci/cos-upload.js +1 -1
  19. package/dist/ci/getCompiledResult.js +1 -1
  20. package/dist/ci/getDevSourceMap.js +1 -1
  21. package/dist/ci/getLatestVersion.js +1 -1
  22. package/dist/ci/jsserver.js +1 -1
  23. package/dist/ci/preview.js +1 -1
  24. package/dist/ci/project.js +1 -1
  25. package/dist/ci/projectattr.js +1 -1
  26. package/dist/ci/upload.js +1 -1
  27. package/dist/ci/utils/packfile.js +1 -1
  28. package/dist/cli.js +1 -1
  29. package/dist/cloud/cloudapi.js +1 -1
  30. package/dist/cloud/createTimeTrigger.js +1 -1
  31. package/dist/cloud/uploadContainer.js +1 -1
  32. package/dist/cloud/uploadFile.js +1 -1
  33. package/dist/cloud/uploadFunction.js +1 -1
  34. package/dist/cloud/utils.js +1 -1
  35. package/dist/config.js +1 -1
  36. package/dist/core/compile/common.js +1 -1
  37. package/dist/core/compile/game.js +1 -1
  38. package/dist/core/compile/game_plugin.js +1 -1
  39. package/dist/core/compile/handler/js.js +1 -1
  40. package/dist/core/compile/handler/mpjson.js +1 -1
  41. package/dist/core/compile/handler/wxml.js +1 -1
  42. package/dist/core/compile/handler/wxss.js +1 -1
  43. package/dist/core/compile/index.js +1 -1
  44. package/dist/core/compile/mini_program.js +1 -1
  45. package/dist/core/compile/mini_program_plugin.js +1 -1
  46. package/dist/core/js/enhance.js +1 -1
  47. package/dist/core/js/index.js +1 -1
  48. package/dist/core/js/minifyjs.js +1 -1
  49. package/dist/core/js/minifyjs_after_wrap.js +1 -1
  50. package/dist/core/json/app/checkAppFields.js +1 -1
  51. package/dist/core/json/app/getAppJSON.js +1 -1
  52. package/dist/core/json/app/getExtJSON.js +1 -1
  53. package/dist/core/json/app/index.js +1 -1
  54. package/dist/core/json/common.js +1 -1
  55. package/dist/core/json/game.js +1 -1
  56. package/dist/core/json/page/checkPageJSON.js +1 -1
  57. package/dist/core/json/page/getPageJSON.js +1 -1
  58. package/dist/core/json/plugin/plugin.js +1 -1
  59. package/dist/core/json/plugin/plugin_page.js +1 -1
  60. package/dist/core/json/projectWithMockBuffer.js +1 -1
  61. package/dist/core/json/projectconfig.js +1 -1
  62. package/dist/core/json/reactiveCache.js +1 -1
  63. package/dist/core/json/signaturejson.js +1 -1
  64. package/dist/core/json/sitemap.js +1 -1
  65. package/dist/core/json/theme.js +1 -1
  66. package/dist/core/npm/filterdeps.js +1 -1
  67. package/dist/core/npm/packnpm.js +1 -1
  68. package/dist/core/protect/file_flatter.js +1 -1
  69. package/dist/core/protect/uglifyfilenames.js +1 -1
  70. package/dist/core/validate/validate.js +1 -1
  71. package/dist/core/worker_thread/childprocess.js +1 -1
  72. package/dist/core/worker_thread/childprocess_manager.js +1 -1
  73. package/dist/core/worker_thread/fork.js +1 -1
  74. package/dist/core/worker_thread/index.js +1 -1
  75. package/dist/core/worker_thread/task/call_func.js +1 -1
  76. package/dist/core/worker_thread/task/compilejs.js +1 -1
  77. package/dist/core/worker_thread/task/compilewxss.js +1 -1
  78. package/dist/core/worker_thread/task/func.js +1 -1
  79. package/dist/core/worker_thread/task/index.js +1 -1
  80. package/dist/core/worker_thread/task/minifywxml.js +1 -1
  81. package/dist/core/worker_thread/worker.js +1 -1
  82. package/dist/core/worker_thread/worker_manager.js +1 -1
  83. package/dist/core.js +1 -1
  84. package/dist/index.js +1 -1
  85. package/dist/manifest.json +3 -3
  86. package/dist/schema/dist/index.d.ts +1 -1
  87. package/dist/summer/ci.js +1 -1
  88. package/dist/summer/devtool.js +1 -1
  89. package/dist/summer/entry_process.js +1 -1
  90. package/dist/summer/graph/appconf.js +1 -1
  91. package/dist/summer/graph/appgraph.js +1 -1
  92. package/dist/summer/graph/basegraph.js +1 -1
  93. package/dist/summer/graph/pluginconf.js +1 -1
  94. package/dist/summer/graph/plugingraph.js +1 -1
  95. package/dist/summer/initPlugin.js +1 -1
  96. package/dist/summer/persist_cache.js +1 -1
  97. package/dist/summer/plugins/base/es6module.js +1 -1
  98. package/dist/summer/plugins/base/javascript.js +1 -1
  99. package/dist/summer/plugins/base/wxss.js +1 -1
  100. package/dist/summer/plugins/enhance.js +1 -1
  101. package/dist/summer/plugins/index.js +1 -1
  102. package/dist/summer/plugins/less.js +1 -1
  103. package/dist/summer/plugins/minifywxml.js +1 -0
  104. package/dist/summer/plugins/sass.js +1 -1
  105. package/dist/summer/plugins/terser.js +1 -1
  106. package/dist/summer/plugins/typescript.js +1 -1
  107. package/dist/summer/project.js +1 -1
  108. package/dist/summer/resolver.js +1 -1
  109. package/dist/summer/summer.js +1 -1
  110. package/dist/types/index.js +1 -1
  111. package/dist/types/miniprogram-json/index.js +1 -1
  112. package/dist/utils/babel_helper.js +1 -1
  113. package/dist/utils/babel_plugin_worklet.js +3 -0
  114. package/dist/utils/common.js +1 -1
  115. package/dist/utils/error.js +1 -1
  116. package/dist/utils/fsagent.js +1 -1
  117. package/dist/utils/glob.js +1 -1
  118. package/dist/utils/jsonParse.js +1 -1
  119. package/dist/utils/locales/en.js +1 -1
  120. package/dist/utils/locales/locales.js +1 -1
  121. package/dist/utils/locales/zh.js +1 -1
  122. package/dist/utils/request.js +1 -1
  123. package/dist/utils/sign.js +1 -1
  124. package/dist/utils/taskstatus.js +1 -1
  125. package/dist/utils/tools.js +1 -1
  126. package/dist/utils/white_ext_list.js +1 -1
  127. package/dist/vendor/cloud-api/src/apis/apis.js +1 -1
  128. package/dist/vendor/cloud-api/src/apis/cdn/cdn.apis.js +1 -1
  129. package/dist/vendor/cloud-api/src/apis/cdn/index.js +1 -1
  130. package/dist/vendor/cloud-api/src/apis/flexdb/flexdb.apis.js +1 -1
  131. package/dist/vendor/cloud-api/src/apis/flexdb/index.js +1 -1
  132. package/dist/vendor/cloud-api/src/apis/scf/index.js +1 -1
  133. package/dist/vendor/cloud-api/src/apis/scf/scf.apis.js +1 -1
  134. package/dist/vendor/cloud-api/src/apis/ssl/index.js +1 -1
  135. package/dist/vendor/cloud-api/src/apis/ssl/ssl.apis.js +1 -1
  136. package/dist/vendor/cloud-api/src/apis/tcb/general.apis.js +1 -1
  137. package/dist/vendor/cloud-api/src/apis/tcb/index.js +1 -1
  138. package/dist/vendor/cloud-api/src/apis/tcb/tcb.apis.js +1 -1
  139. package/dist/vendor/cloud-api/src/index.js +1 -1
  140. package/dist/vendor/cloud-api/src/transaction/contracts/cdn.contracts.js +1 -1
  141. package/dist/vendor/cloud-api/src/transaction/contracts/contracts.js +1 -1
  142. package/dist/vendor/cloud-api/src/transaction/contracts/flexdb.contracts.js +1 -1
  143. package/dist/vendor/cloud-api/src/transaction/contracts/scf.contracts.js +1 -1
  144. package/dist/vendor/cloud-api/src/transaction/contracts/ssl.contracts.js +1 -1
  145. package/dist/vendor/cloud-api/src/transaction/contracts/tcb.contracts.js +1 -1
  146. package/dist/vendor/cloud-api/src/transaction/validations/cdn.validations.js +1 -1
  147. package/dist/vendor/cloud-api/src/transaction/validations/common.validations.js +1 -1
  148. package/dist/vendor/cloud-api/src/transaction/validations/flexdb.validations.js +1 -1
  149. package/dist/vendor/cloud-api/src/transaction/validations/scf.validations.js +1 -1
  150. package/dist/vendor/cloud-api/src/transaction/validations/ssl.validations.js +1 -1
  151. package/dist/vendor/cloud-api/src/transaction/validations/tcb.validations.js +1 -1
  152. package/dist/vendor/cloud-api/src/transaction/validations/validations.js +1 -1
  153. package/dist/vendor/code-analyse/index.js +1 -1
  154. package/dist/vendor/schema/dist/app.js +37 -1
  155. package/dist/vendor/schema/dist/ext.js +32 -1
  156. package/dist/vendor/schema/dist/game.js +1 -1
  157. package/dist/vendor/schema/dist/index.js +2 -1
  158. package/dist/vendor/schema/dist/page.js +24 -1
  159. package/dist/vendor/schema/dist/plugin.js +1 -1
  160. package/dist/vendor/schema/dist/pluginpage.js +1 -1
  161. package/dist/vendor/schema/dist/projectconfig.js +395 -12
  162. package/dist/vendor/schema/dist/projectprivateconfig.js +351 -0
  163. package/dist/vendor/schema/dist/sitemap.js +1 -1
  164. package/dist/vendor/schema/dist/theme.js +1 -1
  165. package/package.json +9 -4
@@ -0,0 +1,351 @@
1
+ module.exports = {
2
+ "type": "object",
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": {},
52
+ "miniprogramRoot": {
53
+ "type": "string"
54
+ },
55
+ "pluginRoot": {
56
+ "type": "string"
57
+ },
58
+ "pluginAppid": {
59
+ "type": "string"
60
+ },
61
+ "jsserverRoot": {
62
+ "type": "string"
63
+ },
64
+ "projectname": {
65
+ "type": "string"
66
+ },
67
+ "appid": {
68
+ "type": "string"
69
+ },
70
+ "packOptions": {
71
+ "type": "object",
72
+ "properties": {
73
+ "ignore": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "object",
77
+ "properties": {
78
+ "type": {
79
+ "type": "string"
80
+ },
81
+ "value": {
82
+ "type": "string"
83
+ }
84
+ },
85
+ "required": [
86
+ "type",
87
+ "value"
88
+ ]
89
+ }
90
+ },
91
+ "include": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "object",
95
+ "properties": {
96
+ "type": {
97
+ "type": "string"
98
+ },
99
+ "value": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "type",
105
+ "value"
106
+ ]
107
+ }
108
+ }
109
+ }
110
+ },
111
+ "watchOptions": {
112
+ "type": "object",
113
+ "properties": {
114
+ "ignore": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "string"
118
+ }
119
+ }
120
+ }
121
+ },
122
+ "setting": {
123
+ "type": "object",
124
+ "properties": {
125
+ "autoAudits": {
126
+ "type": "boolean"
127
+ },
128
+ "urlCheck": {
129
+ "type": "boolean"
130
+ },
131
+ "compileHotReLoad": {
132
+ "type": "boolean"
133
+ },
134
+ "preloadBackgroundData": {
135
+ "type": "boolean"
136
+ },
137
+ "lazyloadPlaceholderEnable": {
138
+ "type": "boolean"
139
+ },
140
+ "useStaticServer": {
141
+ "type": "boolean"
142
+ },
143
+ "coverView": {
144
+ "type": "boolean"
145
+ },
146
+ "ignoreDevUnusedFiles": {
147
+ "type": "boolean"
148
+ },
149
+ "checkInvalidKey": {
150
+ "type": "boolean"
151
+ },
152
+ "showShadowRootInWxmlPanel": {
153
+ "type": "boolean"
154
+ },
155
+ "useIsolateContext": {
156
+ "type": "boolean"
157
+ },
158
+ "useMultiFrameRuntime": {
159
+ "type": "boolean"
160
+ },
161
+ "useApiHook": {
162
+ "type": "boolean"
163
+ },
164
+ "useApiHostProcess": {
165
+ "type": "boolean"
166
+ },
167
+ "useLanDebug": {
168
+ "type": "boolean"
169
+ },
170
+ "enableEngineNative": {
171
+ "type": "boolean"
172
+ },
173
+ "showES6CompileOption": {
174
+ "type": "boolean"
175
+ }
176
+ }
177
+ },
178
+ "staticServerOptions": {
179
+ "type": "object",
180
+ "properties": {
181
+ "servePath": {
182
+ "type": "string"
183
+ }
184
+ }
185
+ },
186
+ "condition": {
187
+ "type": "object",
188
+ "properties": {
189
+ "game": {
190
+ "type": "object",
191
+ "properties": {
192
+ "current": {
193
+ "type": "number"
194
+ },
195
+ "list": {
196
+ "type": "array",
197
+ "items": {
198
+ "type": "object",
199
+ "properties": {
200
+ "name": {
201
+ "type": "string"
202
+ },
203
+ "pathName": {
204
+ "type": "string"
205
+ },
206
+ "query": {
207
+ "type": "string"
208
+ },
209
+ "scene": {
210
+ "type": [
211
+ "null",
212
+ "string",
213
+ "number"
214
+ ]
215
+ },
216
+ "shareInfo": {},
217
+ "referrerInfo": {},
218
+ "chatroomUsernameInfo": {},
219
+ "groupInfo": {}
220
+ }
221
+ }
222
+ }
223
+ }
224
+ },
225
+ "gamePlugin": {
226
+ "type": "object",
227
+ "properties": {
228
+ "current": {
229
+ "type": "number"
230
+ },
231
+ "list": {
232
+ "type": "array",
233
+ "items": {
234
+ "type": "object",
235
+ "properties": {
236
+ "name": {
237
+ "type": "string"
238
+ },
239
+ "query": {
240
+ "type": "string"
241
+ },
242
+ "scene": {
243
+ "type": [
244
+ "null",
245
+ "string",
246
+ "number"
247
+ ]
248
+ },
249
+ "shareInfo": {},
250
+ "referrerInfo": {},
251
+ "groupInfo": {}
252
+ }
253
+ }
254
+ }
255
+ }
256
+ },
257
+ "plugin": {
258
+ "type": "object",
259
+ "properties": {
260
+ "current": {
261
+ "type": "number"
262
+ },
263
+ "list": {
264
+ "type": "array",
265
+ "items": {
266
+ "type": "object",
267
+ "properties": {
268
+ "name": {
269
+ "type": "string"
270
+ },
271
+ "pathName": {
272
+ "type": "string"
273
+ },
274
+ "query": {
275
+ "type": "string"
276
+ },
277
+ "launchMode": {
278
+ "type": "string"
279
+ },
280
+ "scene": {
281
+ "type": [
282
+ "null",
283
+ "string",
284
+ "number"
285
+ ]
286
+ },
287
+ "shareInfo": {},
288
+ "referrerInfo": {},
289
+ "groupInfo": {}
290
+ }
291
+ }
292
+ }
293
+ }
294
+ },
295
+ "miniprogram": {
296
+ "type": "object",
297
+ "properties": {
298
+ "current": {
299
+ "type": "number"
300
+ },
301
+ "list": {
302
+ "type": "array",
303
+ "items": {
304
+ "type": "object",
305
+ "properties": {
306
+ "name": {
307
+ "type": "string"
308
+ },
309
+ "pathName": {
310
+ "type": "string"
311
+ },
312
+ "query": {
313
+ "type": "string"
314
+ },
315
+ "launchMode": {
316
+ "type": "string"
317
+ },
318
+ "scene": {
319
+ "type": [
320
+ "null",
321
+ "string",
322
+ "number"
323
+ ]
324
+ },
325
+ "partialCompile": {
326
+ "type": "object",
327
+ "properties": {
328
+ "enabled": {
329
+ "type": "boolean"
330
+ },
331
+ "pages": {
332
+ "type": "array",
333
+ "items": {}
334
+ }
335
+ }
336
+ },
337
+ "shareInfo": {},
338
+ "referrerInfo": {},
339
+ "chatroomUsernameInfo": {},
340
+ "groupInfo": {}
341
+ }
342
+ }
343
+ }
344
+ }
345
+ }
346
+ }
347
+ }
348
+ },
349
+ "$schema": "http://json-schema.org/draft-07/schema#",
350
+ "$version": 1649903483994
351
+ }
@@ -49,5 +49,5 @@ module.exports = {
49
49
  "rules"
50
50
  ],
51
51
  "$schema": "http://json-schema.org/draft-07/schema#",
52
- "$version": 1631795974265
52
+ "$version": 1646911935391
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": 1631795974265
19
+ "$version": 1646911935392
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miniprogram-ci",
3
- "version": "1.8.0",
3
+ "version": "1.8.25",
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",
@@ -40,10 +40,10 @@
40
40
  "author": "canhuang",
41
41
  "license": "MIT",
42
42
  "devDependencies": {
43
- "@tencent/eslint-config-tencent": "^1.0.0-beta.5",
43
+ "@tencent/eslint-config-tencent": "^1.0.4",
44
+ "@types/babel__core": "^7.1.17",
44
45
  "@types/babel-code-frame": "^6.20.2",
45
46
  "@types/babel-core": "^6.25.6",
46
- "@types/babel__core": "^7.1.17",
47
47
  "@types/cssnano": "^4.0.1",
48
48
  "@types/estree": "0.0.47",
49
49
  "@types/fs-extra": "^8.0.0",
@@ -76,6 +76,10 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@babel/core": "7.12.3",
79
+ "@babel/template": "7.16.7",
80
+ "@babel/generator": "7.17.10",
81
+ "@babel/traverse": "7.17.10",
82
+ "@babel/parser": "7.17.10",
79
83
  "@babel/helper-module-imports": "7.12.1",
80
84
  "@babel/helpers": "7.12.1",
81
85
  "@babel/plugin-proposal-class-properties": "7.12.1",
@@ -124,10 +128,11 @@
124
128
  "rimraf": "^3.0.2",
125
129
  "sass": "^1.44.0",
126
130
  "source-map": "0.6.1",
131
+ "string-hash-64": "1.0.3",
127
132
  "terser": "4.8.0",
128
133
  "tslib": "1.10.0",
129
134
  "uglify-js": "3.0.27",
130
135
  "wxml-minifier": "0.0.1",
131
136
  "yargs": "^15.0.2"
132
137
  }
133
- }
138
+ }