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
@@ -0,0 +1,35 @@
1
+ import { Builder } from '../../../../..';
2
+ import { SingletonTask } from '~/utils/singletontask';
3
+ export interface IBuilderOptions {
4
+ targetPlatform: string;
5
+ targetPlatformDefines?: {
6
+ [key: string]: any;
7
+ };
8
+ }
9
+ export type IBuilderType = 'simulator';
10
+ interface IbuilderInfo {
11
+ builder?: Builder;
12
+ project?: IProject | null;
13
+ createPromise?: SingletonTask;
14
+ }
15
+ export declare class BuilderTransaction {
16
+ doing: boolean;
17
+ compileOpts: IBuilderOptions | null;
18
+ start(opts: IBuilderOptions): void;
19
+ end(): void;
20
+ }
21
+ export declare class BuilderFactory {
22
+ builderMap: {
23
+ [type: string]: IbuilderInfo;
24
+ };
25
+ getBuilder(project: IProject, type: IBuilderType, opts: IBuilderOptions): Promise<Builder>;
26
+ private shouldCreate;
27
+ private destoryBuilder;
28
+ private createBuilder;
29
+ private getIBInjectPageConfig;
30
+ private getFinalDisableSWC;
31
+ private getCompileOptions;
32
+ }
33
+ export declare const builderFactory: BuilderFactory;
34
+ export declare const getBuilder: (project: IProject, type: IBuilderType, opts: IBuilderOptions) => Promise<Builder>;
35
+ export {};
@@ -0,0 +1 @@
1
+ export declare function filterFactory(project: IProject, resultType: 'dev' | 'prod' | 'preview'): Promise<(graphId: string, abFilePath: string) => number>;
@@ -0,0 +1,10 @@
1
+ import { BaseCoreCompiler, Builder } from '../../../../..';
2
+ import { IGetBuilderOptions } from '~/services/builder/common/builder';
3
+ import { BuilderTransaction } from './builder';
4
+ export declare const builderTransaction: BuilderTransaction;
5
+ export declare const getBuilder: (project: IProject, opts?: IGetBuilderOptions) => Promise<Builder>;
6
+ export declare const getCompiler: (project: IProject, opts?: IGetBuilderOptions) => Promise<BaseCoreCompiler>;
7
+ export declare function isCodeFile(fileName: string): Promise<boolean>;
8
+ export declare function getRelatedExts(ext: 'js' | 'wxml' | 'wxss' | 'json' | 'wxs'): Promise<string[]>;
9
+ export declare function getStyleRelatedExt(absPagePath: string, useCache?: boolean): Promise<string>;
10
+ export declare function getDestFilePath(localFile: string): string;
@@ -0,0 +1,72 @@
1
+ export declare const CacheKey: {
2
+ readonly gameAppConfig: "gameAppConfig";
3
+ readonly gameAppService: "gameAppService";
4
+ readonly gameMainPkg: "gameMainPkg";
5
+ readonly gameSubPkg: "gameSubPkg";
6
+ readonly gameSubContextFrame: "gameSubContextFrame";
7
+ readonly gameSubContextPkg: "gameSubContextPkg";
8
+ readonly gameAppBundle: "gameAppBundle";
9
+ readonly gameSubBundle: "gameSubBundle";
10
+ readonly gameWorkerBundle: "gameWorkerBundle";
11
+ readonly miniProgramAppService: "miniProgramAppService";
12
+ readonly miniProgramSubContextFrame: "miniProgramSubContextFrame";
13
+ readonly miniProgramSubPkg: "miniProgramSubPkg";
14
+ readonly miniProgramSubPkgBase: "miniProgramSubPkgBase";
15
+ readonly miniProgramMFRSubPkg: "miniProgramMFRSubPkg";
16
+ readonly miniProgramSubPkgPage: "miniProgramSubPkgPage";
17
+ readonly miniProgramAppServiceWXAppCode: "miniProgramAppServiceWXAppCode";
18
+ readonly miniProgramAppServiceWXAppCodePageMap: "miniProgramAppServiceWXAppCodePageMap";
19
+ readonly miniProgramMainPkg: "miniProgramMainPkg";
20
+ readonly miniProgramMainPkgBase: "miniProgramMainPkgBase";
21
+ readonly miniProgramMainPkgPage: "miniProgramMainPkgPage";
22
+ readonly miniProgramAppConfig: "miniProgramAppConfig";
23
+ readonly miniProgramAppConfigDarkMode: "miniProgramAppConfigDarkMode";
24
+ readonly miniProgramSiteMapJSON: "miniProgramSiteMap";
25
+ readonly miniProgramPageFrame: "miniProgramPageFrame";
26
+ readonly miniProgramPageFrameWXAppCode: "miniProgramPageFrameWXAppCode";
27
+ readonly miniProgramWxss: "miniProgramWxss";
28
+ readonly miniProgramWxssLazyload: "miniProgramWxssLazyload";
29
+ readonly miniProgramWxssSkyline: "miniProgramWxssSkyline";
30
+ readonly miniProgramWxmlComplete: "miniProgramWxmlComplete";
31
+ readonly miniProgramWxmlCut: "miniProgramWxmlCut";
32
+ readonly miniProgramWxmlCompleteLazyload: "miniProgramWxmlCompleteLazyload";
33
+ readonly miniProgramWxmlCutLazylaod: "miniProgramWxmlCutLazylaod";
34
+ readonly miniProgramWxmlGlassEasel: "miniProgramWxmlGlassEasel";
35
+ readonly miniProgramWxmlPageCompleteLazyload: "miniProgramWxmlPageCompleteLazyload";
36
+ readonly miniProgramWxmlPageCutLazylaod: "miniProgramWxmlPageCutLazylaod";
37
+ readonly miniProgramCustomComponentConfig: "miniProgramCustomComponentConfig";
38
+ readonly miniProgramCompiledPageJSON: "miniProgramCompiledPageJSON";
39
+ readonly miniProgramCompiledAppJSON: "miniProgramCompiledAppJSON";
40
+ readonly miniProgramWXAppCodeJSON: "miniProgramWXAppCodeJSON";
41
+ readonly miniProgramAppBundle: "miniProgramAppBundle";
42
+ readonly miniProgramSubBundle: "miniProgramSubBundle";
43
+ readonly miniProgramWorkerBundle: "miniProgramWorkerBundle";
44
+ readonly miniProgramPath: "miniProgramPath";
45
+ readonly miniProgramPageFrameInstanceFrame: "miniProgramPageFrameInstanceFrame";
46
+ readonly pluginAppService: "pluginAppService";
47
+ readonly pluginWxss: "pluginWxss";
48
+ readonly pluginWxssLazyLoad: "pluginWxssLazyLoad";
49
+ readonly pluginWxml: "pluginWxml";
50
+ readonly pluginWxmlGlassEasel: "pluginWxmlGlassEasel";
51
+ readonly pluginWxmlLazyLoad: "pluginWxmlLazyLoad";
52
+ readonly pluginWxmlPageLazyLoad: "pluginWxmlPageLazyLoad";
53
+ readonly pluginPageFrame: "pluginPageFrame";
54
+ readonly pluginPageFrameBase: "pluginPageFrameBase";
55
+ readonly pluginCompiledJSON: "pluginCompiledJSON";
56
+ readonly pluginCompiledDarkModeJSON: "pluginCompiledDarkModeJSON";
57
+ readonly pluginCompiledPageJSON: "pluginCompiledPageJSON";
58
+ readonly pluginCustomComponentConfig: "pluginCustomComponentConfig";
59
+ readonly pluginWxssSkyline: "pluginWxssSkyline";
60
+ };
61
+ export declare const get: (key: string) => any;
62
+ export declare const set: (key: string, value: string) => void;
63
+ declare function generateFilePesistCacheKey(project: IProject, otherSeeds: any[]): string;
64
+ declare const _default: {
65
+ get: (key: string) => any;
66
+ set: (key: string, value: string) => void;
67
+ getFile: (filePath: string, infoKey?: string, useEngineIDE?: boolean) => Promise<any>;
68
+ setFile: (filePath: string, value: any, infoKey?: string) => void;
69
+ clean: (project: IProject) => Promise<void>;
70
+ generateFilePesistCacheKey: typeof generateFilePesistCacheKey;
71
+ };
72
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export declare enum CacheType {
2
+ ONLINE_PLUGIN = "ONLINE_PLUGIN",
3
+ OPTIONAL_CONFIG = "OPTIONAL_CONFIG",
4
+ UPLOAD_COMPILE_FILES = "UPLOAD_COMPILE_FILES",
5
+ UPLOAD_GAME_COMPILE_FILES = "UPLOAD_GAME_COMPILE_FILES",
6
+ NETWORK_RESPONSE = "NETWORK_RESPONSE",
7
+ UGLIFY_FILE_NAMES_MAPPING = "UGLIFY_FILE_NAMES_MAPPING",
8
+ DEV_GENERATE_COMPILE = "DEV_GENERATE_COMPILE",
9
+ DEV_FILE_COMPILE = "DEV_FILE_COMPILE",
10
+ STORAGE = "STORAGE",
11
+ BACKGROUND_STORAGE = "BACKGROUND_STORAGE",
12
+ GLOBAL_STORAGE = "GLOBAL_STORAGE",
13
+ BUFFER_URL_CONTENT = "BUFFER_URL_CONTENT",
14
+ EXPT_INFO_DATA = "EXPT_INFO_DATA",
15
+ DEV_PLUGIN_PERMISSION = "DEV_PLUGIN_PERMISSION"
16
+ }
@@ -0,0 +1,16 @@
1
+ import PersistCache from './persistcache';
2
+ export declare class FileCompileCache {
3
+ private _jsPersistCache;
4
+ private _memoryJSCacheInfo;
5
+ private get _memoryJsCacheSize();
6
+ get cache(): any;
7
+ setPersistCache(instance: PersistCache): void;
8
+ getFile(filePath: string, infoKey?: string, useEngineIDE?: boolean): Promise<any>;
9
+ getFileWithoutPersistCache(filePath: string, infoKey?: string): Promise<any>;
10
+ setFile(filePath: string, value: any, infoKey?: string): void;
11
+ setFileWithoutPersistCache(filePath: string, value: any, infoKey?: string): void;
12
+ private limitJsCacheSize;
13
+ private caclJsFileRelatedCacheSize;
14
+ removeFile(filePath: string): void;
15
+ clean(withPersist?: boolean): void;
16
+ }
@@ -0,0 +1,11 @@
1
+ import PersistCache from './persistcache';
2
+ import { ICompileResult } from '~/build-server/type';
3
+ export declare class JSCompileResultPersistCache {
4
+ private _persistCache;
5
+ constructor(persistCache: PersistCache);
6
+ setPersistCache(instance: PersistCache): void;
7
+ get(absolutePath: string, infoKey: string): Promise<ICompileResult | undefined>;
8
+ set(absolutePath: string, value: any, infoKey: string): Promise<void>;
9
+ remove(absolutePath: string): Promise<void>;
10
+ clean(): Promise<void>;
11
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from 'events';
2
+ import { CacheType } from './config';
3
+ export interface ICache {
4
+ updateTime: number;
5
+ value: any;
6
+ }
7
+ export type ValidCacheType = keyof typeof CacheType;
8
+ export { CacheType } from './config';
9
+ export declare const createCacheProxy: (type?: string, fn?: FN<void>) => IStringKeyMap<any>;
10
+ declare class CacheManger extends EventEmitter {
11
+ private _cache;
12
+ onInnerProxyCacheChange: (type: ValidCacheType, prop: string, value: any) => void;
13
+ get(type: ValidCacheType): any;
14
+ clean(type?: ValidCacheType): void;
15
+ getCacheValue(type: ValidCacheType, key: string): any;
16
+ }
17
+ declare const manager: CacheManger;
18
+ export default manager;
@@ -0,0 +1,17 @@
1
+ interface IPersistData {
2
+ info?: {
3
+ encoding?: null | 'utf8';
4
+ [key: string]: any;
5
+ };
6
+ data?: Buffer | string | Uint8Array;
7
+ }
8
+ export default class PersistCache {
9
+ private _path;
10
+ constructor(project: IProject);
11
+ private getFilePath;
12
+ get(key: string): Promise<IPersistData>;
13
+ set(key: string, data: IPersistData): Promise<void>;
14
+ remove(key: string): Promise<void>;
15
+ clean(): Promise<void>;
16
+ }
17
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const ReportCacheKey: any;
2
+ export declare const compileCacheReporter: {
3
+ hitCache: (key: string) => void;
4
+ startGenCache: (key: string) => void;
5
+ finishGenCache: (key: string) => void;
6
+ hitFileCache: (filePath: string) => void;
7
+ startGenFileCache: (filePath: string) => Promise<void>;
8
+ finishGenFileCache: (filePath: string) => Promise<void>;
9
+ };
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ isHexColor: (hex: string) => boolean;
3
+ };
4
+ export = _default;
@@ -0,0 +1,8 @@
1
+ type ReturnResultIfFunction<T> = T extends (...args: any[]) => any ? (ReturnType<T> extends (...args: any[]) => infer R ? (...args: Parameters<T>) => R : T) : T;
2
+ type UnWrapFunction<T> = T extends (...args: any) => any ? (ReturnResultIfFunction<T>) : T;
3
+ type UnWrapValue<T> = T extends (...args: any) => any ? UnWrapFunction<T> : {
4
+ [key in keyof T]: UnWrapFunction<T[key]>;
5
+ };
6
+ type BindActionCreators = <T>(first: T, ...args: any) => UnWrapValue<T>;
7
+ export declare const bindActionCreators: BindActionCreators;
8
+ export {};
@@ -0,0 +1,17 @@
1
+ import { normalizePath, isLeftSubPathOfRight } from '../web/processPath';
2
+ export { bindActionCreators } from './bindActionTools';
3
+ export { isLeftSubPathOfRight, normalizePath, };
4
+ export declare const assignDeep: FN;
5
+ export declare function isEmptyObject(obj: any): boolean;
6
+ export declare function filterData(original: any, update: any, allowedType: string, allowedValues?: any): any;
7
+ export declare const preferBooleanWhenNotUndefinedOrNull: (v: any) => any;
8
+ export declare const preferUndefinedWhenEmptyString: (v?: string) => string | undefined;
9
+ export declare const undefinedOrNullOrBoolean: (v: any) => any;
10
+ export declare function merge(target: any, partial: any, customizer?: FN): any;
11
+ export declare function getType(object: any): string;
12
+ export declare const camelCaseObj: (obj: Object) => any;
13
+ export type MakeDeepReadonly = <T>(first: T) => DR<T>;
14
+ export declare const makeDeepReadonly: MakeDeepReadonly;
15
+ export declare function escapeScript(str: string): string;
16
+ export declare function escapeQuot(str: string, type?: string): string;
17
+ export declare function wrapCodeByEval(code: string): string;
@@ -0,0 +1,14 @@
1
+ type FN<R = any> = (...args: any[]) => R;
2
+ declare class WaitAble<T> {
3
+ protected _ready: boolean;
4
+ protected _waitForReadyQueue: Array<{
5
+ resolve: FN<void>;
6
+ reject: FN;
7
+ }>;
8
+ protected _waitPromise?: Promise<T>;
9
+ wait(fn?: FN): Promise<T>;
10
+ checkIsReady(): Promise<T> | undefined;
11
+ makeReady(result?: any): void;
12
+ makeError(error: Error): void;
13
+ }
14
+ export default WaitAble;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ isFileHidedInDevtools: (file: string, ignoreRule: any, includeRule?: any) => any;
3
+ isFileIgnored: (file: string, ignoreRule: any, includeRule?: any) => any;
4
+ isFileIncluded: (file: string, ignoreRule: any, includeRule?: any) => any;
5
+ factory: (_comment: string) => (file: string, ignoreRule: any, includeRule?: any) => any;
6
+ isIngoreByProjectConfig: (project: IProject, filePath: string) => string | undefined;
7
+ getIgnoreRulesByProjectConfig: (project: IProject) => string[];
8
+ isFileIgnoredInTempFolder: (filePath: string) => any;
9
+ isInEngineTempFile: (filePath: string, project: IProject) => boolean;
10
+ isShouldntIgnoreInGameEnginePage: (filePath: string) => any;
11
+ shouldIgnoreInGameEngineSimulator: (filePath: string) => any;
12
+ };
13
+ export = _default;
@@ -0,0 +1,7 @@
1
+ export declare function rmSync(filePath: string): void;
2
+ export declare function cleanRedundanSync(src: string, dist: string): void;
3
+ export declare function mvSync(src: string, dist: string): void;
4
+ export declare const normalizeFileMode: (mode: number | string) => string;
5
+ export declare function mkdirSync(dist: string): void;
6
+ export declare function cpSync(src: string, dist: string): void;
7
+ export declare function safeRmDir(dirPath: string, cb: FN<void>): void;
@@ -0,0 +1,22 @@
1
+ export interface IInterfaceBuilderRegistry {
2
+ set: (id: IInterfaceBuilderRegistryType, helper: any) => void;
3
+ get: <T = any>(id: IInterfaceBuilderRegistryType) => Void<T>;
4
+ }
5
+ export declare const enum IInterfaceBuilderRegistryType {
6
+ getActiveWXML = 0,
7
+ getActiveWXSS = 1,
8
+ getActiveJS = 2,
9
+ getLaunchInfo = 3,
10
+ updateStatusMask = 4,
11
+ setSimulatorWindow = 5,
12
+ getBussinessUsingComponents = 6,
13
+ getAllComponentsPath = 7,
14
+ getAllFolderComponents = 8
15
+ }
16
+ declare class InterfaceBuilderRegistry implements IInterfaceBuilderRegistry {
17
+ private map;
18
+ set(id: IInterfaceBuilderRegistryType, valueOrDescriptor: any): void;
19
+ get<T = any>(id: IInterfaceBuilderRegistryType): Void<T>;
20
+ }
21
+ export declare const interfaceBuilderRegistry: InterfaceBuilderRegistry;
22
+ export {};
@@ -0,0 +1,5 @@
1
+ declare function getAppConfig(project: IProject, forceDarkMode?: boolean): Promise<DR<AppConfig.IAppConfig>>;
2
+ declare const _default: {
3
+ getAppConfig: typeof getAppConfig;
4
+ };
5
+ export = _default;
@@ -0,0 +1,2 @@
1
+ declare const getCompiledAppJSON: (project: IProject) => Promise<any>;
2
+ export = getCompiledAppJSON;
@@ -0,0 +1,20 @@
1
+ interface IComponentsConfigReturn {
2
+ [p: string]: {
3
+ file: string;
4
+ config: DR<AppConfig.ISubpackageItem> | undefined;
5
+ pageJSON: IPageJSON;
6
+ };
7
+ }
8
+ declare function getFileListJustInPack(project: IProject, appConfig: DR<AppConfig.IAppConfig>, config?: DR<AppConfig.ISubpackageItem>): Promise<string[]>;
9
+ declare function getWxssCompileConfig(project: IProject, appConfig: DR<AppConfig.IAppConfig>, config?: DR<AppConfig.ISubpackageItem>): Promise<string[]>;
10
+ declare function getWxmlCompileConfig(project: IProject, appConfig: DR<AppConfig.IAppConfig>, config?: DR<AppConfig.ISubpackageItem>): Promise<any[]>;
11
+ declare function getWxmlCompileLazyConfig(project: IProject, appConfig: DR<AppConfig.IAppConfig>, config?: DR<AppConfig.ISubpackageItem>): Promise<string[]>;
12
+ declare const _default: {
13
+ getFileListJustInPack: typeof getFileListJustInPack;
14
+ getWxssCompileConfig: typeof getWxssCompileConfig;
15
+ getWxmlCompileConfig: typeof getWxmlCompileConfig;
16
+ getWxmlCompileLazyConfig: typeof getWxmlCompileLazyConfig;
17
+ getCustomComponentsConfig: (project: IProject, appConfig: DR<AppConfig.IAppConfig>) => Promise<IComponentsConfigReturn>;
18
+ findSubpackageForFile: (file: string, appConfig: DR<AppConfig.IAppConfig>) => DR<AppConfig.ISubpackageItem> | undefined;
19
+ };
20
+ export = _default;
@@ -0,0 +1,5 @@
1
+ import { RawSourceMap } from 'source-map';
2
+ export declare function inlineSourceMap(sourceCode: string, sourceMap?: string | RawSourceMap, sourceURL?: string): string;
3
+ export declare function inlineSourceMapFile(sourceCode: string, sourceMapPath?: string): string;
4
+ export declare function wrapSourceCodeInDefine(filename: string, sourceCode: string, inject?: string): string;
5
+ export declare function wrapGameSourceCodeInDefine(filename: string, sourceCode: string, inject?: string): string;
@@ -0,0 +1,30 @@
1
+ import { ICompileResult } from '~/build-server/type';
2
+ export type CompileResultType = 'production' | 'dev';
3
+ export interface IRuntimeJSResult {
4
+ code: string;
5
+ helpers: string[];
6
+ }
7
+ interface IInterCompileResult extends ICompileResult {
8
+ helpers: string[];
9
+ }
10
+ interface IGetCompiledJSOptions {
11
+ relativePath: string;
12
+ fileName: string;
13
+ resultType: CompileResultType;
14
+ nameMapping?: IStringKeyMap;
15
+ type: 'game' | 'gamePlugin' | 'miniProgram' | 'miniProgramPlugin';
16
+ onAfterRun?: FN<void>;
17
+ sourceCode?: string;
18
+ useEngineIDE?: boolean;
19
+ }
20
+ export declare const getCompiledJS: (project: IProject, options: IGetCompiledJSOptions) => Promise<ICompileResult>;
21
+ export interface IGetRuntimeJSOptions {
22
+ type: 'game' | 'gamePlugin' | 'miniProgram' | 'miniProgramPlugin';
23
+ fileName: string;
24
+ sourceURL?: string;
25
+ noCache?: boolean;
26
+ injectHelpersSync?: boolean;
27
+ }
28
+ export declare function hasPersistJSCache(project: IProject, relativePath: string, fileName: string): Promise<IInterCompileResult | undefined>;
29
+ export declare function getRuntimeJS(project: IProject, options: IGetRuntimeJSOptions): Promise<ICompileResult>;
30
+ export {};
@@ -0,0 +1,21 @@
1
+ declare function getPluginPages(): string[];
2
+ declare function getMiniprogramPages(): string[];
3
+ declare function getPagesInDir(relativePath: string, type: 'miniprogram' | 'plugin'): string[];
4
+ declare function getAccountCardComponentConfig(): {
5
+ root: string;
6
+ cardList: Array<{
7
+ type: number;
8
+ componentPath: string;
9
+ }>;
10
+ } | undefined;
11
+ declare const _default: {
12
+ getAllPages: (appConfig: AppConfig.IAppConfig) => string[];
13
+ checkIsUseXRFrame: (project: IProject, appConfig: DR<AppConfig.IAppConfig>) => Promise<boolean>;
14
+ checkIsUseGlassEasel: (project: IProject) => Promise<boolean>;
15
+ checkIsUseCompilerPlugins: (project: IProject) => boolean | undefined;
16
+ getPluginPages: typeof getPluginPages;
17
+ getMiniprogramPages: typeof getMiniprogramPages;
18
+ getPagesInDir: typeof getPagesInDir;
19
+ getAccountCardComponentConfig: typeof getAccountCardComponentConfig;
20
+ };
21
+ export = _default;
@@ -0,0 +1,142 @@
1
+ export declare const RootConfigKeys: {
2
+ readonly qcloudRoot: "腾讯云 wafer 方案目录";
3
+ readonly miniprogramRoot: "小程序代码的目录";
4
+ readonly srcMiniprogramRoot: "小程序源码的目录";
5
+ readonly pluginRoot: "插件目录";
6
+ readonly cloudfunctionRoot: "云函数目录";
7
+ readonly cloudfunctionTemplateRoot: "云函数本地调试模板目录";
8
+ readonly cloudcontainerRoot: "云容器目录";
9
+ readonly cloudbaseRoot: "cloudbaseRoot";
10
+ readonly jsserverRoot: "小游戏 jsserver 目录";
11
+ readonly testRoot: "自动化测试脚本录制的存放目录";
12
+ };
13
+ export declare const PrivateValidSettingKeys: {
14
+ readonly urlCheck: "检测合法域名";
15
+ readonly autoAudits: "自动运行体验评分";
16
+ readonly compileHotReLoad: "热重载";
17
+ readonly ignoreDevUnusedFiles: "预览、真机调试和本地模拟器等开发阶段是否过滤无依赖文件";
18
+ readonly ignoreCodeQuality: "预览、真机调试和上传等开发阶段是否忽略代码质量检测";
19
+ readonly preloadBackgroundData: "小程序加载时是否数据预拉取";
20
+ readonly lazyloadPlaceholderEnable: "是否启用懒注入占位组件调试";
21
+ readonly skylineRenderEnable: "是否开启 skyline 渲染调试";
22
+ readonly useGlassEaselForWxml: "使用 glass-easel WXML 语法";
23
+ readonly checkInvalidKey: "是否展示 JSON 文件校验错误信息";
24
+ readonly useIsolateContext: "是否开启小程序独立域调试特性";
25
+ readonly useApiHook: "是否启用 API Hook 功能";
26
+ readonly coverView: "使用工具来渲染coverView,因为之前是使用基础库渲染的";
27
+ readonly showShadowRootInWxmlPanel: "在 wxml 显示 shadow root";
28
+ readonly showES6CompileOption: "是否在本地设置中展示传统的 ES6 转 ES5 开关";
29
+ readonly useStaticServer: "小游戏本地资源服务器";
30
+ readonly useLanDebug: "仅在小游戏有效,是否开启局域网调试服务器";
31
+ readonly bigPackageSizeSupport: "预览及真机调试时主包、分包体积上限调整为4M";
32
+ };
33
+ export declare const formatGameConditionList: (conditionList: any[]) => {
34
+ pathName: any;
35
+ name: any;
36
+ query: any;
37
+ scene: any;
38
+ shareInfo: any;
39
+ referrerInfo: any;
40
+ chatroomUsernameInfo: any;
41
+ groupInfo: any;
42
+ }[];
43
+ export declare const formatGamePluginConditionList: (conditionList: any[]) => {
44
+ name: any;
45
+ query: any;
46
+ scene: any;
47
+ shareInfo: any;
48
+ referrerInfo: any;
49
+ groupInfo: any;
50
+ }[];
51
+ export declare const formatMPPluginConditionList: (conditionList: any[]) => {
52
+ name: any;
53
+ pathName: any;
54
+ query: any;
55
+ launchMode: any;
56
+ scene: any;
57
+ shareInfo: any;
58
+ referrerInfo: any;
59
+ groupInfo: any;
60
+ }[];
61
+ export declare const formatMPConditionList: (conditionList: any[]) => {
62
+ name: any;
63
+ pathName: any;
64
+ query: any;
65
+ launchMode: any;
66
+ scene: any;
67
+ partialCompile: any;
68
+ shareInfo: any;
69
+ referrerInfo: any;
70
+ chatroomUsernameInfo: any;
71
+ groupInfo: any;
72
+ chatToolsMsg: any;
73
+ chatToolsType: any;
74
+ }[];
75
+ export declare const formatRuleOptions: (sources: IProjectConfigPackOption[]) => {
76
+ value: string;
77
+ type: string;
78
+ }[];
79
+ export declare function filterValid(partial: IStringKeyMap): IStringKeyMap<any>;
80
+ export declare const formatUseCompilerPlugins: (setting: IProjectSetting) => boolean | (string | [string, {
81
+ [x: string]: any;
82
+ }])[];
83
+ export declare function slimWatchOptions(config: IStringKeyMap): {
84
+ ignore: any[];
85
+ } | undefined;
86
+ export declare function slimDebugOptionsOptions(config: IStringKeyMap): {
87
+ hidedInDevtools: {
88
+ value: string;
89
+ type: string;
90
+ }[];
91
+ } | undefined;
92
+ export declare function slimSkeletonConfig(config: {
93
+ global: IStringKeyMap;
94
+ pages: IStringKeyMap;
95
+ }): {
96
+ global: IStringKeyMap<any>;
97
+ pages: IStringKeyMap<any>;
98
+ } | undefined;
99
+ export declare function slimSWCSetting(setting: IProjectSetting): {
100
+ ignore?: string[];
101
+ outputPath?: string;
102
+ rc?: IStringKeyMap;
103
+ } | undefined;
104
+ export declare function slimMinifyWXMLSetting(setting: IProjectSetting): {
105
+ [filePath: string]: {
106
+ collapseWhitespace?: boolean;
107
+ conservativeCollapse?: boolean;
108
+ preserveLineBreaks?: boolean;
109
+ };
110
+ global: {
111
+ collapseWhitespace?: boolean;
112
+ conservativeCollapse?: boolean;
113
+ preserveLineBreaks?: boolean;
114
+ };
115
+ } | undefined;
116
+ export declare function slimIfEmptyObjectOrAllKeyWithEmptyStringValue(config: IStringKeyMap, key: string): IStringKeyMap<any> | undefined;
117
+ export declare const PrivateFirstKeys: {
118
+ readonly libVersion: "基础库版本";
119
+ readonly condition: "编译条件";
120
+ readonly projectname: "项目名";
121
+ };
122
+ export declare function needToWritePrivateFirst(partial: IStringKeyMap): boolean;
123
+ export declare const filterPrivateSetting: (setting?: IStringKeyMap) => IStringKeyMap<any>;
124
+ export declare function needToWritePrivateSettingFirst(partial: IStringKeyMap): boolean;
125
+ export declare function splitPartialEffectResult(options: {
126
+ refer: IStringKeyMap;
127
+ config: IStringKeyMap;
128
+ judge: FN<boolean>;
129
+ }): {
130
+ privatePartial: IStringKeyMap<any>;
131
+ commonPartial: {
132
+ [propName: string]: any;
133
+ };
134
+ };
135
+ export declare function splitPartialEffectResult2(partialChange: IStringKeyMap, judge: FN<boolean>): {
136
+ privatePartial: IStringKeyMap<any>;
137
+ commonPartial: IStringKeyMap<any>;
138
+ };
139
+ export declare const normalizePath: (pathName?: string) => string;
140
+ export declare function formatProjectConfigPartialValue(updateData: IStringKeyMap): {
141
+ [propName: string]: any;
142
+ };
@@ -0,0 +1,3 @@
1
+ export declare const getReservedDirectoryPatterns: (miniprogramRoot?: string) => string[];
2
+ export declare function checkReservedDirectories(project: IProject): void;
3
+ export declare function checkReservedDirectoriesAsync(project: IProject): Promise<void>;
@@ -0,0 +1,39 @@
1
+ export declare function checkTabbarListItemIconPath(prefix: string, absolutePath: string): any[];
2
+ export declare function checkThemeRules(projectPath: string): {
3
+ windowConfigRules: ({
4
+ key: string;
5
+ valids: string[];
6
+ hexColor?: undefined;
7
+ } | {
8
+ key: string;
9
+ hexColor: boolean;
10
+ valids?: undefined;
11
+ })[];
12
+ tabbarRules: ({
13
+ key: string;
14
+ hexColor: boolean;
15
+ valids?: undefined;
16
+ } | {
17
+ key: string;
18
+ valids: string[];
19
+ hexColor?: undefined;
20
+ })[];
21
+ tabbarListItemRules: {
22
+ key: string;
23
+ validate: (key: string, value: string) => void;
24
+ }[];
25
+ };
26
+ export declare function getDefaultWindowConfig(isDarkMode: boolean): {
27
+ backgroundColor: string;
28
+ backgroundTextStyle: string;
29
+ };
30
+ export declare function checkVariables(options: {
31
+ isDarkMode: boolean;
32
+ themeLocation: string;
33
+ filePath: string;
34
+ windowConfig: IStringKeyMap;
35
+ themeJSON: IStringKeyMap;
36
+ rules: any[];
37
+ keyPrefix: string;
38
+ isPlugin?: boolean;
39
+ }): void;
@@ -0,0 +1,2 @@
1
+ declare const getCompiledPageJSON: (project: IProject, pagePath: string) => Promise<any>;
2
+ export = getCompiledPageJSON;
@@ -0,0 +1,8 @@
1
+ export declare const PROJECT_CONFIG_FILE_NAME = "project.config.json";
2
+ export declare const PROJECT_PRIVATE_FILE_NAME = "project.private.config.json";
3
+ export declare function getDefaultProjectSetting(inited?: Partial<IProjectSetting>): IProjectSetting;
4
+ export declare function mergeProjectConfigs(commonConfig?: IProjectConfig, privateConfig?: IProjectConfig, defaultSetting?: IProjectSetting): IProjectConfig;
5
+ export declare function buildProjectFromConfigs(inited: Partial<IBackendProject> & {
6
+ projectpath: string;
7
+ versionId: string;
8
+ }, fileConfig: IProjectConfig): Promise<IBackendProject>;
@@ -0,0 +1,2 @@
1
+ declare function getWXAppCodeJSON(project: IProject, pagePath: string): Promise<any>;
2
+ export = getWXAppCodeJSON;