miniprogram-ci 2.1.30 → 2.1.32

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 (419) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +6 -0
  3. package/dist/@types/ci/checkCodeQuality.d.ts +1 -1
  4. package/dist/@types/ci/code-analyse.d.ts +1 -1
  5. package/dist/@types/ci/cos-upload.d.ts +0 -1
  6. package/dist/@types/ci/getCompiledResult.d.ts +0 -1
  7. package/dist/@types/ci/utils/filterUnusedFile.d.ts +0 -1
  8. package/dist/@types/ci/utils/pack.d.ts +0 -1
  9. package/dist/@types/ci/utils/packfile.d.ts +0 -1
  10. package/dist/@types/ci/utils/tools.d.ts +1 -1
  11. package/dist/@types/ci/utils/wxvpkg/unpack/version0.d.ts +0 -1
  12. package/dist/@types/ci/utils/wxvpkg/unpack/version10.d.ts +0 -1
  13. package/dist/@types/config/compiletype.config.d.ts +4 -4
  14. package/dist/@types/config/config.d.ts +1 -1
  15. package/dist/@types/config/dir.config.d.ts +17 -0
  16. package/dist/@types/config/url.config.d.ts +42 -42
  17. package/dist/@types/index.d.ts +4 -2
  18. package/dist/@types/modules/corecompiler/baseCompiler.d.ts +3 -4
  19. package/dist/@types/modules/corecompiler/original/compile/common.d.ts +0 -1
  20. package/dist/@types/modules/corecompiler/original/compile/gamePlugin.d.ts +0 -1
  21. package/dist/@types/modules/corecompiler/original/compile/handler/mpjson.d.ts +0 -1
  22. package/dist/@types/modules/corecompiler/original/compile/miniprogram.d.ts +0 -1
  23. package/dist/@types/modules/corecompiler/original/compile/miniprogramPlugin.d.ts +0 -1
  24. package/dist/@types/modules/corecompiler/original/js/index.d.ts +0 -1
  25. package/dist/@types/modules/corecompiler/original/protect/uglifyfilenames.d.ts +0 -1
  26. package/dist/@types/modules/corecompiler/original/webWorker/webWorkerManager.d.ts +0 -1
  27. package/dist/@types/modules/corecompiler/original/workerThread/task/compilejs.d.ts +1 -2
  28. package/dist/@types/modules/corecompiler/original/workerThread/task/compilewxss.d.ts +0 -1
  29. package/dist/@types/modules/corecompiler/original/workerThread/task/minifywxml.d.ts +0 -1
  30. package/dist/@types/modules/corecompiler/summer/graph/appconf.d.ts +1 -1
  31. package/dist/@types/modules/corecompiler/summer/graph/gameconf.d.ts +1 -1
  32. package/dist/@types/modules/corecompiler/summer/plugins/less.d.ts +0 -1
  33. package/dist/@types/modules/corecompiler/summer/resolver.d.ts +1 -1
  34. package/dist/@types/modules/corecompiler/summerCompiler.d.ts +2 -3
  35. package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +2 -2
  36. package/dist/@types/modules/nativecompiler/processHandler.d.ts +5 -0
  37. package/dist/@types/modules/precompiler/conditioncompile/compiler/base.d.ts +0 -1
  38. package/dist/@types/modules/precompiler/conditioncompile/compiler/json.d.ts +0 -1
  39. package/dist/@types/modules/precompiler/conditioncompile/compiler/macro.d.ts +0 -1
  40. package/dist/@types/modules/precompiler/conditioncompile/compiler/plant.d.ts +0 -1
  41. package/dist/@types/modules/precompiler/conditioncompile/index.d.ts +0 -1
  42. package/dist/@types/project/advance/precompileProject.d.ts +0 -1
  43. package/dist/@types/project/advance/reactiveProject.d.ts +1 -2
  44. package/dist/@types/project/baseProject.d.ts +3 -3
  45. package/dist/@types/project/ciProjectWithMockBuffer.d.ts +0 -1
  46. package/dist/@types/services/accountcard/accountcard.d.ts +18 -0
  47. package/dist/@types/services/accountcard/accountcardService.d.ts +0 -0
  48. package/dist/@types/services/app/common/appDirService.d.ts +10 -0
  49. package/dist/@types/services/app/common/appDirService.devtools.d.ts +7 -0
  50. package/dist/@types/services/app/electron/appDirService.d.ts +3 -0
  51. package/dist/@types/services/app/node/appDirService.d.ts +6 -0
  52. package/dist/@types/services/app/nw/appDirService.d.ts +3 -0
  53. package/dist/@types/services/builder/common/builder.d.ts +22 -0
  54. package/dist/@types/services/builder/nw/builder.d.ts +15 -0
  55. package/dist/@types/services/builder/webide/builder.d.ts +4 -0
  56. package/dist/@types/services/common/extensions.d.ts +8 -0
  57. package/dist/@types/services/common/getservice.d.ts +24 -0
  58. package/dist/@types/services/common/librarybase.d.ts +2063 -0
  59. package/dist/@types/services/common/vsbase.d.ts +3 -0
  60. package/dist/@types/services/compilewxml/common/compilewxmlService.d.ts +41 -0
  61. package/dist/@types/services/compilewxml/electron/compilewxmlService.d.ts +5 -0
  62. package/dist/@types/services/compilewxml/node/compileUtils.d.ts +3 -0
  63. package/dist/@types/services/compilewxml/node/compileglasseasel.d.ts +0 -0
  64. package/dist/@types/services/compilewxml/nw/compilewxmlService.d.ts +5 -0
  65. package/dist/@types/services/compilewxml/webide/compilewxmlService.d.ts +5 -0
  66. package/dist/@types/services/compilewxml/webide/pageFrameWasm/wcc/runWcc.d.ts +3 -0
  67. package/dist/@types/services/compilewxss/common/compilewxssService.d.ts +15 -0
  68. package/dist/@types/services/compilewxss/electron/compilewxssService.d.ts +4 -0
  69. package/dist/@types/services/compilewxss/node/compileUtils.d.ts +2 -0
  70. package/dist/@types/services/compilewxss/nw/compilewxssService.d.ts +4 -0
  71. package/dist/@types/services/compilewxss/webide/compilewxssService.d.ts +4 -0
  72. package/dist/@types/services/compilewxss/webide/pageFrameWasm/wcsc/runWcsc.d.ts +3 -0
  73. package/dist/@types/services/consoledisplay/common/consoledisplay.d.ts +5 -0
  74. package/dist/@types/services/consoledisplay/nw/consoledisplay.d.ts +6 -0
  75. package/dist/@types/services/fileUtilsManager/common/fileUtilsManager.d.ts +5 -0
  76. package/dist/@types/services/fileUtilsManager/nw/fileUtilsManager.d.ts +6 -0
  77. package/dist/@types/services/fs/common/fileService.d.ts +28 -0
  78. package/dist/@types/services/genTempFile/common/genTempFile.devtools.d.ts +4 -0
  79. package/dist/@types/services/genTempFile/common/genTempFile.node.d.ts +4 -0
  80. package/dist/@types/services/genTempFile/common/genTempFileService.d.ts +4 -0
  81. package/dist/@types/services/genTempFile/electron/genTempFileService.d.ts +3 -0
  82. package/dist/@types/services/genTempFile/node/genTempFileService.d.ts +3 -0
  83. package/dist/@types/services/genTempFile/nw/genTempFileService.d.ts +3 -0
  84. package/dist/@types/services/global/common/global.d.ts +10 -0
  85. package/dist/@types/services/global/nw/global.d.ts +12 -0
  86. package/dist/@types/services/initializeCheck/common/initializeCheck.d.ts +21 -0
  87. package/dist/@types/services/initializeCheck/nw/initializeCheck.d.ts +4 -0
  88. package/dist/@types/services/initializeCheck/webide/initializeCheck.d.ts +0 -0
  89. package/dist/@types/services/locales/common/locales.d.ts +7 -0
  90. package/dist/@types/services/locales/nw/locales.d.ts +9 -0
  91. package/dist/@types/services/log/common/logService.d.ts +9 -0
  92. package/dist/@types/services/miniappjson/common/miniappjson.d.ts +5 -0
  93. package/dist/@types/services/miniappjson/electron/miniappjson.d.ts +6 -0
  94. package/dist/@types/services/miniappjson/nw/miniappjson.d.ts +6 -0
  95. package/dist/@types/services/miniappjson/webide/miniappjson.d.ts +4 -0
  96. package/dist/@types/services/nativeModule/common/nativeModule.d.ts +9 -0
  97. package/dist/@types/services/nativeModule/common/nativeModule.impl.d.ts +12 -0
  98. package/dist/@types/services/nativeModule/electron/nativeModule.d.ts +3 -0
  99. package/dist/@types/services/nativeModule/nw/nativeModule.d.ts +3 -0
  100. package/dist/@types/services/partialcompile/common/parialcompile.impl.d.ts +0 -0
  101. package/dist/@types/services/partialcompile/common/partialcompile.d.ts +0 -0
  102. package/dist/@types/services/partialcompile/nw/partialcompile.d.ts +0 -0
  103. package/dist/@types/services/partialcompile/webide/partialcompile.d.ts +0 -0
  104. package/dist/@types/services/performance/common/performance.d.ts +9 -0
  105. package/dist/@types/services/performance/nw/performance.d.ts +9 -0
  106. package/dist/@types/services/performance/webide/performance.d.ts +7 -0
  107. package/dist/@types/services/project/common/cloudProjectService.d.ts +0 -0
  108. package/dist/@types/services/project/common/createProjectService.d.ts +0 -0
  109. package/dist/@types/services/project/common/project.helper.d.ts +0 -0
  110. package/dist/@types/services/project/common/projectConfigService.d.ts +0 -0
  111. package/dist/@types/services/project/common/projectFileService.d.ts +0 -0
  112. package/dist/@types/services/project/common/projectconfigjsonutils.d.ts +0 -0
  113. package/dist/@types/services/project/electron-backend/projectManagerService.d.ts +0 -0
  114. package/dist/@types/services/project/node/createProjectService.d.ts +0 -0
  115. package/dist/@types/services/project/node/projectConfigService.d.ts +0 -0
  116. package/dist/@types/services/project/node/projectManagerService.d.ts +0 -0
  117. package/dist/@types/services/project/web/projectManagerService.d.ts +0 -0
  118. package/dist/@types/services/project/webide/projectConfigService.d.ts +0 -0
  119. package/dist/@types/services/project/webide/projectFileService.d.ts +0 -0
  120. package/dist/@types/services/project/webide/projectManagerService.d.ts +0 -0
  121. package/dist/@types/services/projectManager/common/buildServerProjectManager.d.ts +5 -0
  122. package/dist/@types/services/projectManager/common/projectManager.d.ts +7 -0
  123. package/dist/@types/services/projectManager/nw/projectManager.d.ts +9 -0
  124. package/dist/@types/services/root/common/createService.d.ts +12 -0
  125. package/dist/@types/services/root/electron/root.d.ts +11 -0
  126. package/dist/@types/services/root/electron/rootService.d.ts +2 -0
  127. package/dist/@types/services/root/node/root.d.ts +11 -0
  128. package/dist/@types/services/root/node/rootService.d.ts +0 -0
  129. package/dist/@types/services/root/nw/root.d.ts +11 -0
  130. package/dist/@types/services/root/nw/rootService.d.ts +0 -0
  131. package/dist/@types/services/staticConfig/common/staticConfigService.d.ts +5 -0
  132. package/dist/@types/services/staticConfig/nw/staticConfigService.d.ts +6 -0
  133. package/dist/@types/services/store/common/storeService.d.ts +17 -0
  134. package/dist/@types/services/uniapp/common/uniapp.d.ts +5 -0
  135. package/dist/@types/services/uniapp/nw/uniapp.d.ts +9 -0
  136. package/dist/@types/services/uniapp/webide/uniapp.d.ts +4 -0
  137. package/dist/@types/services/vendor/common/utils.d.ts +0 -0
  138. package/dist/@types/services/vendor/common/vendorService.d.ts +0 -0
  139. package/dist/@types/services/vendor/node/vendorService.d.ts +0 -0
  140. package/dist/@types/services/vendor/webide/vendorService.d.ts +0 -0
  141. package/dist/@types/types/ci.d.ts +1 -2
  142. package/dist/@types/types/core.d.ts +1 -2
  143. package/dist/@types/types/devtools.d.ts +0 -1
  144. package/dist/@types/types/summer.d.ts +0 -1
  145. package/dist/@types/utils/babel_plugin_worklet.d.ts +10 -1
  146. package/dist/@types/utils/common.d.ts +3 -1
  147. package/dist/@types/utils/cosUpload.d.ts +0 -1
  148. package/dist/@types/utils/fsagent.d.ts +0 -1
  149. package/dist/@types/utils/locales/locales.d.ts +2 -114
  150. package/dist/@types/utils/locales/zh.d.ts +114 -113
  151. package/dist/@types/utils/miniappJson.d.ts +1 -1
  152. package/dist/@types/utils/node/common.d.ts +1 -0
  153. package/dist/@types/utils/packOptionsHelper.d.ts +1 -1
  154. package/dist/@types/utils/signature.d.ts +0 -1
  155. package/dist/@types/utils/singletontask.d.ts +1 -0
  156. package/dist/@types/utils/subprocess/processManager.d.ts +1 -0
  157. package/dist/@types/utils/taskqueue.d.ts +0 -1
  158. package/dist/@types/utils/taskstatus.d.ts +1 -1
  159. package/dist/@types/utils/tools.d.ts +3 -4
  160. package/dist/@types/utils/web/common.d.ts +1 -0
  161. package/dist/@types/utils/wxapkg/pack.d.ts +0 -1
  162. package/dist/@types/utils/wxvpkgreader/wxvpkg/reader/version0.d.ts +0 -1
  163. package/dist/@types/utils/wxvpkgreader/wxvpkg/reader/version10.d.ts +0 -1
  164. package/dist/@types/utils/wxvpkgreader/wxvpkg/unpack/version0.d.ts +0 -1
  165. package/dist/@types/utils/wxvpkgreader/wxvpkg/unpack/version10.d.ts +0 -1
  166. package/dist/@types/utils/wxvpkgreader/wxvpkgreader.d.ts +0 -1
  167. package/dist/ci/android-miniapp-toolkit/dist/index.js +1 -1
  168. package/dist/ci/build-apk.js +1 -1
  169. package/dist/ci/build-ipa.js +1 -1
  170. package/dist/ci/checkCodeQuality.js +1 -1
  171. package/dist/ci/cloud/cloudapi.js +1 -1
  172. package/dist/ci/cloud/createTimeTrigger.js +1 -1
  173. package/dist/ci/cloud/uploadContainer.js +1 -1
  174. package/dist/ci/cloud/uploadFile.js +1 -1
  175. package/dist/ci/cloud/uploadFunction.js +1 -1
  176. package/dist/ci/cloud/utils.js +1 -1
  177. package/dist/ci/code-analyse.js +1 -1
  178. package/dist/ci/cos-upload.js +1 -1
  179. package/dist/ci/gamepkg/apkplug.js +1 -1
  180. package/dist/ci/gamepkg/index.js +1 -1
  181. package/dist/ci/getCompiledResult.js +1 -1
  182. package/dist/ci/getDevSourceMap.js +1 -1
  183. package/dist/ci/getLatestVersion.js +1 -1
  184. package/dist/ci/getcompiler.js +1 -1
  185. package/dist/ci/index.js +1 -1
  186. package/dist/ci/jsserver.js +1 -1
  187. package/dist/ci/miniapp/archive.js +1 -1
  188. package/dist/ci/miniapp/checkBuildArgument.js +1 -1
  189. package/dist/ci/miniapp/miniappPlugin.js +1 -1
  190. package/dist/ci/miniapp/sdkManager.js +1 -1
  191. package/dist/ci/miniapp/upload.js +1 -1
  192. package/dist/ci/miniapp-cloud-upload.js +1 -1
  193. package/dist/ci/miniappattr.js +1 -1
  194. package/dist/ci/preview.js +1 -1
  195. package/dist/ci/projectattr.js +1 -1
  196. package/dist/ci/upload.js +1 -1
  197. package/dist/ci/utils/ciRequest.js +1 -1
  198. package/dist/ci/utils/filterUnusedFile.js +1 -1
  199. package/dist/ci/utils/pack.js +1 -1
  200. package/dist/ci/utils/terminalQrcode.js +1 -1
  201. package/dist/ci/utils/tools.js +1 -1
  202. package/dist/ci/utils/wxvpkg/unpack/version0.js +1 -1
  203. package/dist/ci/utils/wxvpkg/unpack/version10.js +1 -1
  204. package/dist/config/config.js +1 -1
  205. package/dist/config/dir.config.js +1 -0
  206. package/dist/index.js +1 -1
  207. package/dist/modules/corecompiler/baseCompiler.js +1 -1
  208. package/dist/modules/corecompiler/original/analyse/partial.js +1 -1
  209. package/dist/modules/corecompiler/original/compile/common.js +1 -1
  210. package/dist/modules/corecompiler/original/compile/game.js +1 -1
  211. package/dist/modules/corecompiler/original/compile/gamePlugin.js +1 -1
  212. package/dist/modules/corecompiler/original/compile/handler/js.js +1 -1
  213. package/dist/modules/corecompiler/original/compile/handler/mpjson.js +1 -1
  214. package/dist/modules/corecompiler/original/compile/handler/wxml.js +1 -1
  215. package/dist/modules/corecompiler/original/compile/handler/wxss.js +1 -1
  216. package/dist/modules/corecompiler/original/compile/index.js +1 -1
  217. package/dist/modules/corecompiler/original/compile/miniprogram.js +1 -1
  218. package/dist/modules/corecompiler/original/compile/miniprogramPlugin.js +1 -1
  219. package/dist/modules/corecompiler/original/index.js +1 -1
  220. package/dist/modules/corecompiler/original/js/index.js +1 -1
  221. package/dist/modules/corecompiler/original/json/app/appJSON.js +1 -1
  222. package/dist/modules/corecompiler/original/json/app/checkAppFields.js +1 -1
  223. package/dist/modules/corecompiler/original/json/common.js +1 -1
  224. package/dist/modules/corecompiler/original/json/page/checkPageJSON.js +1 -1
  225. package/dist/modules/corecompiler/original/json/page/getPageJSON.js +1 -1
  226. package/dist/modules/corecompiler/original/json/plugin/plugin.js +1 -1
  227. package/dist/modules/corecompiler/original/json/plugin/pluginPage.js +1 -1
  228. package/dist/modules/corecompiler/original/json/reactiveCache.js +1 -1
  229. package/dist/modules/corecompiler/original/json/signaturejson.js +1 -1
  230. package/dist/modules/corecompiler/original/json/theme.js +1 -1
  231. package/dist/modules/corecompiler/original/npm/filterdeps.js +1 -1
  232. package/dist/modules/corecompiler/original/npm/packnpm.js +1 -1
  233. package/dist/modules/corecompiler/original/protect/uglifyfilenames.js +1 -1
  234. package/dist/modules/corecompiler/original/validate/schemaValidate.js +1 -1
  235. package/dist/modules/corecompiler/original/webWorker/configs.js +1 -1
  236. package/dist/modules/corecompiler/original/workerThread/config.js +1 -1
  237. package/dist/modules/corecompiler/original/workerThread/getWorkerPoolSize.js +1 -1
  238. package/dist/modules/corecompiler/original/workerThread/index.js +1 -1
  239. package/dist/modules/corecompiler/original/workerThread/task/call_func.js +1 -1
  240. package/dist/modules/corecompiler/original/workerThread/task/func.js +1 -1
  241. package/dist/modules/corecompiler/original/workerThread/task/minifywxml.js +1 -1
  242. package/dist/modules/corecompiler/processHandler.js +1 -1
  243. package/dist/modules/corecompiler/summer/graph/basegraph.js +1 -1
  244. package/dist/modules/corecompiler/summer/graph/util.js +1 -1
  245. package/dist/modules/corecompiler/summer/index.js +1 -1
  246. package/dist/modules/corecompiler/summer/initPlugin.js +1 -1
  247. package/dist/modules/corecompiler/summer/pluginDriver.js +1 -1
  248. package/dist/modules/corecompiler/summer/pluginconfig.js +1 -1
  249. package/dist/modules/corecompiler/summer/plugins/base/es6module.js +1 -1
  250. package/dist/modules/corecompiler/summer/plugins/base/javascript.js +1 -1
  251. package/dist/modules/corecompiler/summer/plugins/base/swc.js +1 -1
  252. package/dist/modules/corecompiler/summer/plugins/base/wxss.js +1 -1
  253. package/dist/modules/corecompiler/summer/plugins/enhance.js +1 -1
  254. package/dist/modules/corecompiler/summer/plugins/filetask/script.js +1 -1
  255. package/dist/modules/corecompiler/summer/plugins/less.js +1 -1
  256. package/dist/modules/corecompiler/summer/plugins/minifywxml.js +1 -1
  257. package/dist/modules/corecompiler/summer/plugins/sass.js +1 -1
  258. package/dist/modules/corecompiler/summer/plugins/script_task/babel_script_task.js +1 -1
  259. package/dist/modules/corecompiler/summer/plugins/script_task/load_script_task.js +1 -1
  260. package/dist/modules/corecompiler/summer/plugins/script_task/minify_script_task.js +1 -1
  261. package/dist/modules/corecompiler/summer/plugins/script_task/swc_task.js +1 -1
  262. package/dist/modules/corecompiler/summer/plugins/terser.js +1 -1
  263. package/dist/modules/corecompiler/summer/plugins/typescript.js +1 -1
  264. package/dist/modules/corecompiler/summer/plugins/worklet.js +1 -1
  265. package/dist/modules/corecompiler/summer/utils/ensureArray.js +1 -1
  266. package/dist/modules/corecompiler/summer/utils/inputsourcemap.js +1 -1
  267. package/dist/modules/corecompiler/summer/worker.js +1 -1
  268. package/dist/modules/fullcompiler/app/app.js +1 -1
  269. package/dist/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.js +1 -1
  270. package/dist/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.js +1 -1
  271. package/dist/modules/nativecompiler/android/adb.js +1 -1
  272. package/dist/modules/nativecompiler/android/device.js +1 -1
  273. package/dist/modules/nativecompiler/ios/device.js +1 -1
  274. package/dist/modules/nativecompiler/ios/projectconfig.js +1 -1
  275. package/dist/modules/nativecompiler/nativeEntryProcess.js +1 -1
  276. package/dist/modules/nativecompiler/processHandler.js +1 -0
  277. package/dist/project/advance/precompileProject.js +1 -1
  278. package/dist/project/advance/reactiveProject.js +1 -1
  279. package/dist/project/baseProject.js +1 -1
  280. package/dist/services/accountcard/accountcard.js +1 -0
  281. package/dist/services/accountcard/accountcardService.js +1 -0
  282. package/dist/services/app/common/appDirService.devtools.js +1 -0
  283. package/dist/services/app/common/appDirService.js +1 -0
  284. package/dist/services/app/electron/appDirService.js +1 -0
  285. package/dist/services/app/node/appDirService.js +1 -0
  286. package/dist/services/app/nw/appDirService.js +1 -0
  287. package/dist/services/builder/common/builder.js +1 -0
  288. package/dist/services/builder/nw/builder.js +1 -0
  289. package/dist/services/builder/webide/builder.js +1 -0
  290. package/dist/services/common/extensions.js +1 -0
  291. package/dist/services/common/getservice.js +1 -0
  292. package/dist/services/common/librarybase.js +1 -0
  293. package/dist/services/common/vsbase.js +1 -0
  294. package/dist/services/compilewxml/common/compilewxmlService.js +1 -0
  295. package/dist/services/compilewxml/electron/compilewxmlService.js +1 -0
  296. package/dist/services/compilewxml/node/compileUtils.js +1 -0
  297. package/dist/services/compilewxml/node/compileglasseasel.js +1 -0
  298. package/dist/services/compilewxml/nw/compilewxmlService.js +1 -0
  299. package/dist/services/compilewxml/webide/compilewxmlService.js +1 -0
  300. package/dist/services/compilewxml/webide/pageFrameWasm/wcc/runWcc.js +1 -0
  301. package/dist/services/compilewxss/common/compilewxssService.js +1 -0
  302. package/dist/services/compilewxss/electron/compilewxssService.js +1 -0
  303. package/dist/services/compilewxss/node/compileUtils.js +1 -0
  304. package/dist/services/compilewxss/nw/compilewxssService.js +1 -0
  305. package/dist/services/compilewxss/webide/compilewxssService.js +1 -0
  306. package/dist/services/compilewxss/webide/pageFrameWasm/wcsc/runWcsc.js +1 -0
  307. package/dist/services/consoledisplay/common/consoledisplay.js +1 -0
  308. package/dist/services/consoledisplay/nw/consoledisplay.js +1 -0
  309. package/dist/services/fileUtilsManager/common/fileUtilsManager.js +1 -0
  310. package/dist/services/fileUtilsManager/nw/fileUtilsManager.js +1 -0
  311. package/dist/services/fs/common/fileService.js +1 -0
  312. package/dist/services/genTempFile/common/genTempFile.devtools.js +1 -0
  313. package/dist/services/genTempFile/common/genTempFile.node.js +1 -0
  314. package/dist/services/genTempFile/common/genTempFileService.js +1 -0
  315. package/dist/services/genTempFile/electron/genTempFileService.js +1 -0
  316. package/dist/services/genTempFile/node/genTempFileService.js +1 -0
  317. package/dist/services/genTempFile/nw/genTempFileService.js +1 -0
  318. package/dist/services/global/common/global.js +1 -0
  319. package/dist/services/global/nw/global.js +1 -0
  320. package/dist/services/initializeCheck/common/initializeCheck.js +1 -0
  321. package/dist/services/initializeCheck/nw/initializeCheck.js +1 -0
  322. package/dist/services/initializeCheck/webide/initializeCheck.js +1 -0
  323. package/dist/services/locales/common/locales.js +1 -0
  324. package/dist/services/locales/nw/locales.js +1 -0
  325. package/dist/services/log/common/logService.js +1 -0
  326. package/dist/services/miniappjson/common/miniappjson.js +1 -0
  327. package/dist/services/miniappjson/electron/miniappjson.js +1 -0
  328. package/dist/services/miniappjson/nw/miniappjson.js +1 -0
  329. package/dist/services/miniappjson/webide/miniappjson.js +1 -0
  330. package/dist/services/nativeModule/common/nativeModule.impl.js +1 -0
  331. package/dist/services/nativeModule/common/nativeModule.js +1 -0
  332. package/dist/services/nativeModule/electron/nativeModule.js +1 -0
  333. package/dist/services/nativeModule/nw/nativeModule.js +1 -0
  334. package/dist/services/partialcompile/common/parialcompile.impl.js +1 -0
  335. package/dist/services/partialcompile/common/partialcompile.js +1 -0
  336. package/dist/services/partialcompile/nw/partialcompile.js +1 -0
  337. package/dist/services/partialcompile/webide/partialcompile.js +1 -0
  338. package/dist/services/performance/common/performance.js +1 -0
  339. package/dist/services/performance/nw/performance.js +1 -0
  340. package/dist/services/performance/webide/performance.js +1 -0
  341. package/dist/services/project/common/cloudProjectService.js +1 -0
  342. package/dist/services/project/common/createProjectService.js +1 -0
  343. package/dist/services/project/common/project.helper.js +1 -0
  344. package/dist/services/project/common/projectConfigService.js +1 -0
  345. package/dist/services/project/common/projectFileService.js +1 -0
  346. package/dist/services/project/common/projectconfigjsonutils.js +1 -0
  347. package/dist/services/project/electron-backend/projectManagerService.js +1 -0
  348. package/dist/services/project/node/createProjectService.js +1 -0
  349. package/dist/services/project/node/projectConfigService.js +1 -0
  350. package/dist/services/project/node/projectManagerService.js +1 -0
  351. package/dist/services/project/web/projectManagerService.js +1 -0
  352. package/dist/services/project/webide/projectConfigService.js +1 -0
  353. package/dist/services/project/webide/projectFileService.js +1 -0
  354. package/dist/services/project/webide/projectManagerService.js +1 -0
  355. package/dist/services/projectManager/common/buildServerProjectManager.js +1 -0
  356. package/dist/services/projectManager/common/projectManager.js +1 -0
  357. package/dist/services/projectManager/nw/projectManager.js +1 -0
  358. package/dist/services/root/common/createService.js +1 -0
  359. package/dist/services/root/electron/root.js +1 -0
  360. package/dist/services/root/electron/rootService.js +1 -0
  361. package/dist/services/root/node/root.js +1 -0
  362. package/dist/services/root/node/rootService.js +1 -0
  363. package/dist/services/root/nw/root.js +1 -0
  364. package/dist/services/root/nw/rootService.js +1 -0
  365. package/dist/services/staticConfig/common/staticConfigService.js +1 -0
  366. package/dist/services/staticConfig/nw/staticConfigService.js +1 -0
  367. package/dist/services/store/common/storeService.js +1 -0
  368. package/dist/services/uniapp/common/uniapp.js +1 -0
  369. package/dist/services/uniapp/nw/uniapp.js +1 -0
  370. package/dist/services/uniapp/webide/uniapp.js +1 -0
  371. package/dist/services/vendor/common/utils.js +1 -0
  372. package/dist/services/vendor/common/vendorService.js +1 -0
  373. package/dist/services/vendor/node/vendorService.js +1 -0
  374. package/dist/services/vendor/webide/vendorService.js +1 -0
  375. package/dist/types/ci.js +1 -1
  376. package/dist/utils/asyncTask/index.js +1 -1
  377. package/dist/utils/babel_helper.js +1 -1
  378. package/dist/utils/babel_plugin_worklet.js +1 -1
  379. package/dist/utils/cache.js +1 -1
  380. package/dist/utils/codesign.js +1 -1
  381. package/dist/utils/common.js +1 -1
  382. package/dist/utils/cosUpload.js +1 -1
  383. package/dist/utils/cp.js +1 -1
  384. package/dist/utils/customError.js +1 -1
  385. package/dist/utils/debug.js +1 -1
  386. package/dist/utils/download.js +1 -1
  387. package/dist/utils/env.js +1 -1
  388. package/dist/utils/fs.js +1 -1
  389. package/dist/utils/genTempFile.js +1 -1
  390. package/dist/utils/generateIpa.js +1 -1
  391. package/dist/utils/glob.js +1 -1
  392. package/dist/utils/helper_util.js +1 -1
  393. package/dist/utils/jsonParse.js +1 -1
  394. package/dist/utils/miniapp-builder.js +1 -1
  395. package/dist/utils/miniappJson.js +1 -1
  396. package/dist/utils/node/common.js +1 -0
  397. package/dist/utils/officialDonutPlugin.js +1 -1
  398. package/dist/utils/packOptionsHelper.js +1 -1
  399. package/dist/utils/progressRecorder.js +1 -1
  400. package/dist/utils/report.js +1 -1
  401. package/dist/utils/request.js +1 -1
  402. package/dist/utils/sign.js +1 -1
  403. package/dist/utils/signature.js +1 -1
  404. package/dist/utils/singletontask.js +1 -1
  405. package/dist/utils/subprocess/entryProcess.js +1 -1
  406. package/dist/utils/subprocess/processManager.js +1 -1
  407. package/dist/utils/subprocess/processService.js +1 -1
  408. package/dist/utils/subprocess/stringifyPostMsg.js +1 -1
  409. package/dist/utils/swc_helper.js +1 -1
  410. package/dist/utils/tools.js +1 -1
  411. package/dist/utils/usbProcess.js +1 -1
  412. package/dist/utils/web/common.js +1 -0
  413. package/dist/utils/white_ext_list.js +1 -1
  414. package/dist/utils/wxapkg/pack.js +1 -1
  415. package/dist/utils/wxvpkgreader/wxvpkg/unpack/version0.js +1 -1
  416. package/dist/utils/wxvpkgreader/wxvpkg/unpack/version10.js +1 -1
  417. package/dist/utils/zip.js +1 -1
  418. package/dist/vendor/vslibrary/bundled/base.bundled.js +2 -0
  419. package/package.json +5 -54
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ #### 2.1.32
2
+ - `fix` 修复 多端构建不结束的问题
3
+ - `fix` 修复 安卓构建移除 versionCode 的长度限制
4
+ #### 2.1.31
5
+ - `fix` 修复 去除 package.json devDependencies
6
+ - `fix` 修复 锁定 less 版本为 4.5.1
1
7
  #### 2.1.30
