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.
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/dist/@types/build-server/constant.d.ts +42 -0
- package/dist/@types/build-server/ctxManager.d.ts +2 -0
- package/dist/@types/build-server/fileCacheManager.d.ts +43 -0
- package/dist/@types/build-server/fileTaskDriver.d.ts +36 -0
- package/dist/@types/build-server/subProcess.d.ts +1 -0
- package/dist/@types/build-server/subTaskManager.d.ts +8 -0
- package/dist/@types/build-server/taskDriver.d.ts +68 -0
- package/dist/@types/build-server/taskFactory.d.ts +22 -0
- package/dist/@types/build-server/tasks/appserviceCompile/index.d.ts +1 -0
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.d.ts +5 -0
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.d.ts +19 -0
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.d.ts +10 -0
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.d.ts +23 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/OTService.d.ts +7 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/enhance.d.ts +29 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/es6module.d.ts +44 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/index.d.ts +3 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/javascript.d.ts +36 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/less.d.ts +43 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/minifywxml.d.ts +10 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/readFile.d.ts +2 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/sass.d.ts +50 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/terser.d.ts +20 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/typescript.d.ts +25 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/worklet.d.ts +13 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/wxss.d.ts +33 -0
- package/dist/@types/build-server/tasks/common/apperrcode.config.d.ts +92 -0
- package/dist/@types/build-server/tasks/common/compiletype.config.d.ts +17 -0
- package/dist/@types/build-server/tasks/common/constants.config.d.ts +549 -0
- package/dist/@types/build-server/tasks/common/simulatortype.config.d.ts +15 -0
- package/dist/@types/build-server/tasks/common/utils/appdevserver/getwxappcode.d.ts +3 -0
- package/dist/@types/build-server/tasks/common/utils/babel/babelhelpers.d.ts +11 -0
- package/dist/@types/build-server/tasks/common/utils/builder/builder.d.ts +35 -0
- package/dist/@types/build-server/tasks/common/utils/builder/filter.d.ts +1 -0
- package/dist/@types/build-server/tasks/common/utils/builder/index.d.ts +10 -0
- package/dist/@types/build-server/tasks/common/utils/cache/compile.d.ts +72 -0
- package/dist/@types/build-server/tasks/common/utils/cache/config.d.ts +16 -0
- package/dist/@types/build-server/tasks/common/utils/cache/filecompile.d.ts +16 -0
- package/dist/@types/build-server/tasks/common/utils/cache/jspersistcache.d.ts +11 -0
- package/dist/@types/build-server/tasks/common/utils/cache/manager.d.ts +18 -0
- package/dist/@types/build-server/tasks/common/utils/cache/persistcache.d.ts +17 -0
- package/dist/@types/build-server/tasks/common/utils/cache/reporter.d.ts +9 -0
- package/dist/@types/build-server/tasks/common/utils/colorutils.d.ts +4 -0
- package/dist/@types/build-server/tasks/common/utils/common/bindActionTools.d.ts +8 -0
- package/dist/@types/build-server/tasks/common/utils/common/schema.helper.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/common/tools.d.ts +17 -0
- package/dist/@types/build-server/tasks/common/utils/common/waitable.d.ts +14 -0
- package/dist/@types/build-server/tasks/common/utils/filerules.d.ts +13 -0
- package/dist/@types/build-server/tasks/common/utils/fsutils.d.ts +7 -0
- package/dist/@types/build-server/tasks/common/utils/handleError.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/helper/vendorValidate.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/interfacebuilder/registry/index.d.ts +22 -0
- package/dist/@types/build-server/tasks/common/utils/partialcompile.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/project/appconfig.d.ts +5 -0
- package/dist/@types/build-server/tasks/common/utils/project/appjson.d.ts +2 -0
- package/dist/@types/build-server/tasks/common/utils/project/customcomponent.d.ts +20 -0
- package/dist/@types/build-server/tasks/common/utils/project/generatecode.utils.d.ts +5 -0
- package/dist/@types/build-server/tasks/common/utils/project/getcompiledjs.d.ts +30 -0
- package/dist/@types/build-server/tasks/common/utils/project/helper/index.d.ts +21 -0
- package/dist/@types/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.d.ts +142 -0
- package/dist/@types/build-server/tasks/common/utils/project/helper/reserveddirectories.d.ts +3 -0
- package/dist/@types/build-server/tasks/common/utils/project/helper/theme.d.ts +39 -0
- package/dist/@types/build-server/tasks/common/utils/project/online/appconfig.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/project/pagejson.d.ts +2 -0
- package/dist/@types/build-server/tasks/common/utils/project/projectconfigjson.d.ts +8 -0
- package/dist/@types/build-server/tasks/common/utils/project/wxappcodejson.d.ts +2 -0
- package/dist/@types/build-server/tasks/common/utils/subpackageUtils.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/Trace.d.ts +50 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/aegis.d.ts +3 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/index.d.ts +34 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/readiness.d.ts +11 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/report.d.ts +14 -0
- package/dist/@types/build-server/tasks/common/utils/trans/transwxmltojs.d.ts +28 -0
- package/dist/@types/build-server/tasks/common/utils/transformsourcemap.d.ts +1 -0
- package/dist/@types/build-server/tasks/common/utils/web/glasseaselUtils.d.ts +1 -0
- package/dist/@types/build-server/tasks/common/utils/web/md5.d.ts +2 -0
- package/dist/@types/build-server/tasks/common/utils/web/processPath.d.ts +9 -0
- package/dist/@types/build-server/tasks/common/weapp.config.d.ts +108 -0
- package/dist/@types/build-server/tasks/pageInitSourceCompile/index.d.ts +2 -0
- package/dist/@types/build-server/tasks/pageframeCompile/index.d.ts +1 -0
- package/dist/@types/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.d.ts +8 -0
- package/dist/@types/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.d.ts +26 -0
- package/dist/@types/build-server/testAppConfig.d.ts +1 -0
- package/dist/@types/build-server/testAppservice.d.ts +1 -0
- package/dist/@types/build-server/testInitSourceCompile.d.ts +1 -0
- package/dist/@types/build-server/testPageframe.d.ts +1 -0
- package/dist/@types/build-server/testSubProcess.d.ts +1 -0
- package/dist/@types/build-server/utils/fileTask.d.ts +5 -0
- package/dist/@types/build-server/utils/getFileOrCache.d.ts +24 -0
- package/dist/@types/build-server/utils/process.d.ts +0 -0
- package/dist/@types/build-server/utils/request.d.ts +47 -0
- package/dist/@types/bussinessMonitor/monitor.d.ts +1 -0
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/index.d.ts +0 -2
- package/dist/@types/modules/corecompiler/original/workerThread/task/func.d.ts +0 -4
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +0 -4
- package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +4 -0
- package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +9 -0
- package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +32 -0
- package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +7 -0
- package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +13 -0
- package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +48 -0
- package/dist/@types/modules/fullcompiler/filerules.d.ts +5 -0
- package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/index.d.ts +31 -0
- package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +13 -0
- package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +21 -0
- package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +14 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +14 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +9 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/handleerror.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +42 -0
- package/dist/@types/modules/fullcompiler/utils/index.d.ts +4 -0
- package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +23 -0
- package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +40 -0
- package/dist/@types/modules/fullcompiler/utils/tools.d.ts +15 -0
- package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +1 -0
- package/dist/@types/project/serverProject.d.ts +38 -0
- package/dist/@types/services/app/server/appDirService.d.ts +6 -0
- package/dist/@types/services/builder/server/builder.d.ts +4 -0
- package/dist/@types/services/compileCacheManager/common/compileCacheManager.d.ts +23 -0
- package/dist/@types/services/compileCacheManager/nw/compileCacheManager.d.ts +16 -0
- package/dist/@types/services/compileCacheManager/server/compileCacheManager.d.ts +26 -0
- package/dist/@types/services/compilewxml/server/compilewxmlService.d.ts +5 -0
- package/dist/@types/services/compilewxml/server/wccWorker.d.ts +1 -0
- package/dist/@types/services/compilewxss/server/compilewxssService.d.ts +4 -0
- package/dist/@types/services/compilewxss/server/wcscWorker.d.ts +1 -0
- package/dist/@types/services/consoledisplay/server/consoledisplay.d.ts +4 -0
- package/dist/@types/services/fileUtilsManager/server/fileUtilsManager.d.ts +4 -0
- package/dist/@types/services/fs/server/fileService.d.ts +27 -0
- package/dist/@types/services/genTempFile/server/genTempFileService.d.ts +3 -0
- package/dist/@types/services/global/server/global.d.ts +6 -0
- package/dist/@types/services/initializeCheck/server/initializeCheck.d.ts +4 -0
- package/dist/@types/services/locales/server/const.d.ts +5 -0
- package/dist/@types/services/locales/server/locales.d.ts +5 -0
- package/dist/@types/services/log/server/logService.d.ts +9 -0
- package/dist/@types/services/miniappjson/server/miniappjson.d.ts +4 -0
- package/dist/@types/services/multiTaskManager/server/multiTaskManager.d.ts +5 -0
- package/dist/@types/services/multiTaskManager/server/pm2TaskWorker.d.ts +1 -0
- package/dist/@types/services/multiTaskManager/server/pm2WorkerManager.d.ts +18 -0
- package/dist/@types/services/nativeModule/server/nativeModule.d.ts +3 -0
- package/dist/@types/services/performance/server/performance.d.ts +7 -0
- package/dist/@types/services/pluginFileReader/common/pluginFileReader.d.ts +3 -4
- package/dist/@types/services/pluginFileReader/server/pluginFileReader.d.ts +18 -0
- package/dist/@types/services/projectManager/server/buildServerProjectManager.d.ts +11 -0
- package/dist/@types/services/projectManager/server/projectManager.d.ts +7 -0
- package/dist/@types/services/root/server/root.d.ts +11 -0
- package/dist/@types/services/root/server/rootService.d.ts +2 -0
- package/dist/@types/services/staticConfig/server/staticConfigService.d.ts +4 -0
- package/dist/@types/services/store/server/storeService.d.ts +11 -0
- package/dist/@types/services/uniapp/server/uniapp.d.ts +4 -0
- package/dist/build-server/constant.js +1 -0
- package/dist/build-server/ctxManager.js +1 -0
- package/dist/build-server/fileCacheManager.js +1 -0
- package/dist/build-server/fileTaskDriver.js +1 -0
- package/dist/build-server/subProcess.js +1 -0
- package/dist/build-server/subTaskManager.js +1 -0
- package/dist/build-server/taskDriver.js +1 -0
- package/dist/build-server/taskFactory.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/index.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/OTService.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/enhance.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/es6module.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/index.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/javascript.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/less.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/minifywxml.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/readFile.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/sass.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/terser.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/typescript.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/worklet.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/wxss.js +1 -0
- package/dist/build-server/tasks/common/apperrcode.config.js +1 -0
- package/dist/build-server/tasks/common/compiletype.config.js +1 -0
- package/dist/build-server/tasks/common/constants.config.js +1 -0
- package/dist/build-server/tasks/common/simulatortype.config.js +1 -0
- package/dist/build-server/tasks/common/utils/appdevserver/getwxappcode.js +1 -0
- package/dist/build-server/tasks/common/utils/babel/babelhelpers.js +1 -0
- package/dist/build-server/tasks/common/utils/builder/builder.js +1 -0
- package/dist/build-server/tasks/common/utils/builder/filter.js +1 -0
- package/dist/build-server/tasks/common/utils/builder/index.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/compile.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/config.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/filecompile.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/jspersistcache.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/manager.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/persistcache.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/reporter.js +1 -0
- package/dist/build-server/tasks/common/utils/colorutils.js +1 -0
- package/dist/build-server/tasks/common/utils/common/bindActionTools.js +1 -0
- package/dist/build-server/tasks/common/utils/common/schema.helper.js +1 -0
- package/dist/build-server/tasks/common/utils/common/tools.js +1 -0
- package/dist/build-server/tasks/common/utils/common/waitable.js +1 -0
- package/dist/build-server/tasks/common/utils/filerules.js +1 -0
- package/dist/build-server/tasks/common/utils/fsutils.js +1 -0
- package/dist/build-server/tasks/common/utils/handleError.js +1 -0
- package/dist/build-server/tasks/common/utils/helper/vendorValidate.js +1 -0
- package/dist/build-server/tasks/common/utils/interfacebuilder/registry/index.js +1 -0
- package/dist/build-server/tasks/common/utils/partialcompile.js +1 -0
- package/dist/build-server/tasks/common/utils/project/appconfig.js +1 -0
- package/dist/build-server/tasks/common/utils/project/appjson.js +1 -0
- package/dist/build-server/tasks/common/utils/project/customcomponent.js +1 -0
- package/dist/build-server/tasks/common/utils/project/generatecode.utils.js +1 -0
- package/dist/build-server/tasks/common/utils/project/getcompiledjs.js +1 -0
- package/dist/build-server/tasks/common/utils/project/helper/index.js +1 -0
- package/dist/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.js +1 -0
- package/dist/build-server/tasks/common/utils/project/helper/reserveddirectories.js +1 -0
- package/dist/build-server/tasks/common/utils/project/helper/theme.js +1 -0
- package/dist/build-server/tasks/common/utils/project/online/appconfig.js +1 -0
- package/dist/build-server/tasks/common/utils/project/pagejson.js +1 -0
- package/dist/build-server/tasks/common/utils/project/projectconfigjson.js +1 -0
- package/dist/build-server/tasks/common/utils/project/wxappcodejson.js +1 -0
- package/dist/build-server/tasks/common/utils/subpackageUtils.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/Trace.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/aegis.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/index.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/readiness.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/report.js +1 -0
- package/dist/build-server/tasks/common/utils/trans/transwxmltojs.js +1 -0
- package/dist/build-server/tasks/common/utils/transformsourcemap.js +1 -0
- package/dist/build-server/tasks/common/utils/web/glasseaselUtils.js +1 -0
- package/dist/build-server/tasks/common/utils/web/md5.js +1 -0
- package/dist/build-server/tasks/common/utils/web/processPath.js +1 -0
- package/dist/build-server/tasks/common/weapp.config.js +1 -0
- package/dist/build-server/tasks/pageInitSourceCompile/index.js +1 -0
- package/dist/build-server/tasks/pageframeCompile/index.js +1 -0
- package/dist/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.js +1 -0
- package/dist/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.js +1 -0
- package/dist/build-server/testAppConfig.js +1 -0
- package/dist/build-server/testAppservice.js +1 -0
- package/dist/build-server/testInitSourceCompile.js +1 -0
- package/dist/build-server/testPageframe.js +1 -0
- package/dist/build-server/testSubProcess.js +1 -0
- package/dist/build-server/utils/fileTask.js +1 -0
- package/dist/build-server/utils/getFileOrCache.js +1 -0
- package/dist/build-server/utils/process.js +1 -0
- package/dist/build-server/utils/request.js +1 -0
- package/dist/bussinessMonitor/monitor.js +1 -0
- package/dist/config/config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/manifest.json +4 -0
- package/dist/modules/corecompiler/original/workerThread/task/func.js +1 -1
- package/dist/modules/corecompiler/processHandler.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeCPProject.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeContext.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeManager.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeWorker.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/wccPipe.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/types.js +1 -1
- package/dist/modules/corecompiler/summerCompiler.js +1 -1
- package/dist/modules/fullcompiler/appservice/appservice.config.js +1 -0
- package/dist/modules/fullcompiler/appservice/generatecode.utils.js +1 -0
- package/dist/modules/fullcompiler/appservice/getappservice.js +1 -0
- package/dist/modules/fullcompiler/appservice/getcompiledjs.js +1 -0
- package/dist/modules/fullcompiler/appservice/getjsfile.js +1 -0
- package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +1 -0
- package/dist/modules/fullcompiler/appservice/getsubpackage.js +1 -0
- package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +1 -0
- package/dist/modules/fullcompiler/appservice/getwxappcode.js +1 -0
- package/dist/modules/fullcompiler/config/apperrcode.config.js +1 -0
- package/dist/modules/fullcompiler/filerules.js +1 -0
- package/dist/modules/fullcompiler/getallrawfiles.js +1 -0
- package/dist/modules/fullcompiler/getallwmltohtmlmap.js +1 -0
- package/dist/modules/fullcompiler/index.js +1 -0
- package/dist/modules/fullcompiler/pageframe/getsubpackage.js +1 -0
- package/dist/modules/fullcompiler/pageframe/getwxappcode.js +1 -0
- package/dist/modules/fullcompiler/pageframe/index.js +1 -0
- package/dist/modules/fullcompiler/trans/transwxmltojs.js +1 -0
- package/dist/modules/fullcompiler/trans/transwxsstojs.js +1 -0
- package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +1 -0
- package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/appjson.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +1 -0
- package/dist/modules/fullcompiler/utils/filewriter/index.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/handleerror.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +1 -0
- package/dist/modules/fullcompiler/utils/index.js +1 -0
- package/dist/modules/fullcompiler/utils/taskmanager.js +1 -0
- package/dist/modules/fullcompiler/utils/theme/index.js +1 -0
- package/dist/modules/fullcompiler/utils/tools.js +1 -0
- package/dist/modules/fullcompiler/utils/transformsourcemap.js +1 -0
- package/dist/project/serverProject.js +1 -0
- package/dist/services/app/server/appDirService.js +1 -0
- package/dist/services/builder/server/builder.js +1 -0
- package/dist/services/compileCacheManager/common/compileCacheManager.js +1 -0
- package/dist/services/compileCacheManager/nw/compileCacheManager.js +1 -0
- package/dist/services/compileCacheManager/server/compileCacheManager.js +1 -0
- package/dist/services/compilewxml/server/compilewxmlService.js +1 -0
- package/dist/services/compilewxml/server/wccWorker.js +1 -0
- package/dist/services/compilewxss/server/compilewxssService.js +1 -0
- package/dist/services/compilewxss/server/wcscWorker.js +1 -0
- package/dist/services/consoledisplay/server/consoledisplay.js +1 -0
- package/dist/services/fileUtilsManager/server/fileUtilsManager.js +1 -0
- package/dist/services/fs/server/fileService.js +1 -0
- package/dist/services/genTempFile/server/genTempFileService.js +1 -0
- package/dist/services/global/server/global.js +1 -0
- package/dist/services/initializeCheck/server/initializeCheck.js +1 -0
- package/dist/services/locales/server/const.js +1 -0
- package/dist/services/locales/server/locales.js +1 -0
- package/dist/services/log/server/logService.js +1 -0
- package/dist/services/miniappjson/server/miniappjson.js +1 -0
- package/dist/services/multiTaskManager/server/multiTaskManager.js +1 -0
- package/dist/services/multiTaskManager/server/pm2TaskWorker.js +1 -0
- package/dist/services/multiTaskManager/server/pm2WorkerManager.js +1 -0
- package/dist/services/nativeModule/server/nativeModule.js +1 -0
- package/dist/services/performance/server/performance.js +1 -0
- package/dist/services/pluginFileReader/server/pluginFileReader.js +1 -0
- package/dist/services/projectManager/server/buildServerProjectManager.js +1 -0
- package/dist/services/projectManager/server/projectManager.js +1 -0
- package/dist/services/root/server/root.js +1 -0
- package/dist/services/root/server/rootService.js +1 -0
- package/dist/services/staticConfig/server/staticConfigService.js +1 -0
- package/dist/services/store/server/storeService.js +1 -0
- package/dist/services/uniapp/server/uniapp.js +1 -0
- package/dist/utils/subprocess/processService.js +1 -1
- package/package.json +3 -60
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -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,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>;
|
package/dist/@types/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.d.ts
ADDED
|
@@ -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,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,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,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>;
|