miniprogram-ci 2.1.33 → 2.1.34

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 (364) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/@types/build-server/constant.d.ts +42 -0
  4. package/dist/@types/build-server/ctxManager.d.ts +2 -0
  5. package/dist/@types/build-server/fileCacheManager.d.ts +43 -0
  6. package/dist/@types/build-server/fileTaskDriver.d.ts +36 -0
  7. package/dist/@types/build-server/subProcess.d.ts +1 -0
  8. package/dist/@types/build-server/subTaskManager.d.ts +8 -0
  9. package/dist/@types/build-server/taskDriver.d.ts +68 -0
  10. package/dist/@types/build-server/taskFactory.d.ts +22 -0
  11. package/dist/@types/build-server/tasks/appserviceCompile/index.d.ts +1 -0
  12. package/dist/@types/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.d.ts +5 -0
  13. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.d.ts +19 -0
  14. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.d.ts +10 -0
  15. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.d.ts +23 -0
  16. package/dist/@types/build-server/tasks/baseFileCompiler/OTService.d.ts +7 -0
  17. package/dist/@types/build-server/tasks/baseFileCompiler/enhance.d.ts +29 -0
  18. package/dist/@types/build-server/tasks/baseFileCompiler/es6module.d.ts +44 -0
  19. package/dist/@types/build-server/tasks/baseFileCompiler/index.d.ts +3 -0
  20. package/dist/@types/build-server/tasks/baseFileCompiler/javascript.d.ts +36 -0
  21. package/dist/@types/build-server/tasks/baseFileCompiler/less.d.ts +43 -0
  22. package/dist/@types/build-server/tasks/baseFileCompiler/minifywxml.d.ts +10 -0
  23. package/dist/@types/build-server/tasks/baseFileCompiler/readFile.d.ts +2 -0
  24. package/dist/@types/build-server/tasks/baseFileCompiler/sass.d.ts +50 -0
  25. package/dist/@types/build-server/tasks/baseFileCompiler/terser.d.ts +20 -0
  26. package/dist/@types/build-server/tasks/baseFileCompiler/typescript.d.ts +25 -0
  27. package/dist/@types/build-server/tasks/baseFileCompiler/worklet.d.ts +13 -0
  28. package/dist/@types/build-server/tasks/baseFileCompiler/wxss.d.ts +33 -0
  29. package/dist/@types/build-server/tasks/common/apperrcode.config.d.ts +92 -0
  30. package/dist/@types/build-server/tasks/common/compiletype.config.d.ts +17 -0
  31. package/dist/@types/build-server/tasks/common/constants.config.d.ts +549 -0
  32. package/dist/@types/build-server/tasks/common/simulatortype.config.d.ts +15 -0
  33. package/dist/@types/build-server/tasks/common/utils/appdevserver/getwxappcode.d.ts +3 -0
  34. package/dist/@types/build-server/tasks/common/utils/babel/babelhelpers.d.ts +11 -0
  35. package/dist/@types/build-server/tasks/common/utils/builder/builder.d.ts +35 -0
  36. package/dist/@types/build-server/tasks/common/utils/builder/filter.d.ts +1 -0
  37. package/dist/@types/build-server/tasks/common/utils/builder/index.d.ts +10 -0
  38. package/dist/@types/build-server/tasks/common/utils/cache/compile.d.ts +72 -0
  39. package/dist/@types/build-server/tasks/common/utils/cache/config.d.ts +16 -0
  40. package/dist/@types/build-server/tasks/common/utils/cache/filecompile.d.ts +16 -0
  41. package/dist/@types/build-server/tasks/common/utils/cache/jspersistcache.d.ts +11 -0
  42. package/dist/@types/build-server/tasks/common/utils/cache/manager.d.ts +18 -0
  43. package/dist/@types/build-server/tasks/common/utils/cache/persistcache.d.ts +17 -0
  44. package/dist/@types/build-server/tasks/common/utils/cache/reporter.d.ts +9 -0
  45. package/dist/@types/build-server/tasks/common/utils/colorutils.d.ts +4 -0
  46. package/dist/@types/build-server/tasks/common/utils/common/bindActionTools.d.ts +8 -0
  47. package/dist/@types/build-server/tasks/common/utils/common/schema.helper.d.ts +0 -0
  48. package/dist/@types/build-server/tasks/common/utils/common/tools.d.ts +17 -0
  49. package/dist/@types/build-server/tasks/common/utils/common/waitable.d.ts +14 -0
  50. package/dist/@types/build-server/tasks/common/utils/filerules.d.ts +13 -0
  51. package/dist/@types/build-server/tasks/common/utils/fsutils.d.ts +7 -0
  52. package/dist/@types/build-server/tasks/common/utils/handleError.d.ts +0 -0
  53. package/dist/@types/build-server/tasks/common/utils/helper/vendorValidate.d.ts +0 -0
  54. package/dist/@types/build-server/tasks/common/utils/interfacebuilder/registry/index.d.ts +22 -0
  55. package/dist/@types/build-server/tasks/common/utils/partialcompile.d.ts +0 -0
  56. package/dist/@types/build-server/tasks/common/utils/project/appconfig.d.ts +5 -0
  57. package/dist/@types/build-server/tasks/common/utils/project/appjson.d.ts +2 -0
  58. package/dist/@types/build-server/tasks/common/utils/project/customcomponent.d.ts +20 -0
  59. package/dist/@types/build-server/tasks/common/utils/project/generatecode.utils.d.ts +5 -0
  60. package/dist/@types/build-server/tasks/common/utils/project/getcompiledjs.d.ts +30 -0
  61. package/dist/@types/build-server/tasks/common/utils/project/helper/index.d.ts +21 -0
  62. package/dist/@types/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.d.ts +142 -0
  63. package/dist/@types/build-server/tasks/common/utils/project/helper/reserveddirectories.d.ts +3 -0
  64. package/dist/@types/build-server/tasks/common/utils/project/helper/theme.d.ts +39 -0
  65. package/dist/@types/build-server/tasks/common/utils/project/online/appconfig.d.ts +0 -0
  66. package/dist/@types/build-server/tasks/common/utils/project/pagejson.d.ts +2 -0
  67. package/dist/@types/build-server/tasks/common/utils/project/projectconfigjson.d.ts +8 -0
  68. package/dist/@types/build-server/tasks/common/utils/project/wxappcodejson.d.ts +2 -0
  69. package/dist/@types/build-server/tasks/common/utils/subpackageUtils.d.ts +0 -0
  70. package/dist/@types/build-server/tasks/common/utils/tracing/Trace.d.ts +50 -0
  71. package/dist/@types/build-server/tasks/common/utils/tracing/aegis.d.ts +3 -0
  72. package/dist/@types/build-server/tasks/common/utils/tracing/index.d.ts +34 -0
  73. package/dist/@types/build-server/tasks/common/utils/tracing/readiness.d.ts +11 -0
  74. package/dist/@types/build-server/tasks/common/utils/tracing/report.d.ts +14 -0
  75. package/dist/@types/build-server/tasks/common/utils/trans/transwxmltojs.d.ts +28 -0
  76. package/dist/@types/build-server/tasks/common/utils/transformsourcemap.d.ts +1 -0
  77. package/dist/@types/build-server/tasks/common/utils/web/glasseaselUtils.d.ts +1 -0
  78. package/dist/@types/build-server/tasks/common/utils/web/md5.d.ts +2 -0
  79. package/dist/@types/build-server/tasks/common/utils/web/processPath.d.ts +9 -0
  80. package/dist/@types/build-server/tasks/common/weapp.config.d.ts +108 -0
  81. package/dist/@types/build-server/tasks/pageInitSourceCompile/index.d.ts +2 -0
  82. package/dist/@types/build-server/tasks/pageframeCompile/index.d.ts +1 -0
  83. package/dist/@types/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.d.ts +8 -0
  84. package/dist/@types/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.d.ts +26 -0
  85. package/dist/@types/build-server/testAppConfig.d.ts +1 -0
  86. package/dist/@types/build-server/testAppservice.d.ts +1 -0
  87. package/dist/@types/build-server/testInitSourceCompile.d.ts +1 -0
  88. package/dist/@types/build-server/testPageframe.d.ts +1 -0
  89. package/dist/@types/build-server/testSubProcess.d.ts +1 -0
  90. package/dist/@types/build-server/utils/fileTask.d.ts +5 -0
  91. package/dist/@types/build-server/utils/getFileOrCache.d.ts +24 -0
  92. package/dist/@types/build-server/utils/process.d.ts +0 -0
  93. package/dist/@types/build-server/utils/request.d.ts +47 -0
  94. package/dist/@types/bussinessMonitor/monitor.d.ts +1 -0
  95. package/dist/@types/config/config.d.ts +1 -1
  96. package/dist/@types/index.d.ts +0 -2
  97. package/dist/@types/modules/corecompiler/original/workerThread/task/func.d.ts +0 -4
  98. package/dist/@types/modules/corecompiler/summerCompiler.d.ts +0 -4
  99. package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +4 -0
  100. package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +12 -0
  101. package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +9 -0
  102. package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +32 -0
  103. package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +18 -0
  104. package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +12 -0
  105. package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +7 -0
  106. package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +10 -0
  107. package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +13 -0
  108. package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +48 -0
  109. package/dist/@types/modules/fullcompiler/filerules.d.ts +5 -0
  110. package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +11 -0
  111. package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +11 -0
  112. package/dist/@types/modules/fullcompiler/index.d.ts +31 -0
  113. package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +10 -0
  114. package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +13 -0
  115. package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +10 -0
  116. package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +11 -0
  117. package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +21 -0
  118. package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +18 -0
  119. package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +11 -0
  120. package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +12 -0
  121. package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +3 -0
  122. package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +14 -0
  123. package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +3 -0
  124. package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +3 -0
  125. package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +14 -0
  126. package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +9 -0
  127. package/dist/@types/modules/fullcompiler/utils/handleerror/handleerror.d.ts +3 -0
  128. package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +42 -0
  129. package/dist/@types/modules/fullcompiler/utils/index.d.ts +4 -0
  130. package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +23 -0
  131. package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +40 -0
  132. package/dist/@types/modules/fullcompiler/utils/tools.d.ts +15 -0
  133. package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +1 -0
  134. package/dist/@types/project/serverProject.d.ts +38 -0
  135. package/dist/@types/services/app/server/appDirService.d.ts +6 -0
  136. package/dist/@types/services/builder/server/builder.d.ts +4 -0
  137. package/dist/@types/services/compileCacheManager/common/compileCacheManager.d.ts +23 -0
  138. package/dist/@types/services/compileCacheManager/nw/compileCacheManager.d.ts +16 -0
  139. package/dist/@types/services/compileCacheManager/server/compileCacheManager.d.ts +26 -0
  140. package/dist/@types/services/compilewxml/server/compilewxmlService.d.ts +5 -0
  141. package/dist/@types/services/compilewxml/server/wccWorker.d.ts +1 -0
  142. package/dist/@types/services/compilewxss/server/compilewxssService.d.ts +4 -0
  143. package/dist/@types/services/compilewxss/server/wcscWorker.d.ts +1 -0
  144. package/dist/@types/services/consoledisplay/server/consoledisplay.d.ts +4 -0
  145. package/dist/@types/services/fileUtilsManager/server/fileUtilsManager.d.ts +4 -0
  146. package/dist/@types/services/fs/server/fileService.d.ts +27 -0
  147. package/dist/@types/services/genTempFile/server/genTempFileService.d.ts +3 -0
  148. package/dist/@types/services/global/server/global.d.ts +6 -0
  149. package/dist/@types/services/initializeCheck/server/initializeCheck.d.ts +4 -0
  150. package/dist/@types/services/locales/server/const.d.ts +5 -0
  151. package/dist/@types/services/locales/server/locales.d.ts +5 -0
  152. package/dist/@types/services/log/server/logService.d.ts +9 -0
  153. package/dist/@types/services/miniappjson/server/miniappjson.d.ts +4 -0
  154. package/dist/@types/services/multiTaskManager/server/multiTaskManager.d.ts +5 -0
  155. package/dist/@types/services/multiTaskManager/server/pm2TaskWorker.d.ts +1 -0
  156. package/dist/@types/services/multiTaskManager/server/pm2WorkerManager.d.ts +18 -0
  157. package/dist/@types/services/nativeModule/server/nativeModule.d.ts +3 -0
  158. package/dist/@types/services/performance/server/performance.d.ts +7 -0
  159. package/dist/@types/services/pluginFileReader/common/pluginFileReader.d.ts +3 -4
  160. package/dist/@types/services/pluginFileReader/server/pluginFileReader.d.ts +18 -0
  161. package/dist/@types/services/projectManager/server/buildServerProjectManager.d.ts +11 -0
  162. package/dist/@types/services/projectManager/server/projectManager.d.ts +7 -0
  163. package/dist/@types/services/root/server/root.d.ts +11 -0
  164. package/dist/@types/services/root/server/rootService.d.ts +2 -0
  165. package/dist/@types/services/staticConfig/server/staticConfigService.d.ts +4 -0
  166. package/dist/@types/services/store/server/storeService.d.ts +11 -0
  167. package/dist/@types/services/uniapp/server/uniapp.d.ts +4 -0
  168. package/dist/build-server/constant.js +1 -0
  169. package/dist/build-server/ctxManager.js +1 -0
  170. package/dist/build-server/fileCacheManager.js +1 -0
  171. package/dist/build-server/fileTaskDriver.js +1 -0
  172. package/dist/build-server/subProcess.js +1 -0
  173. package/dist/build-server/subTaskManager.js +1 -0
  174. package/dist/build-server/taskDriver.js +1 -0
  175. package/dist/build-server/taskFactory.js +1 -0
  176. package/dist/build-server/tasks/appserviceCompile/index.js +1 -0
  177. package/dist/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.js +1 -0
  178. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.js +1 -0
  179. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.js +1 -0
  180. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.js +1 -0
  181. package/dist/build-server/tasks/baseFileCompiler/OTService.js +1 -0
  182. package/dist/build-server/tasks/baseFileCompiler/enhance.js +1 -0
  183. package/dist/build-server/tasks/baseFileCompiler/es6module.js +1 -0
  184. package/dist/build-server/tasks/baseFileCompiler/index.js +1 -0
  185. package/dist/build-server/tasks/baseFileCompiler/javascript.js +1 -0
  186. package/dist/build-server/tasks/baseFileCompiler/less.js +1 -0
  187. package/dist/build-server/tasks/baseFileCompiler/minifywxml.js +1 -0
  188. package/dist/build-server/tasks/baseFileCompiler/readFile.js +1 -0
  189. package/dist/build-server/tasks/baseFileCompiler/sass.js +1 -0
  190. package/dist/build-server/tasks/baseFileCompiler/terser.js +1 -0
  191. package/dist/build-server/tasks/baseFileCompiler/typescript.js +1 -0
  192. package/dist/build-server/tasks/baseFileCompiler/worklet.js +1 -0
  193. package/dist/build-server/tasks/baseFileCompiler/wxss.js +1 -0
  194. package/dist/build-server/tasks/common/apperrcode.config.js +1 -0
  195. package/dist/build-server/tasks/common/compiletype.config.js +1 -0
  196. package/dist/build-server/tasks/common/constants.config.js +1 -0
  197. package/dist/build-server/tasks/common/simulatortype.config.js +1 -0
  198. package/dist/build-server/tasks/common/utils/appdevserver/getwxappcode.js +1 -0
  199. package/dist/build-server/tasks/common/utils/babel/babelhelpers.js +1 -0
  200. package/dist/build-server/tasks/common/utils/builder/builder.js +1 -0
  201. package/dist/build-server/tasks/common/utils/builder/filter.js +1 -0
  202. package/dist/build-server/tasks/common/utils/builder/index.js +1 -0
  203. package/dist/build-server/tasks/common/utils/cache/compile.js +1 -0
  204. package/dist/build-server/tasks/common/utils/cache/config.js +1 -0
  205. package/dist/build-server/tasks/common/utils/cache/filecompile.js +1 -0
  206. package/dist/build-server/tasks/common/utils/cache/jspersistcache.js +1 -0
  207. package/dist/build-server/tasks/common/utils/cache/manager.js +1 -0
  208. package/dist/build-server/tasks/common/utils/cache/persistcache.js +1 -0
  209. package/dist/build-server/tasks/common/utils/cache/reporter.js +1 -0
  210. package/dist/build-server/tasks/common/utils/colorutils.js +1 -0
  211. package/dist/build-server/tasks/common/utils/common/bindActionTools.js +1 -0
  212. package/dist/build-server/tasks/common/utils/common/schema.helper.js +1 -0
  213. package/dist/build-server/tasks/common/utils/common/tools.js +1 -0
  214. package/dist/build-server/tasks/common/utils/common/waitable.js +1 -0
  215. package/dist/build-server/tasks/common/utils/filerules.js +1 -0
  216. package/dist/build-server/tasks/common/utils/fsutils.js +1 -0
  217. package/dist/build-server/tasks/common/utils/handleError.js +1 -0
  218. package/dist/build-server/tasks/common/utils/helper/vendorValidate.js +1 -0
  219. package/dist/build-server/tasks/common/utils/interfacebuilder/registry/index.js +1 -0
  220. package/dist/build-server/tasks/common/utils/partialcompile.js +1 -0
  221. package/dist/build-server/tasks/common/utils/project/appconfig.js +1 -0
  222. package/dist/build-server/tasks/common/utils/project/appjson.js +1 -0
  223. package/dist/build-server/tasks/common/utils/project/customcomponent.js +1 -0
  224. package/dist/build-server/tasks/common/utils/project/generatecode.utils.js +1 -0
  225. package/dist/build-server/tasks/common/utils/project/getcompiledjs.js +1 -0
  226. package/dist/build-server/tasks/common/utils/project/helper/index.js +1 -0
  227. package/dist/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.js +1 -0
  228. package/dist/build-server/tasks/common/utils/project/helper/reserveddirectories.js +1 -0
  229. package/dist/build-server/tasks/common/utils/project/helper/theme.js +1 -0
  230. package/dist/build-server/tasks/common/utils/project/online/appconfig.js +1 -0
  231. package/dist/build-server/tasks/common/utils/project/pagejson.js +1 -0
  232. package/dist/build-server/tasks/common/utils/project/projectconfigjson.js +1 -0
  233. package/dist/build-server/tasks/common/utils/project/wxappcodejson.js +1 -0
  234. package/dist/build-server/tasks/common/utils/subpackageUtils.js +1 -0
  235. package/dist/build-server/tasks/common/utils/tracing/Trace.js +1 -0
  236. package/dist/build-server/tasks/common/utils/tracing/aegis.js +1 -0
  237. package/dist/build-server/tasks/common/utils/tracing/index.js +1 -0
  238. package/dist/build-server/tasks/common/utils/tracing/readiness.js +1 -0
  239. package/dist/build-server/tasks/common/utils/tracing/report.js +1 -0
  240. package/dist/build-server/tasks/common/utils/trans/transwxmltojs.js +1 -0
  241. package/dist/build-server/tasks/common/utils/transformsourcemap.js +1 -0
  242. package/dist/build-server/tasks/common/utils/web/glasseaselUtils.js +1 -0
  243. package/dist/build-server/tasks/common/utils/web/md5.js +1 -0
  244. package/dist/build-server/tasks/common/utils/web/processPath.js +1 -0
  245. package/dist/build-server/tasks/common/weapp.config.js +1 -0
  246. package/dist/build-server/tasks/pageInitSourceCompile/index.js +1 -0
  247. package/dist/build-server/tasks/pageframeCompile/index.js +1 -0
  248. package/dist/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.js +1 -0
  249. package/dist/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.js +1 -0
  250. package/dist/build-server/testAppConfig.js +1 -0
  251. package/dist/build-server/testAppservice.js +1 -0
  252. package/dist/build-server/testInitSourceCompile.js +1 -0
  253. package/dist/build-server/testPageframe.js +1 -0
  254. package/dist/build-server/testSubProcess.js +1 -0
  255. package/dist/build-server/utils/fileTask.js +1 -0
  256. package/dist/build-server/utils/getFileOrCache.js +1 -0
  257. package/dist/build-server/utils/process.js +1 -0
  258. package/dist/build-server/utils/request.js +1 -0
  259. package/dist/bussinessMonitor/monitor.js +1 -0
  260. package/dist/config/config.js +1 -1
  261. package/dist/index.js +1 -1
  262. package/dist/manifest.json +4 -0
  263. package/dist/modules/corecompiler/original/workerThread/task/func.js +1 -1
  264. package/dist/modules/corecompiler/processHandler.js +1 -1
  265. package/dist/modules/corecompiler/summer/pipeManager/index.js +1 -1
  266. package/dist/modules/corecompiler/summer/pipeManager/pipeCPProject.js +1 -1
  267. package/dist/modules/corecompiler/summer/pipeManager/pipeContext.js +1 -1
  268. package/dist/modules/corecompiler/summer/pipeManager/pipeManager.js +1 -1
  269. package/dist/modules/corecompiler/summer/pipeManager/pipeWorker.js +1 -1
  270. package/dist/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.js +1 -1
  271. package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.js +1 -1
  272. package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.js +1 -1
  273. package/dist/modules/corecompiler/summer/pipeManager/pipes/index.js +1 -1
  274. package/dist/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.js +1 -1
  275. package/dist/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.js +1 -1
  276. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.js +1 -1
  277. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.js +1 -1
  278. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.js +1 -1
  279. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.js +1 -1
  280. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.js +1 -1
  281. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.js +1 -1
  282. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.js +1 -1
  283. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.js +1 -1
  284. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.js +1 -1
  285. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.js +1 -1
  286. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.js +1 -1
  287. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.js +1 -1
  288. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.js +1 -1
  289. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.js +1 -1
  290. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.js +1 -1
  291. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.js +1 -1
  292. package/dist/modules/corecompiler/summer/pipeManager/pipes/wccPipe.js +1 -1
  293. package/dist/modules/corecompiler/summer/pipeManager/types.js +1 -1
  294. package/dist/modules/corecompiler/summerCompiler.js +1 -1
  295. package/dist/modules/fullcompiler/appservice/appservice.config.js +1 -0
  296. package/dist/modules/fullcompiler/appservice/generatecode.utils.js +1 -0
  297. package/dist/modules/fullcompiler/appservice/getappservice.js +1 -0
  298. package/dist/modules/fullcompiler/appservice/getcompiledjs.js +1 -0
  299. package/dist/modules/fullcompiler/appservice/getjsfile.js +1 -0
  300. package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +1 -0
  301. package/dist/modules/fullcompiler/appservice/getsubpackage.js +1 -0
  302. package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +1 -0
  303. package/dist/modules/fullcompiler/appservice/getwxappcode.js +1 -0
  304. package/dist/modules/fullcompiler/config/apperrcode.config.js +1 -0
  305. package/dist/modules/fullcompiler/filerules.js +1 -0
  306. package/dist/modules/fullcompiler/getallrawfiles.js +1 -0
  307. package/dist/modules/fullcompiler/getallwmltohtmlmap.js +1 -0
  308. package/dist/modules/fullcompiler/index.js +1 -0
  309. package/dist/modules/fullcompiler/pageframe/getsubpackage.js +1 -0
  310. package/dist/modules/fullcompiler/pageframe/getwxappcode.js +1 -0
  311. package/dist/modules/fullcompiler/pageframe/index.js +1 -0
  312. package/dist/modules/fullcompiler/trans/transwxmltojs.js +1 -0
  313. package/dist/modules/fullcompiler/trans/transwxsstojs.js +1 -0
  314. package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +1 -0
  315. package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +1 -0
  316. package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +1 -0
  317. package/dist/modules/fullcompiler/utils/appconfig/appjson.js +1 -0
  318. package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +1 -0
  319. package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +1 -0
  320. package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +1 -0
  321. package/dist/modules/fullcompiler/utils/filewriter/index.js +1 -0
  322. package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +1 -0
  323. package/dist/modules/fullcompiler/utils/handleerror/handleerror.js +1 -0
  324. package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +1 -0
  325. package/dist/modules/fullcompiler/utils/index.js +1 -0
  326. package/dist/modules/fullcompiler/utils/taskmanager.js +1 -0
  327. package/dist/modules/fullcompiler/utils/theme/index.js +1 -0
  328. package/dist/modules/fullcompiler/utils/tools.js +1 -0
  329. package/dist/modules/fullcompiler/utils/transformsourcemap.js +1 -0
  330. package/dist/project/serverProject.js +1 -0
  331. package/dist/services/app/server/appDirService.js +1 -0
  332. package/dist/services/builder/server/builder.js +1 -0
  333. package/dist/services/compileCacheManager/common/compileCacheManager.js +1 -0
  334. package/dist/services/compileCacheManager/nw/compileCacheManager.js +1 -0
  335. package/dist/services/compileCacheManager/server/compileCacheManager.js +1 -0
  336. package/dist/services/compilewxml/server/compilewxmlService.js +1 -0
  337. package/dist/services/compilewxml/server/wccWorker.js +1 -0
  338. package/dist/services/compilewxss/server/compilewxssService.js +1 -0
  339. package/dist/services/compilewxss/server/wcscWorker.js +1 -0
  340. package/dist/services/consoledisplay/server/consoledisplay.js +1 -0
  341. package/dist/services/fileUtilsManager/server/fileUtilsManager.js +1 -0
  342. package/dist/services/fs/server/fileService.js +1 -0
  343. package/dist/services/genTempFile/server/genTempFileService.js +1 -0
  344. package/dist/services/global/server/global.js +1 -0
  345. package/dist/services/initializeCheck/server/initializeCheck.js +1 -0
  346. package/dist/services/locales/server/const.js +1 -0
  347. package/dist/services/locales/server/locales.js +1 -0
  348. package/dist/services/log/server/logService.js +1 -0
  349. package/dist/services/miniappjson/server/miniappjson.js +1 -0
  350. package/dist/services/multiTaskManager/server/multiTaskManager.js +1 -0
  351. package/dist/services/multiTaskManager/server/pm2TaskWorker.js +1 -0
  352. package/dist/services/multiTaskManager/server/pm2WorkerManager.js +1 -0
  353. package/dist/services/nativeModule/server/nativeModule.js +1 -0
  354. package/dist/services/performance/server/performance.js +1 -0
  355. package/dist/services/pluginFileReader/server/pluginFileReader.js +1 -0
  356. package/dist/services/projectManager/server/buildServerProjectManager.js +1 -0
  357. package/dist/services/projectManager/server/projectManager.js +1 -0
  358. package/dist/services/root/server/root.js +1 -0
  359. package/dist/services/root/server/rootService.js +1 -0
  360. package/dist/services/staticConfig/server/staticConfigService.js +1 -0
  361. package/dist/services/store/server/storeService.js +1 -0
  362. package/dist/services/uniapp/server/uniapp.js +1 -0
  363. package/dist/utils/subprocess/processService.js +1 -1
  364. package/package.json +3 -60
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- #### 2.1.33
1
+ #### 2.1.34
2
2
  - `new` 支持 terser 升级为 5.27.1