2
8
  - `new` 新增 允许 CI 构建多端 APK 时使用 beta 版本 SDK
3
9
  #### 2.1.29
package/README.md CHANGED
@@ -7,6 +7,12 @@ miniprogram-ci 是从[微信开发者工具](https://developers.weixin.qq.com/mi
7
7
  miniprogram-ci 从 1.0.28 开始支持第三方平台开发的上传和预览,调用方式与普通开发模式无异。[查看详情](#第三方平台开发)
8
8
 
9
9
  ## 最近变更
10
+ #### 2.1.32
11
+ - `fix` 修复 多端构建不结束的问题
12
+ - `fix` 修复 安卓构建移除 versionCode 的长度限制
13
+ #### 2.1.31
14
+ - `fix` 修复 去除 package.json devDependencies
15
+ - `fix` 修复 锁定 less 版本为 4.5.1
10
16
  #### 2.1.30
11
17
  - `new` 新增 允许 CI 构建多端 APK 时使用 beta 版本 SDK
12
18
  #### 2.1.29
@@ -1,3 +1,3 @@
1
1
  import { IProject, MiniProgramCI } from '../types';
2
- export declare function transCompileType(project: IProject): "miniprogram" | "plugin" | "game" | "gamePlugin";
2
+ export declare function transCompileType(project: IProject): "miniprogram" | "game" | "plugin" | "gamePlugin";
3
3
  export declare function checkCodeQuality(project: IProject): Promise<MiniProgramCI.ICheckResultItem[]>;
@@ -1,5 +1,5 @@
1
1
  import { IProject } from '../types';
2
- export declare function transCompileType(project: IProject): "miniprogram" | "plugin" | "game" | "gamePlugin";
2
+ export declare function transCompileType(project: IProject): "miniprogram" | "game" | "plugin" | "gamePlugin";
3
3
  export declare function analyseCode(project: IProject, option?: {
4
4
  silent: boolean;
5
5
  }): Promise<import("../common/code-analyse").IAnalyseResult | undefined>;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { IProject } from '../types';
3
2
  import { TBusinessType } from '../config/businesstype';
4
3
  export declare function innerRequest<T>(url: string, body: any): Promise<T>;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { IInnerUploadOptions } from './upload';
3
2
  export declare function getCompiledResult(options: IInnerUploadOptions & {
4
3
  includedMap?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { IProject } from '../../types';
3
2
  interface ICodeData {
4
3
  [key: string]: string | Buffer;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  export declare function pack(fileInfo: {
3
2
  [filePath: string]: Buffer | string;
4
3
  }): {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCI } from '../../types';
3
2
  interface IPackOptions {
4
3
  needMd5?: boolean;
@@ -2,7 +2,7 @@ import { MiniProgramCI, MiniProgramDevtools } from '../../types';
2
2
  export declare const CompileSettingsKeysInProjectConfig: string[];
3
3
  export declare function isGameApp(project: MiniProgramCI.IProject): boolean;
4
4
  export declare const checkIsUseCompilerPlugins: (project: MiniProgramCI.IProject) => boolean | undefined;
5
- export declare function isUndefined(value: any): boolean;
5
+ export declare function isUndefined(value: any): value is undefined;
6
6
  export declare function formatCISetting(project: MiniProgramCI.IProject, setting: MiniProgramCI.ICompileSettings): MiniProgramDevtools.IProjectSetting;
7
7
  export declare function getMiniappCacheDir(): string;
8
8
  export declare function getMiniappIOSCacheDir(): string;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  interface IFileInfo {
3
2
  name: string;
4
3
  offset: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  interface IFileInfo {
3
2
  name: string;
4
3
  encType: number;
@@ -2,9 +2,9 @@ export declare const weapp = "weapp";
2
2
  export declare const game = "game";
3
3
  export declare const plugin = "plugin";
4
4
  export declare const gamePlugin = "gamePlugin";
5
- export declare const isGameKindCompileType: (compileType?: string) => boolean;
6
- export declare const isPluginKindCompileType: (compileType?: string) => boolean;
7
- export declare const isMPKindCompileType: (compileType?: string) => boolean;
5
+ export declare const isGameKindCompileType: (compileType?: string) => compileType is "game" | "gamePlugin";
6
+ export declare const isPluginKindCompileType: (compileType?: string) => compileType is "plugin" | "gamePlugin";
7
+ export declare const isMPKindCompileType: (compileType?: string) => compileType is "weapp" | "plugin";
8
8
  export declare const isGameKindProject: (project: {
9
9
  compileType?: string;
10
10
  }) => boolean;
@@ -14,4 +14,4 @@ export declare const isPluginKindProject: (project: {
14
14
  export declare const isMPKindProject: (project: {
15
15
  compileType?: string;
16
16
  }) => boolean;
17
- export declare const isValidCompileType: (compileType: string) => boolean;
17
+ export declare const isValidCompileType: (compileType: string) => compileType is "weapp" | "game" | "plugin" | "gamePlugin";
@@ -1,5 +1,5 @@
1
1
  import { IProject } from '../types';
2
- export declare const CI_VERSION = "2.1.30";
2
+ export declare const CI_VERSION = "2.1.32";
3
3
  export declare const PARAM_ERROR = 10000;
4
4
  export declare const WXML_NOT_FOUND = 10007;
5
5
  export declare const JS_NOT_FOUND = 10008;
@@ -0,0 +1,17 @@
1
+ export declare const getDataPath: () => string;
2
+ export declare const UserDataPath: string;
3
+ export declare const WeappVendor: string;
4
+ export declare const CrashPath: string;
5
+ export declare function cleanDir(filePath: string, include?: boolean): Promise<void>;
6
+ export declare const WeappSimulator: string;
7
+ export declare const WeappStorage: string;
8
+ export declare const WeappBackgroudData: string;
9
+ export declare const WeappFileSystem: string;
10
+ export declare function makeSureSimulatorDirExist(): void;
11
+ export declare const WeappRemote: string;
12
+ export declare const WeappRemoteData: string;
13
+ export declare const WeappRemoteTemp: string;
14
+ export declare const WeappRemoteLog: string;
15
+ export declare const WeappRemoteVendor: string;
16
+ export declare const WeappCache: string;
17
+ export declare const WeappCompileCache: string;
@@ -1,45 +1,45 @@
1
- export declare const GET_ATTR_URL: string;
2
- export declare const UPLOAD_URL: string;
3
- export declare const TEST_SOURCE_URL: string;
4
- export declare const GET_WHITE_EXT_LIST: string;
5
- export declare const GET_ONLINE_SCHEMA: string;
6
- export declare const GET_RAND_STRING: string;
7
- export declare const GET_DEV_SOURCE_MAP: string;
8
- export declare const TRANSLATE_FILENAME: string;
9
- export declare const GET_CLOUD_API_SIGNATURE: string;
10
- export declare const GET_UPLOAD_TOKEN: string;
11
- export declare const GET_ASYNC_RESULT: string;
12
- export declare const GAME_PKG_UPLOAD_URL: string;
13
- export declare const GET_GAME_PKG_ASYNC_RESULT: string;
14
- export declare const GET_GAME_PKG_UPLOAD_INFO: string;
15
- export declare const GET_GAME_PKG_UPLOAD_SIGN: string;
16
- export declare const GET_MULTI_COS_ASYNC_RESULT: string;
17
- export declare const GET_MULTI_COS_UPLOAD_INFO: string;
18
- export declare const GET_MULTI_COS_UPLOAD_SIGN: string;
19
- export declare const GET_PLUG_PKG_GET_LIST: string;
20
- export declare const GET_PLUG_PKG_GET_URL: string;
21
- export declare const GET_PLUG_PKG_CHECK_USERVERSION: string;
22
- export declare const GET_UPLOAD_INFO: string;
23
- export declare const GET_UPLOAD_SIGN: string;
24
- export declare const UPLOAD_JS_SERVER: string;
25
- export declare const GET_LATEST_VERSION: string;
26
- export declare const cloudAPIAgentURL: string;
27
- export declare const get3rdCloudCodeSecret: string;
28
- export declare const cloudCosUploadURL: string;
1
+ export declare const GET_ATTR_URL = "https://servicewechat.com/wxa/ci/getattr";
2
+ export declare const UPLOAD_URL = "https://servicewechat.com/wxa/ci/upload";
3
+ export declare const TEST_SOURCE_URL = "https://servicewechat.com/wxa/ci/testSourceURL";
4
+ export declare const GET_WHITE_EXT_LIST = "https://servicewechat.com/wxa/ci/getwhiteextlist";
5
+ export declare const GET_ONLINE_SCHEMA = "https://servicewechat.com/wxa/ci/getonlineschema";
6
+ export declare const GET_RAND_STRING = "https://servicewechat.com/wxa/ci/getrandstr";
7
+ export declare const GET_DEV_SOURCE_MAP = "https://servicewechat.com/wxa/ci/get_dev_sourcemap";
8
+ export declare const TRANSLATE_FILENAME = "https://servicewechat.com/wxa/ci/translate_filename";
9
+ export declare const GET_CLOUD_API_SIGNATURE = "https://servicewechat.com/wxa/ci/getqcloudapisignature";
10
+ export declare const GET_UPLOAD_TOKEN = "https://servicewechat.com/wxa/ci/getuploadtoken";
11
+ export declare const GET_ASYNC_RESULT = "https://servicewechat.com/wxa/ci/getasyncresult";
12
+ export declare const GAME_PKG_UPLOAD_URL = "https://servicewechat.com/wxa/ci/gamepkgupload";
13
+ export declare const GET_GAME_PKG_ASYNC_RESULT = "https://servicewechat.com/wxa/ci/getgamepkgasyncresult";
14
+ export declare const GET_GAME_PKG_UPLOAD_INFO = "https://servicewechat.com/wxa/ci/getgamepkguploadinfo";
15
+ export declare const GET_GAME_PKG_UPLOAD_SIGN = "https://servicewechat.com/wxa/ci/getgamepkguploadsign";
16
+ export declare const GET_MULTI_COS_ASYNC_RESULT = "https://servicewechat.com/wxa/ci/getmulticosasyncresult";
17
+ export declare const GET_MULTI_COS_UPLOAD_INFO = "https://servicewechat.com/wxa/ci/getmulticosuploadinfo";
18
+ export declare const GET_MULTI_COS_UPLOAD_SIGN = "https://servicewechat.com/wxa/ci/getmulticosuploadsign";
19
+ export declare const GET_PLUG_PKG_GET_LIST = "https://servicewechat.com/wxa/ci/apkpluggetlist";
20
+ export declare const GET_PLUG_PKG_GET_URL = "https://servicewechat.com/wxa/ci/apkpluggeturl";
21
+ export declare const GET_PLUG_PKG_CHECK_USERVERSION = "https://servicewechat.com/wxa/ci/apkplugcheckuserversion";
22
+ export declare const GET_UPLOAD_INFO = "https://servicewechat.com/wxa/ci/getuploadinfo";
23
+ export declare const GET_UPLOAD_SIGN = "https://servicewechat.com/wxa/ci/getuploadsign";
24
+ export declare const UPLOAD_JS_SERVER = "https://servicewechat.com/wxa/ci/uploadjsserver";
25
+ export declare const GET_LATEST_VERSION = "https://servicewechat.com/wxa/ci/getlatestversion";
26
+ export declare const cloudAPIAgentURL = "https://servicewechat.com/wxa/ci/cloudapihttpagent";
27
+ export declare const get3rdCloudCodeSecret = "https://servicewechat.com/wxa/ci/getcloudcodesecret";
28
+ export declare const cloudCosUploadURL = "https://servicewechat.com/wxa/ci/cloudcosupload";
29
29
  export declare const scfTencentCloudUrl = "https://scf.tencentcloudapi.com";
30
30
  export declare const dbTencentCloudUrl = "https://flexdb.tencentcloudapi.com";
31
31
  export declare const tcbTencentCloudUrl = "https://tcb.tencentcloudapi.com";
32
- export declare const commitSourceNewFeatureURL: string;
33
- export declare const commitSourceURL: string;
34
- export declare const getUploadToken: string;
35
- export declare const testSourceURL: string;
36
- export declare const testSourceNewFeatureURL: string;
37
- export declare const getAsyncResult: string;
38
- export declare const getSdkIntInfo: string;
39
- export declare const uploadCloudBuildResourcePack: string;
40
- export declare const getCloudBuildTaskList: string;
41
- export declare const getCloudBuildPkgUrl: string;
42
- export declare const miniappUpload: string;
43
- export declare const getPkgWxapkg: string;
44
- export declare const downloadMiniAppPlugin: string;
45
- export declare const getUsedPluginVersionInfo: string;
32
+ export declare const commitSourceNewFeatureURL = "https://servicewechat.comwxa-dev-new/commitsource";
33
+ export declare const commitSourceURL = "https://servicewechat.comwxa-dev/commitsource";
34
+ export declare const getUploadToken = "https://servicewechat.comwxa-dev/getuploadtoken";
35
+ export declare const testSourceURL = "https://servicewechat.comwxa-dev/testsource";
36
+ export declare const testSourceNewFeatureURL = "https://servicewechat.comwxa-dev-new/testsource";
37
+ export declare const getAsyncResult = "https://servicewechat.comwxa-dev/getasyncresult";
38
+ export declare const getSdkIntInfo = "https://servicewechat.com/wxa/ci/getsdkinitinfo";
39
+ export declare const uploadCloudBuildResourcePack = "https://servicewechat.com/wxa/ci/uploadcloudbuildresourcepack";
40
+ export declare const getCloudBuildTaskList = "https://servicewechat.com/wxa/ci/getcloudbuildtasklist";
41
+ export declare const getCloudBuildPkgUrl = "https://servicewechat.com/wxa/ci/getcloudbuildpkgurl";
42
+ export declare const miniappUpload = "https://servicewechat.com/wxa/ci/miniappupload";
43
+ export declare const getPkgWxapkg = "https://servicewechat.com/wxa/ci/downloadpackage";
44
+ export declare const downloadMiniAppPlugin = "https://servicewechat.com/wxa/ci/downloadcpfplugin";
45
+ export declare const getUsedPluginVersionInfo = "https://servicewechat.com/wxa/ci/getcpfusedpluginversioninfo";
@@ -5,7 +5,7 @@ import { DevtoolsProject } from './project/devtoolsProject';
5
5
  import { getSummerPluginConfig } from './modules/corecompiler/summer/pluginconfig';
6
6
  import { getBabelHelperVersion, getBabelHelperDepMap } from './utils/babel_helper';
7
7
  import { getHelperOutputPath, getHelperDeps, isValidHelperFunc, getHelperContent, getHelperName } from './utils/helper_util';
8
- import packOptionsHelper from './utils/packOptionsHelper';
8
+ import packOptionsHelper, { PackOptionsHelper } from './utils/packOptionsHelper';
9
9
  import { BaseProject } from './project/baseProject';
10
10
  import { WebProject } from './project/webProject';
11
11
  import { PreCompileProject } from './project/advance/precompileProject';
@@ -23,8 +23,10 @@ import * as miniappBuilder from './utils/miniapp-builder';
23
23
  import MiniAppI18N from './utils/miniAppI18N';
24
24
  import * as MiniAppJson from './utils/miniappJson';
25
25
  import * as cosUpload from './utils/cosUpload';
26
- export { Builder, SummerCompiler, DevtoolsProject, getSummerPluginConfig, getBabelHelperVersion, getBabelHelperDepMap, isValidHelperFunc, getHelperName, getHelperContent, getHelperOutputPath, getHelperDeps, packOptionsHelper, };
26
+ import { EServiceEnviroment, initServices } from './services/common/getservice';
27
+ export { Builder, SummerCompiler, DevtoolsProject, getSummerPluginConfig, getBabelHelperVersion, getBabelHelperDepMap, isValidHelperFunc, getHelperName, getHelperContent, getHelperOutputPath, getHelperDeps, packOptionsHelper, PackOptionsHelper, initServices, };
27
28
  export declare const workletVersion: any;
29
+ export { EServiceEnviroment, };
28
30
  export { EFilterCode };
29
31
  export { BaseProject, WebProject, PreCompileProject, CIProject as Project, CIProject, };
30
32
  export { BaseCoreCompiler, OriginalCompiler, ICompilerStatus, ICompileOptions, };
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { ExtJSON, AppJSON, IGameJSON, MiniProgramCore, PageJSON, PluginJSON, SiteMapJSON, ThemeJSON, MiniProgramDevtools } from '../../types';
3
2
  import { SingletonTask } from '../../utils/singletontask';
4
3
  import { EFilterCode } from '../../config/config';
@@ -8,8 +7,8 @@ export declare abstract class BaseCoreCompiler {
8
7
  protected _checkReadyTask?: SingletonTask;
9
8
  isSummer: boolean;
10
9
  project: MiniProgramCore.IPreCompileProject;
11
- protected isGameType(type: MiniProgramCore.ProjectType): boolean;
12
- protected isPluginType(type: MiniProgramCore.ProjectType): boolean;
10
+ protected isGameType(type: MiniProgramCore.ProjectType): type is "miniGame" | "miniGamePlugin";
11
+ protected isPluginType(type: MiniProgramCore.ProjectType): type is "miniProgramPlugin" | "miniGamePlugin";
13
12
  get projectPath(): string;
14
13
  get srcPath(): string;
15
14
  get pluginSrcPath(): string;
@@ -69,7 +68,7 @@ export declare abstract class BaseCoreCompiler {
69
68
  getPluginWXSSFileList(filter?: string): string[];
70
69
  getPluginJSONFileList(filter?: string): string[];
71
70
  isValidComponent(prefix: string | undefined, filePath: string): boolean;
72
- getAllFileInfo(prefix?: string): MiniProgramCore.IFileInfos;
71
+ getAllFileInfo(prefix?: string): Promise<MiniProgramCore.IFileInfos>;
73
72
  abstract getMPFileInfo(): Promise<MiniProgramCore.IFileInfos>;
74
73
  abstract getPackageWxssFileList(packagePath: string): Promise<string[]>;
75
74
  abstract getPackageWxssFiles(packagePath: string): Promise<{
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore, ProjectConfigJSON } from '../../../../types';
3
2
  export declare function getBabelRoot(project: MiniProgramCore.IPreCompileProject): Promise<string>;
4
3
  export declare function isNotIgnoredByProjectConfig(projectConfig: MiniProgramCore.IAnyObject, root: string, file: string): boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore } from '../../../../types';
3
2
  export declare function compilePlugin(project: MiniProgramCore.IPreCompileProject, options: MiniProgramCore.ICompileOptions): Promise<{
4
3
  [filePath: string]: Buffer | string;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore } from '../../../../../types';
3
2
  export declare function addSkylineRendererToComponents(pageJSONResults: {
4
3
  [key: string]: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore } from '../../../../types';
3
2
  export declare function compile(project: MiniProgramCore.IPreCompileProject, options: MiniProgramCore.ICompileOptions): Promise<{
4
3
  [filePath: string]: Buffer | string;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore } from '../../../../types';
3
2
  export declare function compilePlugin(project: MiniProgramCore.IPreCompileProject, options: MiniProgramCore.ICompileOptions): Promise<{
4
3
  [filePath: string]: Buffer | string;
@@ -1,3 +1,2 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore } from '../../../../types';
3
2
  export declare function compile(buffer: Buffer, filePath: string, settings: MiniProgramCore.ICompileSettings): void;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { IGameJSON, MiniProgramCore } from '../../../../types';
3
2
  interface INameMapping {
4
3
  [origin: string]: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramDevtools } from '../../../../../types';
3
2
  interface ICompileData {
4
3
  projectPath: string;
@@ -21,7 +20,7 @@ declare function compileJS(data: ICompileData): Promise<{
21
20
  path: string;
22
21
  name: string;
23
22
  message: string;
24
- stack?: string | undefined;
23
+ stack?: string;
25
24
  } | {
26
25
  path: string;
27
26
  message: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramDevtools } from '../../../../../types';
3
2
  interface ICompileData {
4
3
  projectPath: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  interface ICompileData {
3
2
  code: string | Buffer;
4
3
  filePath: string;
@@ -32,7 +32,7 @@ export declare class AppConf extends MiniProgramBaseConf {
32
32
  pageResults: Record<string, string>;
33
33
  componentResults: Record<string, string>;
34
34
  }>;
35
- onFileChange: (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', path: string) => void;
35
+ onFileChange: (type: "unlink" | "unlinkDir" | "add" | "addDir" | "change", path: string) => void;
36
36
  protected resetState(): Promise<void>;
37
37
  protected load(recorder: Recorder): Promise<void>;
38
38
  protected loadPage(path: string): Promise<void>;
@@ -14,7 +14,7 @@ export declare class GameConf extends BaseConf {
14
14
  pageResults: {};
15
15
  componentResults: {};
16
16
  }>;
17
- onFileChange: (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', path: string) => void;
17
+ onFileChange: (type: "unlink" | "unlinkDir" | "add" | "addDir" | "change", path: string) => void;
18
18
  protected resetState(): Promise<void>;
19
19
  protected load(recorder: Recorder): Promise<void>;
20
20
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="less" />
2
1
  import { MiniProgramCore, MiniProgramSummer } from '../../../../types';
3
2
  export declare const importWxssReg: RegExp;
4
3
  export declare const importWxssCssReg: RegExp;
@@ -19,7 +19,7 @@ export declare class Resolver {
19
19
  allExts: string[];
20
20
  constructor(graph: BaseGraph, root: string, extConf: ResolveExtConf);
21
21
  updateFileAndDirs(): void;
22
- onFileChange: (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', path: string) => void;
22
+ onFileChange: (type: "unlink" | "unlinkDir" | "add" | "addDir" | "change", path: string) => void;
23
23
  resolve(source: string): ResolveFileInfo[];
24
24
  stat(path: string): IStat | undefined;
25
25
  private isCodeFile;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramDevtools, MiniProgramCore, ExtJSON } from '../../types';
3
2
  import { FileInfo } from './summer/graph/basegraph';
4
3
  import { EFilterCode } from '../../config/config';
@@ -37,14 +36,14 @@ export declare class SummerCompiler extends BaseCoreCompiler {
37
36
  updateOptionsWhenAttrNotChanged(options: MiniProgramDevtools.IDevtoolsProjectInfo): void;
38
37
  private addProjectListener;
39
38
  private removeProjectListener;
40
- onFileChange: (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', targetPath: string) => void;
39
+ onFileChange: (type: "unlink" | "unlinkDir" | "add" | "addDir" | "change", targetPath: string) => void;
41
40
  onPreCompileOptionsChange: (data: any) => Promise<void>;
42
41
  private invalidCodeCache;
43
42
  private onProgressUpdate;
44
43
  private getConf;
45
44
  waitSubProcessReady(): Promise<void>;
46
45
  getPackageFiles(graphId: MiniProgramDevtools.GraphId, root: string, resultType?: MiniProgramCore.IResultType, useCache?: boolean): Promise<FileInfo[]>;
47
- _getPackageFiles: (graphId: import("../../types").MiniProgramCI.ProjectType, root: string, resultType?: MiniProgramCore.IResultType) => Promise<FileInfo[]>;
46
+ _getPackageFiles: (graphId: MiniProgramDevtools.GraphId, root: string, resultType?: MiniProgramCore.IResultType) => Promise<FileInfo[]>;
48
47
  private isMiniappPlatformInclude;
49
48
  filterUnusedFiles(isGame: boolean, abFilePath: string, resultType: MiniProgramCore.IResultType): Promise<EFilterCode>;
50
49
  private filterFactory;
@@ -47,8 +47,8 @@ declare class buildCloudManager {
47
47
  copyResourcesToMainBundle(srcFrameworksPath: string, distFrameworkPath: string): void;
48
48
  prepareAppexProfileConfig(pluginDirList: IMiniApp.IIOSPluginDir[], iosMiniappJson: MiniProgramCore.IStringKeyMap, projectPath: string, miniappCacheDirPath: string, isPublish: boolean, CFBundleVersion: string, CFBundleShortVersionString: string, recorder: Recorder): false | {
49
49
  [appexName: string]: {
50
- profilePath?: string | undefined;
51
- bundleID?: string | undefined;
50
+ profilePath?: string;
51
+ bundleID?: string;
52
52
  enable: boolean;
53
53
  };
54
54
  } | undefined;
@@ -0,0 +1,5 @@
1
+ import { MiniProgramDevtools } from '../../types';
2
+ export declare function initHandler(message: MiniProgramDevtools.InitMsg): Promise<void>;
3
+ export declare function destroy(): Promise<void>;
4
+ export declare const onMessage: (fn: (...args: any[]) => any) => Promise<void>;
5
+ export declare function messageHandler(message: MiniProgramDevtools.SummerProcessMessage): Promise<void>;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore } from '../../../../types';
3
2
  import { PLATFORM } from '../../../../config/define';
4
3
  import { MacroDefine } from '../define';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MacroDefine } from '../define';
3
2
  import { BaseConditionCompiler } from './base';
4
3
  export declare class JSONConditionCompiler extends BaseConditionCompiler {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore } from '../../../../types';
3
2
  import { MacroDefine } from '../define';
4
3
  import { BaseConditionCompiler } from './base';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MacroDefine } from '../define';
3
2
  import { BaseConditionCompiler } from './base';
4
3
  export declare class PlantConditionCompiler extends BaseConditionCompiler {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCI, MiniProgramCore } from '../../../types';
3
2
  import { BaseConditionCompiler } from './compiler/base';
4
3
  import { IConsoleDisplay, IMessageHub } from '../../../utils/messageHub';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore, MiniProgramDevtools, MiniProgramSummer, MiniProgramCI } from '../../types';
3
2
  import { BaseProject } from '../baseProject';
4
3
  import { ConditionCompiler } from '../../modules/precompiler/index';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore } from '../../types';
3
2
  import { BaseProject } from '../baseProject';
4
3
  export declare class ReactiveProject extends BaseProject implements MiniProgramCore.IPreCompileProject {
@@ -32,7 +31,7 @@ export declare class ReactiveProject extends BaseProject implements MiniProgramC
32
31
  dirs: string[];
33
32
  };
34
33
  getExtAppid(): Promise<string | void>;
35
- onFileChange: (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', targetPath: string) => Promise<void>;
34
+ onFileChange: (type: "unlink" | "unlinkDir" | "add" | "addDir" | "change", targetPath: string) => Promise<void>;
36
35
  getFile(prefix: string, filePath: string): Buffer;
37
36
  stat(prefix: string, filePath: string): import("../../types").MiniProgramCI.IStat | undefined;
38
37
  attrSync(): import("../../types").MiniProgramCI.IProjectAttr;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore, MiniProgramDevtools, MiniProgramSummer, ProjectConfigJSON } from '../types';
3
2
  import WaitAble from '../utils/waitable';
4
3
  type FileChange = (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', targetPath: string) => void;
@@ -47,7 +46,7 @@ export declare abstract class BaseProject extends WaitAble implements MiniProgra
47
46
  set nameMappingFromDevtools(mapping: MiniProgramCore.IStringKeyMap<string> | undefined);
48
47
  attr(): Promise<any>;
49
48
  ready(): Promise<void>;
50
- protected getProjectType(attr: any, compileType: MiniProgramCore.ProjectType): import("../types").MiniProgramCI.ProjectType;
49
+ protected getProjectType(attr: any, compileType: MiniProgramCore.ProjectType): MiniProgramCore.ProjectType;
51
50
  getProjectConfig(): ProjectConfigJSON.IProjectConfigJSON;
52
51
  normalizeRootPath: (pathName?: string) => string;
53
52
  serialize(): Promise<MiniProgramCore.IProjectSerializeInfo>;
@@ -63,8 +62,9 @@ export declare abstract class BaseProject extends WaitAble implements MiniProgra
63
62
  dirs: string[];
64
63
  };
65
64
  exists(prefix?: string, filePath?: string): boolean;
65
+ statAsync(prefix?: string, filePath?: string): Promise<MiniProgramCore.IStat | undefined>;
66
66
  stat(prefix?: string, filePath?: string): MiniProgramCore.IStat | undefined;
67
- getAllFileInfo(prefix?: string): MiniProgramCore.IFileInfos;
67
+ getAllFileInfo(prefix?: string): Promise<MiniProgramCore.IFileInfos>;
68
68
  getFileList(prefix?: string, extName?: string): string[];
69
69
  getSrcFile(prefix: string, filePath: string): Buffer;
70
70
  getFile(prefix: string, filePath: string): Buffer;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MiniProgramCore } from '../types';
3
2
  import { CIProject } from './ciProject';
4
3
  type IStat = MiniProgramCore.IStat;
@@ -0,0 +1,18 @@
1
+ export interface IAccountCardResources {
2
+ js: string;
3
+ wxss: string;
4
+ json: string;
5
+ wxml: string;
6
+ prependjs?: string;
7
+ }
8
+ export type ICardType = {
9
+ type: number;
10
+ displayName: string;
11
+ };
12
+ export interface IAccountCardService {
13
+ init: () => Promise<void>;
14
+ refresh: () => void;
15
+ getAvailableAccountCardTypes: () => ICardType[];
16
+ getAccountCardResources: (type: number) => IAccountCardResources;
17
+ }
18
+ export declare const IAccountCardService: import("../common/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IAccountCardService>;
@@ -0,0 +1,10 @@
1
+ export interface IDirConfig {
2
+ WeappCompileCache: string;
3
+ WeappMiniApp: string;
4
+ }
5
+ export interface IAppDirService {
6
+ init(dirConfig?: IDirConfig): Promise<IDirConfig>;
7
+ get<T extends keyof IDirConfig>(dirType: T): Promise<IDirConfig[T]>;
8
+ cleanDir(dirType: keyof IDirConfig): Promise<void>;
9
+ }
10
+ export declare const IAppDirService: import("../../common/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IAppDirService>;
@@ -0,0 +1,7 @@
1
+ import { IAppDirService, IDirConfig } from './appDirService';
2
+ export declare class AppDirDevtoolsService implements IAppDirService {
3
+ private _config;
4
+ init(config: IDirConfig): Promise<IDirConfig>;
5
+ get<T extends keyof IDirConfig>(dirType: T): Promise<IDirConfig[T]>;
6
+ cleanDir(dirType: keyof IDirConfig): Promise<void>;
7
+ }
@@ -0,0 +1,3 @@
1
+ import { AppDirDevtoolsService } from '../common/appDirService.devtools';
2
+ export declare class AppDirService extends AppDirDevtoolsService {
3
+ }
@@ -0,0 +1,6 @@
1
+ import { IAppDirService, IDirConfig } from '../common/appDirService';
2
+ export declare class AppDirDevtoolsService implements IAppDirService {
3
+ init(): Promise<IDirConfig>;
4
+ get<T extends keyof IDirConfig>(dirType: T): Promise<IDirConfig[T]>;
5
+ cleanDir(dirType: keyof IDirConfig): Promise<void>;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { AppDirDevtoolsService } from '../common/appDirService.devtools';
2
+ export declare class AppDirService extends AppDirDevtoolsService {
3
+ }
@@ -0,0 +1,22 @@
1
+ import { BaseCoreCompiler } from '../../..';
2
+ import type { PackOptionsHelper } from '../../..';
3
+ import type { MiniProgramDevtools } from '~/types';
4
+ export * from '../../..';
5
+ export interface IGetBuilderOptions {
6
+ targetPlatform?: 'mini-ios' | 'mini-android' | 'mini-ohos';
7
+ targetPlatformDefines?: {
8
+ [key: string]: any;
9
+ };
10
+ }
11
+ export interface IBuilder {
12
+ getCompiler: (project: IProject, opts?: IGetBuilderOptions) => Promise<BaseCoreCompiler>;
13
+ getBabelHelperVersion: () => string;
14
+ getWorkletVersion: () => string;
15
+ getHelperContent(setting: MiniProgramDevtools.IProjectSetting, mod: string): Promise<string>;
16
+ getHelperName(setting: MiniProgramDevtools.IProjectSetting, mod: string): string;
17
+ isValidHelperFunc(funcName: string): string | void;
18
+ getHelperOutputPath(setting: MiniProgramDevtools.IProjectSetting): string;
19
+ getHelperDeps(setting: MiniProgramDevtools.IProjectSetting, helpers: Set<string>): string[];
20
+ getPackOptionsHelper(): PackOptionsHelper;
21
+ }
22
+ export declare const IBuilder: import("../../common/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IBuilder>;