3
3
  #### 2.1.32
4
4
  - `fix` 修复 多端构建不结束的问题
package/README.md CHANGED
@@ -7,7 +7,7 @@ miniprogram-ci 是从[微信开发者工具](https://developers.weixin.qq.com/mi
7
7
  miniprogram-ci 从 1.0.28 开始支持第三方平台开发的上传和预览,调用方式与普通开发模式无异。[查看详情](#第三方平台开发)
8
8
 
9
9
  ## 最近变更
10
- #### 2.1.33
10
+ #### 2.1.34
11
11
  - `new` 支持 terser 升级为 5.27.1
12
12
  #### 2.1.32
13
13
  - `fix` 修复 多端构建不结束的问题
@@ -0,0 +1,42 @@
1
+ export declare const errors: {
2
+ 1000: {
3
+ code: number;
4
+ msg: string;
5
+ };
6
+ 1001: {
7
+ code: number;
8
+ msg: string;
9
+ };
10
+ 1002: {
11
+ code: number;
12
+ msg: string;
13
+ };
14
+ 1003: {
15
+ code: number;
16
+ msg: string;
17
+ };
18
+ 10000: {
19
+ code: number;
20
+ errmsg: string;
21
+ };
22
+ 10001: {
23
+ code: number;
24
+ errmsg: string;
25
+ };
26
+ 10002: {
27
+ code: number;
28
+ errmsg: string;
29
+ };
30
+ 10003: {
31
+ code: number;
32
+ errmsg: string;
33
+ };
34
+ 10004: {
35
+ code: number;
36
+ errmsg: string;
37
+ };
38
+ 10005: {
39
+ code: number;
40
+ errmsg: string;
41
+ };
42
+ };
@@ -0,0 +1,2 @@
1
+ import { AsyncLocalStorage } from 'async_hooks';
2
+ export declare const optionsStorage: AsyncLocalStorage<string>;
@@ -0,0 +1,43 @@
1
+ import type { RedisClientType } from 'redis';
2
+ import type { EventEmitter } from 'events';
3
+ type IFileCache = {
4
+ compileResult: string;
5
+ [importFilePath: string]: string;
6
+ };
7
+ declare class FileCacheManager {
8
+ redisClient: RedisClientType & EventEmitter;
9
+ cacheProjectInfo: Record<string, {
10
+ success: boolean;
11
+ fileList: {
12
+ name: string;
13
+ key: string;
14
+ lastModifiedTime: number;
15
+ size: number;
16
+ createTime: number;
17
+ }[];
18
+ message: string;
19
+ }>;
20
+ private autoDisConnectInterval;
21
+ transformFilePathToCacheKey: (projectId: string, versionId: string, filePath: string, taskLinks: string[], lastModifiedTime: number) => string;
22
+ getFileCache: (data: {
23
+ ticket: string;
24
+ projectId: string;
25
+ versionId: string;
26
+ snapshotId: string;
27
+ fileTask: {
28
+ filePath: string;
29
+ taskLinks: string[];
30
+ };
31
+ }) => Promise<{
32
+ success: boolean;
33
+ data: any;
34
+ }>;
35
+ constructor();
36
+ autoDisConnectRedis: () => void;
37
+ checkRedisConnected: () => Promise<void>;
38
+ get(fileKey: string): Promise<IFileCache | null>;
39
+ setCache(fileKey: string, fileCache: IFileCache, expireSeconds?: number): Promise<'OK' | null>;
40
+ justTestRedis(fileKey: string): Promise<any>;
41
+ }
42
+ declare const _default: FileCacheManager;
43
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import type { ITaskResult, IBuildFileTaskList, IBuildFileTask, IReqOptions } from './type';
2
+ import { TaskFactory } from './taskFactory';
3
+ type IRespTask = {
4
+ result: string;
5
+ tasks: IBuildFileTask[];
6
+ };
7
+ type IRespTasks = IRespTask[];
8
+ declare class TaskDriver {
9
+ taskResult: Record<string, IRespTasks>;
10
+ waitTaskList: Record<string, Function>;
11
+ formatErrorMsg(error: {
12
+ code: number;
13
+ errmsg: string;
14
+ }, msg: string): {
15
+ errmsg: string;
16
+ code: number;
17
+ };
18
+ registerWaitTask(taskId: string, task: Function): void;
19
+ finishWaitTask(taskId: string, taskResult: ITaskResult): void;
20
+ execTask(task: IBuildFileTask, resultFilePath: string, mainTaskId: string, taskId: string): Promise<{
21
+ taskId: string;
22
+ success: boolean;
23
+ result: string;
24
+ errmsg: string;
25
+ }>;
26
+ generateTaskFunc(task: IBuildFileTask, mainTaskId: string, resultFilePath: string, TaskClass: TaskFactory, fileTask: IRespTask): (resolve: Function, reject: Function) => Promise<void>;
27
+ doSubTask(tasks: IBuildFileTask[], mainTaskId: string, resultFilePath: string, TaskClass: TaskFactory, fileTask: IRespTask): Promise<void>;
28
+ formatTaskConfigToTaskList(options: IReqOptions, taskConfig: IBuildFileTaskList): IRespTasks;
29
+ checkTaskCompileType(task: IBuildFileTaskList): {
30
+ success: boolean;
31
+ errmsg?: string;
32
+ };
33
+ doTask(options: IReqOptions, taskConfig: IBuildFileTaskList, TaskClass: TaskFactory): void;
34
+ }
35
+ declare const _default: TaskDriver;
36
+ export default _default;
@@ -0,0 +1 @@
1
+ import '~/services/root/server/rootService';
@@ -0,0 +1,8 @@
1
+ import type { IFinishSubTask, IBuildServerAllowedTaskName } from './type';
2
+ declare class SubTaskManager {
3
+ subTaskList: Record<string, Record<string, Function>>;
4
+ addSubTask(option: string, data: Record<string, any>, taskName: IBuildServerAllowedTaskName): Promise<unknown>;
5
+ onSubTaskFinish(payload: IFinishSubTask): Promise<void>;
6
+ }
7
+ declare const _default: SubTaskManager;
8
+ export default _default;
@@ -0,0 +1,68 @@
1
+ import pm2 from 'pm2';
2
+ import type { IBuildServerAllowedTaskName, ProcessDataType, IPacketData, IBuildTask, IBuildTaskList, ITaskResult, IReqOptions } from './type';
3
+ import { TaskFactory } from './taskFactory';
4
+ type Proc = pm2.ProcessDescription & {
5
+ taskNum: number;
6
+ pendingTask: Function[];
7
+ pm_id: number;
8
+ };
9
+ type IFinishFunc = (taskResult: ITaskResult) => void;
10
+ declare class TaskDriver {
11
+ isTaskServerStart: boolean;
12
+ processList: Array<Proc>;
13
+ taskResult: Record<string, IBuildTaskList>;
14
+ waitTaskList: Record<string, Function>;
15
+ private taskCleanupTimers;
16
+ private memoryMonitorInterval;
17
+ constructor();
18
+ private startMemoryMonitor;
19
+ private stopMemoryMonitor;
20
+ initialize(): void;
21
+ addSubTask(data: {
22
+ pmId: number;
23
+ mainTaskId: string;
24
+ subTaskId: string;
25
+ data: Record<string, any>;
26
+ options?: IReqOptions;
27
+ taskName?: IBuildServerAllowedTaskName;
28
+ }): void;
29
+ listenSubProcessMsg(): void;
30
+ startAllProcess(): void;
31
+ killAllProcess(): void;
32
+ startProcess(instances: number, name: string): void;
33
+ formatErrorMsg(error: {
34
+ code: number;
35
+ errmsg: string;
36
+ }, msg: string): {
37
+ errmsg: string;
38
+ code: number;
39
+ };
40
+ private getMinimumTaskProcess;
41
+ sendTask(data: ProcessDataType, pmId?: number): Promise<{
42
+ success: boolean;
43
+ data: any;
44
+ }>;
45
+ registerWaitTask(taskId: string, task: Function): void;
46
+ finishWaitTask(taskId: string, taskResult: IPacketData): void;
47
+ doSendTask(task: IBuildTask, resultFilePath: string, mainTaskId: string, taskId: string, tryTime?: number): Promise<{
48
+ success: boolean;
49
+ data: any;
50
+ }>;
51
+ generateTaskFunc(task: IBuildTask, mainTaskId: string, taskInstance: TaskFactory, resultFilePath: string): (resolve: Function, reject: Function) => Promise<void>;
52
+ checkTaskCompileType(taskList: IBuildTaskList): {
53
+ success: true;
54
+ } | {
55
+ success: false;
56
+ errmsg: {
57
+ code: number;
58
+ errmsg: string;
59
+ };
60
+ };
61
+ doTask(data: {
62
+ options: IReqOptions;
63
+ taskList: IBuildTaskList;
64
+ finishFunc: IFinishFunc;
65
+ }): void;
66
+ }
67
+ declare const _default: TaskDriver;
68
+ export default _default;
@@ -0,0 +1,22 @@
1
+ export declare class TaskFactory {
2
+ allTaskResult: any[];
3
+ tasks: {
4
+ result: any[];
5
+ taskStatus: 'doing' | 'success';
6
+ pendingTask: Function[];
7
+ }[];
8
+ allDone: number;
9
+ allDoneTask: undefined | Function;
10
+ finishFunc: Function;
11
+ constructor(finishFunc: Function);
12
+ doTask(taskId: number): void;
13
+ finishTask(taskId: number): void;
14
+ checkAllDone(): void;
15
+ remoteTask(func: Function, taskId?: number): this;
16
+ localTask(func: Function, taskId?: number): this;
17
+ newRemoteTask(func: Function): this;
18
+ newLocalTask(func: Function): this;
19
+ getTaskResult(callback: Function, taskId?: number): void;
20
+ waitAllTaskDone(callback: Function): void;
21
+ stopAllTask(): void;
22
+ }
@@ -0,0 +1 @@
1
+ export declare function getAppserviceCore(project: IBackendProject): Promise<string>;
@@ -0,0 +1,5 @@
1
+ export declare function getInitJS(mainContentScript: string[]): void;
2
+ export declare function getJSCodeBuild(project: any, mainContentScript: string[], hasAppJS: boolean, pageFiles: string[], componentFiles: string[], functionalPageFiles: string[], otherFiles: string[], allFiles: string[]): Promise<void>;
3
+ export declare function getBabelCodeByName(project: any, modName: string): Promise<string>;
4
+ export declare function getBabelHelperAndDepsCode(project: any, babelHelpers: any): Promise<Map<any, any>>;
5
+ export declare function getAppCode(project: any, mainContentScript: string[], wxmlXCJS: any, componentFiles: string[], pageFiles: string[]): Promise<void>;
@@ -0,0 +1,19 @@
1
+ interface IGetJSFileOptions {
2
+ force?: boolean;
3
+ noWarnings?: boolean;
4
+ injectHelpers?: boolean;
5
+ injectHelpersSync?: boolean;
6
+ isGame?: boolean;
7
+ isWorkerFile?: boolean;
8
+ sourceURL?: string;
9
+ noCache?: boolean;
10
+ forceSync?: boolean;
11
+ }
12
+ declare function getJsFile(project: IProject, fileName: string, options?: IGetJSFileOptions): Promise<{
13
+ code: string;
14
+ helpers: string[];
15
+ map: import("source-map").RawSourceMap | undefined;
16
+ mtime: number | undefined;
17
+ hasPersistJSCacheHit: boolean | undefined;
18
+ }>;
19
+ export = getJsFile;
@@ -0,0 +1,10 @@
1
+ declare const getMainPkgSortedJSFiles: (project: IProject) => Promise<{
2
+ hasAppJS: boolean;
3
+ allFiles: string[];
4
+ pageFiles: string[];
5
+ functionalPageFiles: string[];
6
+ workerFiles: string[];
7
+ componentFiles: string[];
8
+ otherFiles: string[];
9
+ }>;
10
+ export = getMainPkgSortedJSFiles;
@@ -0,0 +1,23 @@
1
+ declare function getWxAppCode(project: IProject, requireDirectly?: boolean): Promise<any>;
2
+ declare function getWxAppCodeOfPage(project: IProject, pathName: string, genFnName: string, requireDirectly?: boolean): Promise<string>;
3
+ declare function getWxAppCodeJsonOfPage(project: IProject, pathName: string): Promise<string>;
4
+ declare function getWxAppCodeWxmlOfPage(project: IProject, pathName: string, wxmlGenFnName: string): string;
5
+ declare function getWxAppCodeRequireScriptOfPage(project: IProject, pathName: string): string;
6
+ declare function getWxAppCodeForAddComponentStaticConfig(project: IProject, pathName: string): Promise<string>;
7
+ declare function getWxAppCodeForBatchAddCompiledTemplate(glassEaselTemplateResult: Record<string, string>): string;
8
+ declare function getWxAppCodeForBatchAddCompiledScripts(glassEaselScriptResult: string): string;
9
+ declare function getWxAppCodeAddTemplateDependencies(wxmlDependencies: Record<string, string[]>): string;
10
+ declare function getWxAppCodeForSetRuntimeGlobal(runtimeGlobal: string, gdcContent: string): string;
11
+ declare const _default: {
12
+ getWxAppCode: typeof getWxAppCode;
13
+ getWxAppCodeOfPage: typeof getWxAppCodeOfPage;
14
+ getWxAppCodeJsonOfPage: typeof getWxAppCodeJsonOfPage;
15
+ getWxAppCodeWxmlOfPage: typeof getWxAppCodeWxmlOfPage;
16
+ getWxAppCodeRequireScriptOfPage: typeof getWxAppCodeRequireScriptOfPage;
17
+ getWxAppCodeForAddComponentStaticConfig: typeof getWxAppCodeForAddComponentStaticConfig;
18
+ getWxAppCodeForBatchAddCompiledTemplate: typeof getWxAppCodeForBatchAddCompiledTemplate;
19
+ getWxAppCodeForBatchAddCompiledScripts: typeof getWxAppCodeForBatchAddCompiledScripts;
20
+ getWxAppCodeAddTemplateDependencies: typeof getWxAppCodeAddTemplateDependencies;
21
+ getWxAppCodeForSetRuntimeGlobal: typeof getWxAppCodeForSetRuntimeGlobal;
22
+ };
23
+ export = _default;
@@ -0,0 +1,7 @@
1
+ export declare const getFileContent: (data: {
2
+ projectId: string;
3
+ versionId: string;
4
+ filePath: string;
5
+ ticket: string;
6
+ snapshotId: string;
7
+ }) => Promise<never>;
@@ -0,0 +1,29 @@
1
+ import { AstType } from '~/config/config';
2
+ import { ICompileResult } from './javascript';
3
+ import { MiniProgramSummer } from '~/types';
4
+ export declare function getEnhancePluginsList(opt: {
5
+ supportWorklet?: boolean;
6
+ }): any[][];
7
+ export declare const enhance: (source: MiniProgramSummer.SourceDescription, id: string) => Promise<{
8
+ sourceCode: string;
9
+ inputMap: MiniProgramSummer.SourceMap | undefined;
10
+ astInfo: {
11
+ readonly ast: import("@babel/types").File;
12
+ readonly type: AstType.Babel;
13
+ };
14
+ }>;
15
+ export declare function doTransform(source: MiniProgramSummer.SourceDescription, sourceId: string, babelRoot: string, disableUseStrict: boolean): Promise<MiniProgramSummer.SourceDescription>;
16
+ export declare function shouldEnhance(targetPath: string, source: MiniProgramSummer.SourceDescription, isBabelIgnore: boolean): boolean;
17
+ export declare function performEnhanceTransform(source: MiniProgramSummer.SourceDescription, sourcePath: string, targetPath: string, options: {
18
+ independentRoot?: string;
19
+ isBabelIgnore?: boolean;
20
+ disableUseStrict?: boolean;
21
+ }, pluginName?: string): Promise<{
22
+ source: MiniProgramSummer.SourceDescription;
23
+ process: Array<{
24
+ cost: number;
25
+ pluginName: string;
26
+ action: string;
27
+ }>;
28
+ }>;
29
+ export declare const enhanceTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;
@@ -0,0 +1,44 @@
1
+ import { MiniProgramCore, MiniProgramSummer } from '~/types';
2
+ import { ICompileResult } from './javascript';
3
+ export declare function getES6ModulePluginsList(allowTopLevelThis: boolean): any[][];
4
+ export declare function getBabelRoot(independentRoot: string): string;
5
+ export declare function transformES6ModuleAndGenCode(id: string, source: MiniProgramSummer.SourceDescription, options: {
6
+ babelRoot: string;
7
+ disableUseStrict: boolean;
8
+ }): Promise<{
9
+ code: string;
10
+ map: {
11
+ version: number;
12
+ sources: string[];
13
+ names: string[];
14
+ sourceRoot?: string | undefined;
15
+ sourcesContent?: string[] | undefined;
16
+ mappings: string;
17
+ file: string;
18
+ };
19
+ helpers: string[];
20
+ }>;
21
+ export declare function doGenerate(sourcePath: string, source: MiniProgramSummer.SourceDescription, options: {
22
+ babelRoot: string;
23
+ disableUseStrict: boolean;
24
+ resultType: MiniProgramCore.IResultType;
25
+ }): Promise<MiniProgramSummer.GenerateDescription>;
26
+ export declare function performES6ModuleGenerate(source: MiniProgramSummer.SourceDescription, sourcePath: string, targetPath: string, options: {
27
+ independentRoot?: string;
28
+ isBabelIgnore?: boolean;
29
+ disableUseStrict?: boolean;
30
+ resultType?: MiniProgramCore.IResultType;
31
+ }, pluginName?: string, doGenerateFn?: (id: string, source: MiniProgramSummer.SourceDescription, options: {
32
+ babelRoot: string;
33
+ disableUseStrict: boolean;
34
+ resultType: MiniProgramCore.IResultType;
35
+ }) => Promise<MiniProgramSummer.GenerateDescription>): Promise<{
36
+ target?: MiniProgramSummer.GenerateDescription;
37
+ process: Array<{
38
+ cost: number;
39
+ pluginName: string;
40
+ action: string;
41
+ options?: any;
42
+ }>;
43
+ }>;
44
+ export declare const es6moduleTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;
@@ -0,0 +1,3 @@
1
+ import { IBuildFileTaskList } from '~/build-server/type';
2
+ export declare const loadTask: (taskName: string) => Function | null;
3
+ export declare const compileBaseFile: (tasks: IBuildFileTaskList) => Promise<unknown>;
@@ -0,0 +1,36 @@
1
+ import { MiniProgramCore, MiniProgramSummer } from '~/types';
2
+ export { MAX_CODE_LENGTH, } from '~/config/config';
3
+ export interface ICompileResult {
4
+ targetPath: string;
5
+ source: {
6
+ sourceCode: string;
7
+ sourcePath: string;
8
+ inputMap: MiniProgramSummer.SourceMap | undefined;
9
+ astInfo: MiniProgramSummer.AstInfo | undefined;
10
+ largeFile: boolean;
11
+ mtime: number;
12
+ };
13
+ target: {
14
+ code: string;
15
+ map: MiniProgramSummer.SourceMap | undefined;
16
+ helpers: string[];
17
+ resultType: MiniProgramCore.IResultType;
18
+ };
19
+ process: MiniProgramSummer.IPluginProcessInfo[];
20
+ }
21
+ export declare function shouldLoadJavaScript(sourcePath: string): boolean;
22
+ export declare function createJavaScriptLoadResult(code: string, sourcePath: string, targetPath: string, mtime?: number, pluginName?: string): Promise<{
23
+ targetPath: string;
24
+ source: MiniProgramSummer.SourceDescription;
25
+ process: MiniProgramSummer.IPluginProcessInfo[];
26
+ }>;
27
+ export declare function performJavaScriptLoad(sourcePath: string, targetPath: string, getFileContent: (relativePath: string) => string | Promise<string>, getFileStat?: (relativePath: string) => ({
28
+ mtimeMs?: number;
29
+ } | undefined) | Promise<{
30
+ mtimeMs?: number;
31
+ } | undefined>, pluginName?: string): Promise<{
32
+ targetPath: string;
33
+ source: MiniProgramSummer.SourceDescription;
34
+ process: MiniProgramSummer.IPluginProcessInfo[];
35
+ } | undefined>;
36
+ export declare const javascriptTask: (sourcePath: string, targetPath: string, options: any, result: ICompileResult) => Promise<ICompileResult | undefined>;
@@ -0,0 +1,43 @@
1
+ import { ICompileResult } from './javascript';
2
+ import { MiniProgramSummer } from '~/types';
3
+ export declare const importWxssReg: RegExp;
4
+ export declare const importWxssCssReg: RegExp;
5
+ export declare function genServerFileManagerPlugin(options: {
6
+ projectId: string;
7
+ versionId: string;
8
+ snapshotId: string;
9
+ ticket: string;
10
+ }): {
11
+ install(less: LessStatic, pluginManager: Less.PluginManager): void;
12
+ };
13
+ export declare function processWxssImports(code: string): {
14
+ processedCode: string;
15
+ wxssImports: string[];
16
+ };
17
+ export declare function processLessOutput(output: Less.RenderOutput, wxssImports: string[], projectPath?: string): {
18
+ wxss: string;
19
+ map: any;
20
+ };
21
+ export declare function renderLessCode(code: string, sourcePath: string, options?: {
22
+ globalVars?: any;
23
+ plugins?: Less.Plugin[];
24
+ paths?: string[];
25
+ sourceMap?: boolean;
26
+ }): Promise<Less.RenderOutput>;
27
+ export declare function performLessLoad(targetPath: string, sourcePath: string, options: {
28
+ getFileContent: (relativePath: string) => string | Promise<string>;
29
+ getAppImport?: (relativePath: string) => string | Promise<string>;
30
+ globalVars?: any;
31
+ plugins?: Less.Plugin[];
32
+ paths?: string[];
33
+ projectPath?: string;
34
+ addWatchFile?: (file: string) => void;
35
+ }, pluginName?: string): Promise<{
36
+ targetPath: string;
37
+ source: {
38
+ sourceCode: string;
39
+ inputMap: any;
40
+ };
41
+ process: MiniProgramSummer.IPluginProcessInfo[];
42
+ } | undefined>;
43
+ export declare const lessTask: (sourcePath: string, targetPath: string, options: any, result: ICompileResult) => Promise<any>;
@@ -0,0 +1,10 @@
1
+ import { MiniProgramCore } from '~/types';
2
+ import { ICompileResult } from './javascript';
3
+ import { IMinifySetting } from '~/modules/corecompiler/original/workerThread/task/minifywxml';
4
+ export interface IWxmlOptions {
5
+ minify: boolean;
6
+ }
7
+ export declare function doCompress(content: string, filePath: string, setting: IMinifySetting): Promise<string>;
8
+ export declare function shouldCompressWxml(targetPath: string, minify: boolean, resultType: string): boolean;
9
+ export declare function createMinifySettings(project?: MiniProgramCore.IPreCompileProject, targetPath?: string): IMinifySetting;
10
+ export declare const minifywxmlTask: (options: any, result: ICompileResult) => Promise<ICompileResult | undefined>;
@@ -0,0 +1,2 @@
1
+ import { ICompileResult } from './javascript';
2
+ export declare const readFileTask: (sourcePath: string, targetPath: string, options: any, result: ICompileResult) => Promise<ICompileResult>;
@@ -0,0 +1,50 @@
1
+ import { MiniProgramSummer } from '~/types';
2
+ import { ICompileResult } from './javascript';
3
+ export declare const sass: () => Promise<typeof import("sass")>;
4
+ export declare function random(): string;
5
+ export declare const importWxssReg: RegExp;
6
+ export declare const importCssReg: RegExp;
7
+ export declare function sassRender(options: any, cb: (err: any, result?: any) => void): Promise<void>;
8
+ export declare function shouldLoadSass(sourcePath: string): boolean;
9
+ export declare function processWxssImports(code: string): {
10
+ processedCode: string;
11
+ wxssImports: string[];
12
+ };
13
+ export declare function processSassOutput(result: any, wxssImports: string[], sourcePath: string, sourceRoot?: string): {
14
+ wxss: string;
15
+ map: any;
16
+ };
17
+ export declare function performSassLoad(targetPath: string, sourcePath: string, options: {
18
+ getFileContent: (relativePath: string) => string | Promise<string>;
19
+ getGlobalImport?: (relativePath: string) => string | Promise<string>;
20
+ includePaths?: string[];
21
+ addWatchFile?: (file: string) => void;
22
+ sourceRoot?: string;
23
+ [key: string]: any;
24
+ }, pluginName?: string): Promise<{
25
+ targetPath: string;
26
+ source: {
27
+ sourceCode: string;
28
+ inputMap: any;
29
+ };
30
+ process: Array<{
31
+ cost: number;
32
+ pluginName: string;
33
+ action: MiniProgramSummer.AsyncPluginHooks;
34
+ }>;
35
+ } | undefined>;
36
+ export declare const sassTask: (sourcePath: string, targetPath: string, options: any, result: ICompileResult) => Promise<{
37
+ targetPath: string;
38
+ source: {
39
+ sourceCode: string;
40
+ inputMap: any;
41
+ };
42
+ target: {
43
+ code: string;
44
+ };
45
+ process: {
46
+ cost: number;
47
+ pluginName: string;
48
+ action: MiniProgramSummer.AsyncPluginHooks;
49
+ }[];
50
+ } | undefined>;
@@ -0,0 +1,20 @@
1
+ import { MiniProgramCore } from '~/types';
2
+ import { ICompileResult } from './javascript';
3
+ export declare const terser: () => typeof import("terser");
4
+ export declare const babelCodeFrame: () => typeof import("babel-code-frame");
5
+ export declare function shouldRunTerser(options: MiniProgramCore.ICompileOptions, targetPath: string, minify?: boolean): boolean;
6
+ export declare function buildSourceMapOptions(map: any, filename: string): {
7
+ includeSources: boolean;
8
+ content: any;
9
+ filename: string;
10
+ };
11
+ export declare function makeTerserProcessRecord(startTime: number, pluginName: string): {
12
+ cost: number;
13
+ pluginName: string;
14
+ action: "compress";
15
+ };
16
+ export declare function doCompress(content: string, sourceMapOptions: any): Promise<import("terser").MinifyOutput | {
17
+ error: any;
18
+ }>;
19
+ export declare function handleTerserError(error: any, content: string, id: string): void;
20
+ export declare const terserTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;
@@ -0,0 +1,25 @@
1
+ import { MiniProgramSummer } from '~/types';
2
+ import { ICompileResult } from './javascript';
3
+ export declare const babel7: () => typeof import("@babel/core");
4
+ export declare const pluginTransformTypescript: () => any;
5
+ export declare function shouldRunTypescript(sourcePath: string): boolean;
6
+ export declare function makeTypescriptProcessRecord(startTime: number, pluginName: string): {
7
+ cost: number;
8
+ pluginName: string;
9
+ action: "load";
10
+ };
11
+ export declare function doLoad(code: string, file: string, inputMap?: any): Promise<MiniProgramSummer.SourceDescription>;
12
+ export declare function doLoadSync(code: string, file: string, inputMap?: any): MiniProgramSummer.SourceDescription;
13
+ export declare const pluginReplaceTsExportAssignment: (api: any) => {
14
+ name: string;
15
+ visitor: {
16
+ TSExportAssignment(path: any): void;
17
+ };
18
+ };
19
+ export declare const pluginReplaceTsImportEqualsDeclaration: (api: any) => {
20
+ name: string;
21
+ visitor: {
22
+ TSImportEqualsDeclaration(path: any): void;
23
+ };
24
+ };
25
+ export declare const typescriptTask: (sourcePath: string, targetPath: string, options: any, result: ICompileResult) => Promise<ICompileResult>;
@@ -0,0 +1,13 @@
1
+ import { MiniProgramSummer } from '~/types';
2
+ import { ICompileResult } from './javascript';
3
+ export declare const _pluginTransformWorklet: () => any;
4
+ export declare const babel7: () => typeof import("@babel/core");
5
+ export declare function shouldRunWorklet(targetPath: string, isBabelIgnore: boolean): boolean;
6
+ export declare function hasWorkletCode(sourceCode: string): boolean;
7
+ export declare function makeWorkletProcessRecord(startTime: number, pluginName: string): {
8
+ cost: number;
9
+ pluginName: string;
10
+ action: "transform";
11
+ };
12
+ export declare const worklet: (source: MiniProgramSummer.SourceDescription, id: string) => Promise<MiniProgramSummer.SourceDescription>;
13
+ export declare const workletTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;
@@ -0,0 +1,33 @@
1
+ import { MiniProgramCore } from '~/types';
2
+ import { ICompileResult } from './javascript';
3
+ export interface IWxssOptions {
4
+ autoPrefix: boolean;
5
+ minify: boolean;
6
+ }
7
+ export declare const MAX_LINE_SHOW_LENGTH = 45;
8
+ export declare function shortString(line: string, max: number, mid?: number): {
9
+ result: string;
10
+ marker: number;
11
+ };
12
+ export declare function formatPostcssError(content: string, error: any): any;
13
+ export declare function shouldOptimizeWxss(targetPath: string, resultType: MiniProgramCore.IResultType, autoPrefix: boolean, minify: boolean): boolean;
14
+ export declare function doOptimize(sourcePath: string, sourceContent: string, options?: {
15
+ autoPrefix?: boolean;
16
+ minify?: boolean;
17
+ }): Promise<{
18
+ error: any;
19
+ content?: string;
20
+ }>;
21
+ export declare function performWxssOptimize(targetPath: string, code: string, options: {
22
+ resultType: MiniProgramCore.IResultType;
23
+ autoPrefix?: boolean;
24
+ minify?: boolean;
25
+ }, pluginName?: string): Promise<{
26
+ code: string;
27
+ process: Array<{
28
+ cost: number;
29
+ pluginName: string;
30
+ action: string;
31
+ }>;
32
+ } | undefined>;
33
+ export declare const wxssTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;