miniprogram-ci 2.1.32 → 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 +2 -0
- package/README.md +2 -0
- 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/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/ci/cloud/utils.d.ts +1 -1
- package/dist/@types/common/code-analyse/index.d.ts +16 -1
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/compile/game.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/compile/index.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/index.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/workerThread/childprocessManager.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/workerThread/config.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/compilejs.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/workerThread/workerManager.d.ts +8 -0
- package/dist/@types/modules/corecompiler/originalCompiler.d.ts +1 -1
- package/dist/@types/modules/corecompiler/summer/pipeManager/index.d.ts +6 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipeCPProject.d.ts +17 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipeContext.d.ts +10 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipeManager.d.ts +12 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipeWorker.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/index.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.d.ts +4 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.d.ts +6 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.d.ts +9 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.d.ts +12 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.d.ts +11 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.d.ts +8 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.d.ts +92 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.d.ts +1 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.d.ts +6 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.d.ts +21 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.d.ts +40 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.d.ts +19 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.d.ts +15 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.d.ts +9 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/wccPipe.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/pipeManager/types.d.ts +100 -0
- package/dist/@types/modules/corecompiler/summer/plugins/script_task/minify_script_task.d.ts +1 -1
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +6 -0
- 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/modules/index.d.ts +1 -1
- package/dist/@types/modules/precompiler/conditioncompile/compiler/plant.d.ts +1 -1
- package/dist/@types/modules/precompiler/conditioncompile/index.d.ts +1 -1
- package/dist/@types/project/advance/precompileProject.d.ts +1 -1
- package/dist/@types/project/baseProject.d.ts +1 -0
- package/dist/@types/project/serverProject.d.ts +38 -0
- package/dist/@types/services/app/ci/appDirService.d.ts +6 -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/common/getservice.d.ts +6 -3
- 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/common/compilewxmlService.d.ts +2 -2
- package/dist/@types/services/compilewxml/node/compileglasseasel.d.ts +14 -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/ci/multiTaskManager.d.ts +5 -0
- package/dist/@types/services/multiTaskManager/common/multiTaskManager.d.ts +5 -0
- package/dist/@types/services/multiTaskManager/electron/multiTaskManager.d.ts +5 -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/multiTaskManager/webide/multiTaskManager.d.ts +5 -0
- package/dist/@types/services/nativeModule/ci/nativeModule.d.ts +3 -0
- package/dist/@types/services/nativeModule/common/nativeModule.d.ts +2 -2
- package/dist/@types/services/nativeModule/common/nativeModule.impl.d.ts +3 -2
- 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/ci/pluginFileReader.d.ts +3 -0
- package/dist/@types/services/pluginFileReader/common/pluginFileReader.base.d.ts +9 -0
- package/dist/@types/services/pluginFileReader/common/pluginFileReader.d.ts +11 -0
- package/dist/@types/services/pluginFileReader/electron/pluginFileReader.d.ts +3 -0
- package/dist/@types/services/pluginFileReader/server/pluginFileReader.d.ts +18 -0
- package/dist/@types/services/pluginFileReader/webide/pluginFileReader.d.ts +9 -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/ci/rootService.d.ts +2 -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/root/webide/root.d.ts +11 -0
- package/dist/@types/services/root/webide/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/@types/utils/colorutils.d.ts +4 -0
- package/dist/@types/utils/debug.d.ts +1 -0
- package/dist/@types/utils/error.d.ts +1 -1
- package/dist/@types/utils/fsagent.d.ts +4 -3
- package/dist/@types/utils/processBootstrap.d.ts +7 -0
- package/dist/@types/utils/subprocess/processManager.d.ts +1 -0
- package/dist/@types/utils/wxapkg/pack.d.ts +2 -2
- 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/ci/android-miniapp-toolkit/dist/index.js +1 -1
- package/dist/ci/build-apk.js +1 -1
- package/dist/ci/build-ipa.js +1 -1
- package/dist/ci/checkCodeQuality.js +1 -1
- package/dist/ci/cloud/cloudapi.js +1 -1
- package/dist/ci/cloud/createTimeTrigger.js +1 -1
- package/dist/ci/cloud/uploadContainer.js +1 -1
- package/dist/ci/cloud/uploadFile.js +1 -1
- package/dist/ci/cloud/uploadFunction.js +1 -1
- package/dist/ci/cloud/utils.js +1 -1
- package/dist/ci/code-analyse.js +1 -1
- package/dist/ci/cos-upload.js +1 -1
- package/dist/ci/gamepkg/apkplug.js +1 -1
- package/dist/ci/gamepkg/index.js +1 -1
- package/dist/ci/getCompiledResult.js +1 -1
- package/dist/ci/getDevSourceMap.js +1 -1
- package/dist/ci/getcompiler.js +1 -1
- package/dist/ci/miniapp/androidCloudBuild.js +1 -1
- package/dist/ci/miniapp/archive.js +1 -1
- package/dist/ci/miniapp/iosCloudBuild.js +1 -1
- package/dist/ci/miniapp/miniappPlugin.js +1 -1
- package/dist/ci/miniapp/sdkManager.js +1 -1
- package/dist/ci/miniapp/upload.js +1 -1
- package/dist/ci/miniapp-cloud-upload.js +1 -1
- package/dist/ci/preview.js +1 -1
- package/dist/ci/upload.js +1 -1
- package/dist/ci/utils/codeDenpendencyQualityChecker.js +1 -1
- package/dist/ci/utils/filterUnusedFile.js +1 -1
- package/dist/ci/utils/pack.js +1 -1
- package/dist/ci/utils/packfile.js +1 -1
- package/dist/ci/utils/terminalQrcode.js +1 -1
- package/dist/ci/utils/tools.js +1 -1
- package/dist/ci/utils/unpack.js +1 -1
- package/dist/ci/utils/wxvpkg/unpack/version0.js +1 -1
- package/dist/ci/utils/wxvpkg/unpack/version10.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/common/code-analyse/index.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/config/url.config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/manifest.json +4 -0
- package/dist/modules/corecompiler/baseCompiler.js +1 -1
- package/dist/modules/corecompiler/original/analyse/partial.js +1 -1
- package/dist/modules/corecompiler/original/compile/common.js +1 -1
- package/dist/modules/corecompiler/original/compile/game.js +1 -1
- package/dist/modules/corecompiler/original/compile/gamePlugin.js +1 -1
- package/dist/modules/corecompiler/original/compile/handler/js.js +1 -1
- package/dist/modules/corecompiler/original/compile/handler/mpjson.js +1 -1
- package/dist/modules/corecompiler/original/compile/handler/wxml.js +1 -1
- package/dist/modules/corecompiler/original/compile/handler/wxss.js +1 -1
- package/dist/modules/corecompiler/original/compile/miniprogram.js +1 -1
- package/dist/modules/corecompiler/original/compile/miniprogramPlugin.js +1 -1
- package/dist/modules/corecompiler/original/js/enhance.js +1 -1
- package/dist/modules/corecompiler/original/js/es6Transform.js +1 -1
- package/dist/modules/corecompiler/original/js/generateMap.js +1 -1
- package/dist/modules/corecompiler/original/js/minifyjs.js +1 -1
- package/dist/modules/corecompiler/original/js/minifyjsAfterWrap.js +1 -1
- package/dist/modules/corecompiler/original/js/workletCompile.js +1 -1
- package/dist/modules/corecompiler/original/json/app/appJSON.js +1 -1
- package/dist/modules/corecompiler/original/json/app/checkAppFields.js +1 -1
- package/dist/modules/corecompiler/original/json/app/extJSON.js +1 -1
- package/dist/modules/corecompiler/original/json/app/index.js +1 -1
- package/dist/modules/corecompiler/original/json/common.js +1 -1
- package/dist/modules/corecompiler/original/json/game.js +1 -1
- package/dist/modules/corecompiler/original/json/page/checkPageJSON.js +1 -1
- package/dist/modules/corecompiler/original/json/page/getPageJSON.js +1 -1
- package/dist/modules/corecompiler/original/json/plugin/plugin.js +1 -1
- package/dist/modules/corecompiler/original/json/plugin/pluginPage.js +1 -1
- package/dist/modules/corecompiler/original/json/projectconfig.js +1 -1
- package/dist/modules/corecompiler/original/json/reactiveCache.js +1 -1
- package/dist/modules/corecompiler/original/json/signaturejson.js +1 -1
- package/dist/modules/corecompiler/original/json/sitemap.js +1 -1
- package/dist/modules/corecompiler/original/json/theme.js +1 -1
- package/dist/modules/corecompiler/original/npm/filterdeps.js +1 -1
- package/dist/modules/corecompiler/original/npm/packnpm.js +1 -1
- package/dist/modules/corecompiler/original/protect/fileFlatter.js +1 -1
- package/dist/modules/corecompiler/original/protect/uglifyfilenames.js +1 -1
- package/dist/modules/corecompiler/original/utils/logger.js +1 -1
- package/dist/modules/corecompiler/original/validate/schemaValidate.js +1 -1
- package/dist/modules/corecompiler/original/validate/validate.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/childprocess.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/childprocessManager.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/config.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/fork.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/index.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/call_func.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/compilejs.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/compilewxss.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/func.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/index.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/minifywxml.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/worker.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/workerManager.js +1 -1
- package/dist/modules/corecompiler/originalCompiler.js +1 -1
- package/dist/modules/corecompiler/processHandler.js +1 -1
- package/dist/modules/corecompiler/summer/graph/appconf.js +1 -1
- package/dist/modules/corecompiler/summer/graph/appgraph.js +1 -1
- package/dist/modules/corecompiler/summer/graph/basegraph.js +1 -1
- package/dist/modules/corecompiler/summer/graph/gameconf.js +1 -1
- package/dist/modules/corecompiler/summer/graph/gamegraph.js +1 -1
- package/dist/modules/corecompiler/summer/graph/gamepluginconf.js +1 -1
- package/dist/modules/corecompiler/summer/graph/gameplugingraph.js +1 -1
- package/dist/modules/corecompiler/summer/graph/pluginconf.js +1 -1
- package/dist/modules/corecompiler/summer/graph/plugingraph.js +1 -1
- package/dist/modules/corecompiler/summer/index.js +1 -1
- package/dist/modules/corecompiler/summer/initPlugin.js +1 -1
- package/dist/modules/corecompiler/summer/module.js +1 -1
- package/dist/modules/corecompiler/summer/persistCache.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/index.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipeCPProject.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipeContext.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipeManager.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipeWorker.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/index.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/pipes/wccPipe.js +1 -0
- package/dist/modules/corecompiler/summer/pipeManager/types.js +1 -0
- package/dist/modules/corecompiler/summer/pluginDriver.js +1 -1
- package/dist/modules/corecompiler/summer/pluginconfig.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/base/es6module.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/base/javascript.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/base/swc.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/base/wxss.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/enhance.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/filetask/script.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/less.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/minifywxml.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/sass.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/script_task/babel_script_task.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/script_task/load_script_task.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/script_task/minify_script_task.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/script_task/swc_task.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/terser.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/typescript.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/worklet.js +1 -1
- package/dist/modules/corecompiler/summer/resolver.js +1 -1
- package/dist/modules/corecompiler/summer/summer.js +1 -1
- package/dist/modules/corecompiler/summer/utils/async.js +1 -1
- package/dist/modules/corecompiler/summer/utils/inputsourcemap.js +1 -1
- package/dist/modules/corecompiler/summerCompiler.js +1 -1
- package/dist/modules/corecompiler/summerEntryProcess.js +1 -1
- package/dist/modules/createSummer.js +1 -1
- package/dist/modules/fullcompiler/app/app.js +1 -1
- package/dist/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.js +1 -1
- package/dist/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.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/modules/index.js +1 -1
- package/dist/modules/nativecompiler/android/adb.js +1 -1
- package/dist/modules/nativecompiler/android/device.js +1 -1
- package/dist/modules/nativecompiler/android/index.js +1 -1
- package/dist/modules/nativecompiler/android/projectconfig.js +1 -1
- package/dist/modules/nativecompiler/index.js +1 -1
- package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
- package/dist/modules/nativecompiler/ios/device.js +1 -1
- package/dist/modules/nativecompiler/ios/index.js +1 -1
- package/dist/modules/nativecompiler/nativeEntryProcess.js +1 -1
- package/dist/modules/nativecompiler/processHandler.js +1 -1
- package/dist/modules/precompiler/conditioncompile/compiler/json.js +1 -1
- package/dist/modules/precompiler/conditioncompile/compiler/macro.js +1 -1
- package/dist/modules/precompiler/conditioncompile/index.js +1 -1
- package/dist/project/advance/precompileProject.js +1 -1
- package/dist/project/advance/reactiveProject.js +1 -1
- package/dist/project/baseProject.js +1 -1
- package/dist/project/ciProjectWithMockBuffer.js +1 -1
- package/dist/project/serverProject.js +1 -0
- package/dist/project/summerCPProject.js +1 -1
- package/dist/services/app/ci/appDirService.js +1 -0
- package/dist/services/app/server/appDirService.js +1 -0
- package/dist/services/builder/server/builder.js +1 -0
- package/dist/services/common/getservice.js +1 -1
- package/dist/services/common/vsbase.js +1 -1
- 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/node/compileUtils.js +1 -1
- package/dist/services/compilewxml/node/compileglasseasel.js +1 -1
- package/dist/services/compilewxml/server/compilewxmlService.js +1 -0
- package/dist/services/compilewxml/server/wccWorker.js +1 -0
- package/dist/services/compilewxml/webide/pageFrameWasm/wcc/runWcc.js +1 -1
- package/dist/services/compilewxss/node/compileUtils.js +1 -1
- package/dist/services/compilewxss/server/compilewxssService.js +1 -0
- package/dist/services/compilewxss/server/wcscWorker.js +1 -0
- package/dist/services/compilewxss/webide/pageFrameWasm/wcsc/runWcsc.js +1 -1
- 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/ci/multiTaskManager.js +1 -0
- package/dist/services/multiTaskManager/common/multiTaskManager.js +1 -0
- package/dist/services/multiTaskManager/electron/multiTaskManager.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/multiTaskManager/webide/multiTaskManager.js +1 -0
- package/dist/services/nativeModule/ci/nativeModule.js +1 -0
- package/dist/services/nativeModule/common/nativeModule.impl.js +1 -1
- package/dist/services/nativeModule/server/nativeModule.js +1 -0
- package/dist/services/performance/server/performance.js +1 -0
- package/dist/services/pluginFileReader/ci/pluginFileReader.js +1 -0
- package/dist/services/pluginFileReader/common/pluginFileReader.base.js +1 -0
- package/dist/services/pluginFileReader/common/pluginFileReader.js +1 -0
- package/dist/services/pluginFileReader/electron/pluginFileReader.js +1 -0
- package/dist/services/pluginFileReader/server/pluginFileReader.js +1 -0
- package/dist/services/pluginFileReader/webide/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/{node → ci}/root.js +1 -1
- package/dist/services/root/ci/rootService.js +1 -0
- package/dist/services/root/electron/root.js +1 -1
- package/dist/services/root/electron/rootService.js +1 -1
- package/dist/services/root/nw/root.js +1 -1
- package/dist/services/root/server/root.js +1 -0
- package/dist/services/root/server/rootService.js +1 -0
- package/dist/services/root/webide/root.js +1 -0
- package/dist/services/root/webide/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/asyncTask/index.js +1 -1
- package/dist/utils/babel_helper.js +1 -1
- package/dist/utils/babel_plugin_worklet.js +1 -1
- package/dist/utils/colorutils.js +1 -0
- package/dist/utils/common.js +1 -1
- package/dist/utils/cosUpload.js +1 -1
- package/dist/utils/cp.js +1 -1
- package/dist/utils/customError.js +1 -1
- package/dist/utils/debug.js +1 -1
- package/dist/utils/download.js +1 -1
- package/dist/utils/expression.js +1 -1
- package/dist/utils/fsagent.js +1 -1
- package/dist/utils/genTempFile.js +1 -1
- package/dist/utils/generateIpa.js +1 -1
- package/dist/utils/glob.js +1 -1
- package/dist/utils/hackrequire/wxvpkgreader.js +1 -1
- package/dist/utils/helper_util.js +1 -1
- package/dist/utils/jsonlint.js +1 -1
- package/dist/utils/locales/fomatable_string.js +1 -1
- package/dist/utils/locales/locales.js +1 -1
- package/dist/utils/log.js +1 -1
- package/dist/utils/messageHub.js +1 -1
- package/dist/utils/miniAppI18N.js +1 -1
- package/dist/utils/miniapp-builder.js +1 -1
- package/dist/utils/miniappJson.js +1 -1
- package/dist/utils/officialDonutPlugin.js +1 -1
- package/dist/utils/packOptionsHelper.js +1 -1
- package/dist/utils/processBootstrap.js +1 -0
- package/dist/utils/progressRecorder.js +1 -1
- package/dist/utils/request.js +1 -1
- package/dist/utils/singletontask.js +1 -1
- package/dist/utils/subprocess/entryProcess.js +1 -1
- package/dist/utils/subprocess/processManager.js +1 -1
- package/dist/utils/subprocess/processService.js +1 -1
- package/dist/utils/swc_helper.js +1 -1
- package/dist/utils/taskmanager.js +1 -1
- package/dist/utils/tools.js +1 -1
- package/dist/utils/usbProcess.js +1 -1
- package/dist/utils/waitable.js +1 -1
- package/dist/utils/web/common.js +1 -1
- package/dist/utils/white_ext_list.js +1 -1
- package/dist/utils/wxapkg/pack.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkg/reader/version0.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkg/reader/version10.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkg/unpack/version0.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkg/unpack/version10.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkgreader.js +1 -1
- package/dist/utils/zip.js +1 -1
- package/package.json +5 -3
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/addonVersion.js +0 -19
- package/dist/modules/fullcompiler/trans/wcc/lib/index.js +0 -4
- package/dist/modules/fullcompiler/trans/wcc/lib/util.js +0 -1134
- package/dist/modules/fullcompiler/trans/wcc/lib/wcc.js +0 -94
- package/dist/modules/fullcompiler/trans/wcc/lib/wcsc.js +0 -93
- package/dist/services/root/node/rootService.js +0 -1
- /package/dist/@types/{services/root/node/rootService.d.ts → build-server/tasks/common/utils/common/schema.helper.d.ts} +0 -0
- /package/dist/@types/services/root/{node → ci}/root.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PluginGraph=void 0;const progressRecorder_1=require("../../../../utils/progressRecorder"),white_ext_list_1=require("../../../../utils/white_ext_list"),basegraph_1=require("./basegraph"),pluginconf_1=require("./pluginconf"),config_1=require("../../../../config/config");class PluginGraph extends basegraph_1.BaseGraph{constructor(e){super(e),this.pluginConf=new pluginconf_1.PluginConf(this.compiler.proxyProject,this.root)}async getWhiteListConfig(){if(!this._whiteListConfig){const e=await(0,white_ext_list_1.getWhiteExtList)();this._whiteListConfig=e.MiniProgramWhiteList}return this._whiteListConfig}destroy(){this.pluginConf.destroy(),super.destroy()}async getConf(e){if("plugin"!==this.type)throw new Error("Couldn't call getAppConf without plugin type");return this.conf=await this.pluginConf.getConf(e),this.conf}async compileSingleCode(e,t){await this.ensureConf(progressRecorder_1.silentRecorder);const i=this.resolver.resolveInfoMap.get(e);if(i)return super.doCompileSingleCode(Object.assign(Object.assign({},i),{independentRoot:this.getIndependentRoot(i.path),isBabelIgnore:this.isBabelSettingIgnore(i)}),t);throw new Error("file not found")}async getDevCode(e){let t=await this.getPackageFile(config_1.FullPkg);return t=t.filter(e=>!e.path.endsWith("json")),this.getCodeFiles(t,e)}async getProdCode(e,t){let i=await this.getPackageFile(config_1.FullPkg);return i=i.filter(e=>!e.path.endsWith("json")),this.getCodeFiles(i,e,{useCache:!1,resultType:t.resultType})}getLocalCodeFileList(){return Array.from(this.resolver.resolveInfoMap.entries()).map(([e,t])=>t.source)}onFileChangeForGraph(e,t){}async getPackageFile(e){await this.ensureConf(progressRecorder_1.silentRecorder);const t=[];for(const[e,i]of this.resolver.resolveInfoMap.entries())t.push(i);return t.map(e=>Object.assign(Object.assign({},e),{independentRoot:this.getIndependentRoot(e.path),isBabelIgnore:this.isBabelSettingIgnore(e)}))}getIndependentRoot(e){const t=this.conf.plugin;return"string"==typeof t.workers&&e.startsWith(t.workers)?t.workers:""}checkFilePackage(e){return config_1.MainPkg}async compileJSON(){const e=await this.getConf(progressRecorder_1.silentRecorder),t={};t["plugin.json"]=JSON.stringify(e.plugin);for(const i in e.pages)t[i
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PluginGraph=void 0;const progressRecorder_1=require("../../../../utils/progressRecorder"),white_ext_list_1=require("../../../../utils/white_ext_list"),basegraph_1=require("./basegraph"),pluginconf_1=require("./pluginconf"),config_1=require("../../../../config/config");class PluginGraph extends basegraph_1.BaseGraph{constructor(e){super(e),this.pluginConf=new pluginconf_1.PluginConf(this.compiler.proxyProject,this.root)}async getWhiteListConfig(){if(!this._whiteListConfig){const e=await(0,white_ext_list_1.getWhiteExtList)();this._whiteListConfig=e.MiniProgramWhiteList}return this._whiteListConfig}destroy(){this.pluginConf.destroy(),super.destroy()}async getConf(e){if("plugin"!==this.type)throw new Error("Couldn't call getAppConf without plugin type");return this.conf=await this.pluginConf.getConf(e),this.conf}async compileSingleCode(e,t){await this.ensureConf(progressRecorder_1.silentRecorder);const i=this.resolver.resolveInfoMap.get(e);if(i)return super.doCompileSingleCode(Object.assign(Object.assign({},i),{independentRoot:this.getIndependentRoot(i.path),isBabelIgnore:this.isBabelSettingIgnore(i)}),t);throw new Error("file not found")}async getDevCode(e){let t=await this.getPackageFile(config_1.FullPkg);return t=t.filter((e=>!e.path.endsWith("json"))),this.getCodeFiles(t,e)}async getProdCode(e,t){let i=await this.getPackageFile(config_1.FullPkg);return i=i.filter((e=>!e.path.endsWith("json"))),this.getCodeFiles(i,e,{useCache:!1,resultType:t.resultType})}getLocalCodeFileList(){return Array.from(this.resolver.resolveInfoMap.entries()).map((([e,t])=>t.source))}onFileChangeForGraph(e,t){}async getPackageFile(e){await this.ensureConf(progressRecorder_1.silentRecorder);const t=[];for(const[e,i]of this.resolver.resolveInfoMap.entries())t.push(i);return t.map((e=>Object.assign(Object.assign({},e),{independentRoot:this.getIndependentRoot(e.path),isBabelIgnore:this.isBabelSettingIgnore(e)})))}getIndependentRoot(e){const t=this.conf.plugin;return"string"==typeof t.workers&&e.startsWith(t.workers)?t.workers:""}checkFilePackage(e){return config_1.MainPkg}async compileJSON(){const e=await this.getConf(progressRecorder_1.silentRecorder),t={};t["plugin.json"]=JSON.stringify(e.plugin);for(const i in e.pages)t[`${i}.json`]=JSON.stringify(e.pages[i]);for(const i in e.comps)t[`${i}.json`]=JSON.stringify(e.comps[i]);return{conf:e,jsons:t}}async compileJSONWithFileList(){return this.compileJSON()}}exports.PluginGraph=PluginGraph;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compile=compile;const common_1=require("../original/compile/common"),progressRecorder_1=require("../../../utils/progressRecorder"),summer_1=require("./summer"),pluginconfig_1=require("./pluginconfig");async function compile(e,r,i,o){const s=await e.serialize(),n=Object.assign(Object.assign({},s),{compileType:e.type,summerPlugins:(0,pluginconfig_1.getSummerPluginConfig)(e.setting)});n.files=n.files.filter(common_1.isNotIgnoredByProjectConfig.bind(null,r,e.miniprogramRoot));const t=new summer_1.SummerCompiler(e,"",n),m=new progressRecorder_1.Recorder((e,r,o)=>{var s;null===(s=i.onProgressUpdate)||void 0===s||s.call(i,{id:e.toString(),message:o,status:r})});return await t.compile(i,m)}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compile=compile;const common_1=require("../original/compile/common"),progressRecorder_1=require("../../../utils/progressRecorder"),summer_1=require("./summer"),pluginconfig_1=require("./pluginconfig");async function compile(e,r,i,o){const s=await e.serialize(),n=Object.assign(Object.assign({},s),{compileType:e.type,summerPlugins:(0,pluginconfig_1.getSummerPluginConfig)(e.setting)});n.files=n.files.filter(common_1.isNotIgnoredByProjectConfig.bind(null,r,e.miniprogramRoot));const t=new summer_1.SummerCompiler(e,"",n),m=new progressRecorder_1.Recorder(((e,r,o)=>{var s;null===(s=i.onProgressUpdate)||void 0===s||s.call(i,{id:e.toString(),message:o,status:r})}));return await t.compile(i,m)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initPlugin=initPlugin;const tslib_1=require("tslib"),index_1=tslib_1.__importDefault(require("./plugins/index"));function initPlugin(e,i,t){e.startsWith("summer-")&&(e=e.replace("summer-",""));const r=index_1.default.load(e);if(r)return r(i,t);throw new Error(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initPlugin=initPlugin;const tslib_1=require("tslib"),index_1=tslib_1.__importDefault(require("./plugins/index"));function initPlugin(e,i,t){e.startsWith("summer-")&&(e=e.replace("summer-",""));const r=index_1.default.load(e);if(r)return r(i,t);throw new Error(`not found plugin for ${e}`)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tools_1=require("../../../utils/tools"),customError_1=require("../../../utils/customError"),basegraph_1=require("./graph/basegraph"),env_1=require("../../../utils/env");class JsTag{constructor(){this.isLargeFile=!1,this.isBabelIgnore=!1,this.helpers=[],this.resultType="dev"}setBabelIgnore(){this.isBabelIgnore=!0}setLargeFile(){this.isLargeFile=!0}addHelpers(e){for(const t of e)this.helpers.includes(t)||this.helpers.push(t)}setResultType(e="dev"){this.resultType=e}toJSON(){return{isLargeFile:this.isLargeFile,isBabelIgnore:this.isBabelIgnore,helpers:this.helpers}}}class Module{constructor(e,t,s){this.path=e,this.sourcePath=t,this.fileType=s,this._error={},this.generateResultPromise={},this.compileResultPromise={},this.depFiles=[],this.independentRoot="",this.isBabelIgnore=!1,this.generatedTS={}}transResultType(e){return this.fileType===basegraph_1.FileType.JS||this.fileType===basegraph_1.FileType.WXML?e:"common"}getGeneratedTS(e){return this.generatedTS[this.transResultType(e)]||0}setError(e,t){const s=this.transResultType(e);this._error[s]=t,this.generatedTS[s]=Date.now()}getError(e){const t=this.transResultType(e);return this._error[t]}async getJsTag(){if(this.fileType!==basegraph_1.FileType.JS)return;if(this._jsTag)return this._jsTag;const e=new JsTag;(await this.getSource()).largeFile&&e.setLargeFile();const t=await this.generateResultPromise.common;return t.target&&(e.addHelpers(t.target.helpers||[]),e.setResultType(t.target.resultType)),this.isBabelIgnore&&e.setBabelIgnore(),this._jsTag=e,e}async getJsTag2(){if(this.fileType!==basegraph_1.FileType.JS)return;if(this._jsTag)return this._jsTag;const e=new JsTag;(await this.getSource()).largeFile&&e.setLargeFile();const t=await this.compileResultPromise.common;return t.target&&(e.addHelpers(t.target.helpers||[]),e.setResultType(t.target.resultType)),this.isBabelIgnore&&e.setBabelIgnore(),this._jsTag=e,e}async getSource(){return(await this.getLoadingPromise()).source}async getMd5(){const e=await this.getSource();return(0,tools_1.generateMD5)(e.sourceCode)}setLoadingPromise(e){this.loadResult=e}async clearUselessCache(){if((0,env_1.isElectron)()&&this.path.endsWith(".js")){const e=await this.loadResult;if(e){const t=e.source;delete t.astInfo,delete t.inputMap}for(const e in this.generateResultPromise){const t=e;if(void 0!==this.generateResultPromise[t]){delete(await this.generateResultPromise[t]).source}}}}getLoadingPromise(){return this.loadResult}setGeneratingPromise(e,t){const s=this.transResultType(e);this.generateResultPromise[s]=t,this.generateResultPromise.common=t,t.then(()=>{this.generatedTS[s]=Date.now()})}getGeneratingPromise(e){const t=this.transResultType(e);return this.generateResultPromise[t]}getCompilePromise(e){const t=this.transResultType(e);return this.compileResultPromise[t]}setCompilePromise(e,t){const s=this.transResultType(e);this.compileResultPromise[s]=t,this.compileResultPromise.common=t}async getProcessInfo(e){var t;const s=this.getGeneratingPromise(e);return null===(t=await s)||void 0===t?void 0:t.process}async toCodeFile(e){const t=this.getError(e);if(t)return t instanceof customError_1.CustomError?{path:this.path,error:t.toJSON()}:{path:this.path,error:this._error};const s=this.getGeneratingPromise(e);if(void 0===s)return{path:this.path,error:"empty result"};const r=await this.getJsTag(),i=await this.getSource();try{return Object.assign({path:this.path,md5:await this.getMd5(),jsTag:null==r?void 0:r.toJSON(),mtime:i.mtime},(await s).target)}catch(e){return{path:this.path,error:e}}}async toCodeFile2(e){const t=this.getError(e);if(t)return t instanceof customError_1.CustomError?{path:this.path,error:t.toJSON()}:{path:this.path,error:this._error};const s=await this.getJsTag2(),r=await this.getSource(),i=this.getCompilePromise(e);if(void 0===i)return{path:this.path,error:"empty result"};const a=await i;try{return Object.assign({path:this.path,md5:await this.getMd5(),jsTag:null==s?void 0:s.toJSON(),mtime:r.mtime},a.target)}catch(e){return{path:this.path,error:e}}}async toGenerateResult(e){const t=this.getGeneratingPromise(e);if(void 0===t)return{path:this.path,error:"empty result"};const s=await t;return{targetPath:this.path,source:await this.getSource(),target:s.target,process:s.process||[]}}toJSON(){return{code:"",map:void 0,path:this.path,sourcePath:this.sourcePath,depFileIds:this.depFiles}}addWatchFile(e){-1===this.depFiles.indexOf(e)&&this.depFiles.push(e)}}exports.default=Module;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tools_1=require("../../../utils/tools"),customError_1=require("../../../utils/customError"),basegraph_1=require("./graph/basegraph"),env_1=require("../../../utils/env");class JsTag{constructor(){this.isLargeFile=!1,this.isBabelIgnore=!1,this.helpers=[],this.resultType="dev"}setBabelIgnore(){this.isBabelIgnore=!0}setLargeFile(){this.isLargeFile=!0}addHelpers(e){for(const t of e)this.helpers.includes(t)||this.helpers.push(t)}setResultType(e="dev"){this.resultType=e}toJSON(){return{isLargeFile:this.isLargeFile,isBabelIgnore:this.isBabelIgnore,helpers:this.helpers}}}class Module{constructor(e,t,s){this.path=e,this.sourcePath=t,this.fileType=s,this._error={},this.generateResultPromise={},this.compileResultPromise={},this.depFiles=[],this.independentRoot="",this.isBabelIgnore=!1,this.generatedTS={}}transResultType(e){return this.fileType===basegraph_1.FileType.JS||this.fileType===basegraph_1.FileType.WXML?e:"common"}getGeneratedTS(e){return this.generatedTS[this.transResultType(e)]||0}setError(e,t){const s=this.transResultType(e);this._error[s]=t,this.generatedTS[s]=Date.now()}getError(e){const t=this.transResultType(e);return this._error[t]}async getJsTag(){if(this.fileType!==basegraph_1.FileType.JS)return;if(this._jsTag)return this._jsTag;const e=new JsTag;(await this.getSource()).largeFile&&e.setLargeFile();const t=await this.generateResultPromise.common;return t.target&&(e.addHelpers(t.target.helpers||[]),e.setResultType(t.target.resultType)),this.isBabelIgnore&&e.setBabelIgnore(),this._jsTag=e,e}async getJsTag2(){if(this.fileType!==basegraph_1.FileType.JS)return;if(this._jsTag)return this._jsTag;const e=new JsTag;(await this.getSource()).largeFile&&e.setLargeFile();const t=await this.compileResultPromise.common;return t.target&&(e.addHelpers(t.target.helpers||[]),e.setResultType(t.target.resultType)),this.isBabelIgnore&&e.setBabelIgnore(),this._jsTag=e,e}async getSource(){return(await this.getLoadingPromise()).source}async getMd5(){const e=await this.getSource();return(0,tools_1.generateMD5)(e.sourceCode)}setLoadingPromise(e){this.loadResult=e}async clearUselessCache(){if((0,env_1.isElectron)()&&this.path.endsWith(".js")){const e=await this.loadResult;if(e){const t=e.source;delete t.astInfo,delete t.inputMap}for(const e in this.generateResultPromise){const t=e;if(void 0!==this.generateResultPromise[t]){delete(await this.generateResultPromise[t]).source}}}}getLoadingPromise(){return this.loadResult}setGeneratingPromise(e,t){const s=this.transResultType(e);this.generateResultPromise[s]=t,this.generateResultPromise.common=t,t.then((()=>{this.generatedTS[s]=Date.now()}))}getGeneratingPromise(e){const t=this.transResultType(e);return this.generateResultPromise[t]}getCompilePromise(e){const t=this.transResultType(e);return this.compileResultPromise[t]}setCompilePromise(e,t){const s=this.transResultType(e);this.compileResultPromise[s]=t,this.compileResultPromise.common=t}async getProcessInfo(e){var t;const s=this.getGeneratingPromise(e);return null===(t=await s)||void 0===t?void 0:t.process}async toCodeFile(e){const t=this.getError(e);if(t)return t instanceof customError_1.CustomError?{path:this.path,error:t.toJSON()}:{path:this.path,error:this._error};const s=this.getGeneratingPromise(e);if(void 0===s)return{path:this.path,error:"empty result"};const r=await this.getJsTag(),i=await this.getSource();try{return Object.assign({path:this.path,md5:await this.getMd5(),jsTag:null==r?void 0:r.toJSON(),mtime:i.mtime},(await s).target)}catch(e){return{path:this.path,error:e}}}async toCodeFile2(e){const t=this.getError(e);if(t)return t instanceof customError_1.CustomError?{path:this.path,error:t.toJSON()}:{path:this.path,error:this._error};const s=await this.getJsTag2(),r=await this.getSource(),i=this.getCompilePromise(e);if(void 0===i)return{path:this.path,error:"empty result"};const a=await i;try{return Object.assign({path:this.path,md5:await this.getMd5(),jsTag:null==s?void 0:s.toJSON(),mtime:r.mtime},a.target)}catch(e){return{path:this.path,error:e}}}async toGenerateResult(e){const t=this.getGeneratingPromise(e);if(void 0===t)return{path:this.path,error:"empty result"};const s=await t;return{targetPath:this.path,source:await this.getSource(),target:s.target,process:s.process||[]}}toJSON(){return{code:"",map:void 0,path:this.path,sourcePath:this.sourcePath,depFileIds:this.depFiles}}addWatchFile(e){-1===this.depFiles.indexOf(e)&&this.depFiles.push(e)}}exports.default=Module;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),fs=tslib_1.__importStar(require("fs-extra")),tools_1=require("../../../utils/tools"),taskmanager_1=tslib_1.__importDefault(require("../../../utils/taskmanager"));class PersistCache{constructor(e,t){this.project=e,this.cachePath=t,this._cleanTask=e=>{fs.unlink(path_1.default.join(this.cachePath,e))}}getFilePath(e){const t=(0,tools_1.generateMD5)(e);return{cacheFile:path_1.default.join(this.cachePath,t),infoFile:path_1.default.join(this.cachePath
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),fs=tslib_1.__importStar(require("fs-extra")),tools_1=require("../../../utils/tools"),taskmanager_1=tslib_1.__importDefault(require("../../../utils/taskmanager"));class PersistCache{constructor(e,t){this.project=e,this.cachePath=t,this._cleanTask=e=>{fs.unlink(path_1.default.join(this.cachePath,e))}}getFilePath(e){const t=(0,tools_1.generateMD5)(e);return{cacheFile:path_1.default.join(this.cachePath,t),infoFile:path_1.default.join(this.cachePath,`${t}.json`)}}async get(e){const{cacheFile:t,infoFile:a}=this.getFilePath(e);try{const e=await fs.readFile(a,"utf8"),s=JSON.parse(e);return{data:await fs.readFile(t,{encoding:s.encoding||null}),info:s}}catch(e){}return{}}async set(e,t){var a;const{cacheFile:s,infoFile:i}=this.getFilePath(e);try{const e=(null===(a=t.info)||void 0===a?void 0:a.encoding)||null;await fs.writeFile(s,t.data,e),await fs.writeFile(i,JSON.stringify(t.info),"utf8")}catch(e){}}async remove(e){const{cacheFile:t,infoFile:a}=this.getFilePath(e);try{await fs.unlink(t),await fs.unlink(a)}catch(e){}}async clean(){const e=fs.readdirSync(this.cachePath),t=new taskmanager_1.default({poolLimit:10,breakWhenError:!1});for(const a of e)t.addTask(this._cleanTask,a);await t.runAllAsync()}}class FakePersistCache{async get(e){return{}}async set(e,t){}async remove(e){}async clean(){}}class LogicPersistCache{constructor(e,t,a){this.baseCacheKey=a,this.project=e,this.persistCache=t?new PersistCache(this.project,t):new FakePersistCache}updateBaseCacheKey(e){this.baseCacheKey!==e&&(this.persistCache.clean(),this.baseCacheKey=e)}getCacheKey(e){return`${e.independentRoot}|${e.source}`}async get(e,t,a){var s;const i=path_1.default.posix.join(e,t,a.path),c=path_1.default.posix.join(e,t,a.source),n=await this.persistCache.get(i);if((null===(s=n.info)||void 0===s?void 0:s.baseCacheKey)===this.baseCacheKey){if(n.info&&n.info.cacheKey===this.getCacheKey(a)){const e=fs.statSync(c);if(n.info.mtimeMs===e.mtimeMs)try{return JSON.parse(n.data)}catch(e){this.persistCache.remove(i)}}}else this.persistCache.remove(i)}async set(e,t,a,s){const i=path_1.default.posix.join(e,t,a.path),c=path_1.default.posix.join(e,t,a.source),n=fs.statSync(c);this.persistCache.set(i,{info:{encoding:"utf8",cacheKey:this.getCacheKey(a),baseCacheKey:this.baseCacheKey,mtimeMs:n.mtimeMs},data:JSON.stringify(s)})}async clean(){this.persistCache.clean()}}exports.default=LogicPersistCache;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.allPipes=exports.runPipeTask=exports.PipeContext=exports.PipeCPProject=exports.PipeManager=void 0;var t=e("./pipeManager");Object.defineProperty(exports,"PipeManager",{enumerable:!0,get:function(){return t.PipeManager}});var p=e("./pipeCPProject");Object.defineProperty(exports,"PipeCPProject",{enumerable:!0,get:function(){return p.PipeCPProject}});var i=e("./pipeContext");Object.defineProperty(exports,"PipeContext",{enumerable:!0,get:function(){return i.PipeContext}});var n=e("./pipeWorker");Object.defineProperty(exports,"runPipeTask",{enumerable:!0,get:function(){return n.runPipeTask}});var o=e("./pipes/index");Object.defineProperty(exports,"allPipes",{enumerable:!0,get:function(){return o.allPipes}})}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipeCPProject=void 0;const r=t("../../../../utils/tools"),i=t("../../../../project/baseProject");class o extends i.BaseProject{constructor(t){super(),this._projectPath=(0,r.normalizePath)(t.projectPath),this._appid=t.appid,this._attr=t.attr,this._type=this.getProjectType(t.attr,t.type),this._miniprogramRoot=t.miniprogramRoot,this._pluginRoot=t.pluginRoot,this._projectArchitecture=t.projectArchitecture,this.setting=t.setting,this.backendProjectContext=t.backendProjectContext,this.projectContext=t.projectContext}init(){}updateFileAndDirs(){}static async serializeForPipe(t){const e=await t.serialize();return{appid:e.appid,attr:e.attr,type:e.type,projectPath:e.projectPath,projectArchitecture:e.projectArchitecture,miniprogramRoot:e.miniprogramRoot,pluginRoot:e.pluginRoot,setting:e.setting}}}exports.PipeCPProject=o}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipeContext=void 0;const t=e("tslib").__importDefault(e("../../../../services/common/getservice"));let s=0;function o(){return`pipe-req-${++s}-${Date.now()}`}exports.PipeContext=class{constructor(e,r){this.project=e,this.sendRequest=r}async requestPipe(e,r){const t=o(),s=await this.sendRequest({type:"pipe",requestId:t,name:e,params:r});if(s.error)throw new Error(s.error.message);return s.data}async callCompiler(e,...r){const t=o(),s=await this.sendRequest({type:"compiler",requestId:t,method:e,args:r});if(s.error)throw new Error(s.error.message);return s.data}getService(e){return(0,t.default)(e)}}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipeManager=void 0;const t=e("../../original/workerThread"),o=e("../../original/workerThread/config"),i=e("./pipeCPProject");exports.PipeManager=class{constructor(e){this.compiler=e}async executePipe(e,r){return this.runPipeTask(e,r)}async handlePipeIPC(e,r){if("compiler"===e.type)return this.executeCompilerMethod(e.method,e.args,r);if("pipe"===e.type)return this.runPipeTask({pipeName:e.name,params:e.params},r);throw new Error(`unknown pipe request type: ${e.type}`)}destroy(){}async executeCompilerMethod(e,r,t){const o=this.compiler[e];if("function"!=typeof o)throw new Error(`SummerCompiler has no method "${e}"`);return o.call(this.compiler,...r,t)}async runPipeTask(e,r){const{pipeName:n,params:p,backendProjectContext:a,projectContext:s}=e,c=this.compiler.project,u=await i.PipeCPProject.serializeForPipe(c);a&&(u.backendProjectContext=a),s&&(u.projectContext=s);const m={pipeName:n,params:p,projectInfo:u||{}},l=await function(e,r,t){return new Promise(((o,i)=>{const n=setTimeout((()=>{i(new Error(`pipe "${t}" timed out after ${r}ms`))}),r);e.then((e=>{clearTimeout(n),o(e)}),(e=>{clearTimeout(n),i(e)}))}))}((0,t.runTask)(o.TASK_NAME.PIPE_TASK,m),6e4,n);if(l.error){const e=l.error;throw"string"==typeof e?new Error(e):Object.assign(new Error(e.message||"pipe task error"),e)}return l.result}}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.runPipeTask=async function(e){const{pipeName:r,params:t,projectInfo:a}=e,c=i.get(r);if(!c)return{error:{message:`pipe "${r}" is not registered in worker`}};try{const e=new s.PipeCPProject(a),r=new n.PipeContext(e,o);return{result:await c.execute(r,t)}}catch(e){return{error:{code:e.code||-1,message:e.message||String(e),stack:e.stack||""}}}};const t=e("../../original/workerThread/task/call_func"),s=e("./pipeCPProject"),n=e("./pipeContext"),a=e("./pipes/index"),i=new Map;for(const e of a.allPipes)i.set(e.name,e);async function o(e){try{const r=await(0,t.call)("handlePipeIPC",e);return{requestId:e.requestId,data:r}}catch(r){return{requestId:e.requestId,error:{code:-1,message:"string"==typeof r?r:r.message||String(r),stack:"string"==typeof r?"":r.stack||""}}}}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.appservicePipe=void 0,exports.getAppserviceCore=r;const o=e("../utils/appdevserver/getAppService"),i=e("../../../../../../bussinessMonitor/monitor"),n=e("../../types"),s=e("../utils/appservice/getmainpkgsortedjsfiles"),p=e("../utils/trans/transwxmltojs");async function r(e){var t;const n=Date.now(),r=e.project.projectContext;(0,i.BusinessReport)("appserviceCompile","compile start",JSON.stringify({options:r}));try{const a=[];(0,o.getInitJS)(a);const c=Date.now(),l=await async function(e,t){const o=await p.transWXMLToJS(e,{app:!0,cut:!0});return t.push(o.code),o}(e,a),u=Date.now()-c;(0,i.BusinessReport)("appserviceCompile","wxml compiled",JSON.stringify({options:r,duration:u,codeLength:null===(t=l.code)||void 0===t?void 0:t.length}));const g=Date.now(),{hasAppJS:d,pageFiles:v,componentFiles:m,functionalPageFiles:w,otherFiles:C,allFiles:f}=await s(e),h=Date.now()-g;(0,i.BusinessReport)("appserviceCompile","js files sorted",JSON.stringify({options:r,duration:h,hasAppJS:d,pageCount:(null==v?void 0:v.length)||0,componentCount:(null==m?void 0:m.length)||0,totalCount:(null==f?void 0:f.length)||0}));const S=Date.now();await(0,o.getJSCodeBuild)(e,a,d,v,m,w,C,f);const y=Date.now()-S;(0,i.BusinessReport)("appserviceCompile","js code built",JSON.stringify({options:r,duration:y,fileCount:(null==f?void 0:f.length)||0}));const D=Date.now();await(0,o.getAppCode)(e,a,l,m,v);const J=Date.now()-D;(0,i.BusinessReport)("appserviceCompile","appcode generated",JSON.stringify({options:r,duration:J}));const j=a.join("\n"),x=Date.now()-n;return(0,i.BusinessReport)("appserviceCompile","compile success",JSON.stringify({options:r,totalDuration:x,scriptCount:a.length,contentLength:j.length})),j}catch(e){const t=Date.now()-n;throw(0,i.BusinessReport)("appserviceCompile","compile failed",JSON.stringify({options:r,duration:t,error:e instanceof Error?e.message:String(e)})),e}}exports.appservicePipe={name:n.EPipeCMD.APPSERVICE,execute:async(e,t)=>await r(e)}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileWxmlToGlassEaselPipe=void 0;const l=e("../../../../../services/compilewxml/common/compilewxmlService"),o=e("../types");exports.compileWxmlToGlassEaselPipe={name:o.EPipeCMD.TRANS_WXML_TO_GLASS_EASEL,execute:async(e,i)=>await e.getService(l.ICompilewxmlService).compileWxmlToGlassEasel(i)}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileWxssPipe=void 0;const s=e("../../../../../services/compilewxss/common/compilewxssService"),c=e("../types");exports.compileWxssPipe={name:c.EPipeCMD.COMPILE_WXSS,execute:async(e,i)=>await e.getService(s.ICompilewxssService).compileWxss(i)}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.allPipes=void 0;const s=e("./wccPipe"),l=e("./compileWxmlToGlassEaselPipe"),p=e("./compileWxssPipe");exports.allPipes=[s.wccPipe,l.compileWxmlToGlassEaselPipe,p.compileWxssPipe]}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.pageInitSourcePipe=exports.getPageInitResourceCore=exports.getPageInitResource=void 0;const n=e("tslib").__importDefault(e("path")),o=e("../../../../../../bussinessMonitor/monitor"),r=e("../../types");exports.getPageInitResource=async function(e,t){const o=n.default.join("app",t);return(0,exports.getPageInitResourceCore)(e,o)};exports.getPageInitResourceCore=async function(e,t){var n;const r=Date.now(),i=null===(n=e.project.projectContext)||void 0===n?void 0:n.projectId;(0,o.BusinessReport)("pageInitSourceCompile","compile start",JSON.stringify({projectId:i,filePath:t}));try{const e=t.slice(4,t.length-5),n=`\n <style> </style> <page></page>\n <script>\n var __setCssStartTime__ = Date.now();\n __wxAppCode__['${e}.wxss']();\n var __setCssEndTime__ = Date.now();\n (function() {\n var gf = $gwx( './${e}.wxml' );\n\n if (window.__wxAppCodeReadyCallback__) {\n window.__wxAppCodeReadyCallback__(gf);\n } else {\n document.dispatchEvent(new CustomEvent( "generateFuncReady", {\n detail: {\n generateFunc: gf\n }\n }));\n }\n })();\n <\/script>`,s=Date.now()-r;return(0,o.BusinessReport)("pageInitSourceCompile","compile success",JSON.stringify({projectId:i,filePath:t,rawPath:e,duration:s,contentLength:n.length})),n}catch(e){const n=Date.now()-r;throw(0,o.BusinessReport)("pageInitSourceCompile","compile failed",JSON.stringify({projectId:i,filePath:t,duration:n,error:e instanceof Error?e.message:String(e)})),e}},exports.pageInitSourcePipe={name:r.EPipeCMD.PAGE_INIT_SOURCE,async execute(e,t){const{filepath:n}=t;return await(0,exports.getPageInitResource)(e,n)}}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.pageframePipe=void 0,exports.getPageframeCore=p;const o=e("../utils/common/tools"),n=e("../utils/appdevserver/getwxappcode"),a=e("../../../../../../bussinessMonitor/monitor"),i=e("../../types"),s=e("../utils/trans/transwxmltojs"),r=e("../utils/trans/transwxsstojs");async function p(e,t=!1){var i,p;const _=Date.now(),c=e.project.projectContext;(0,a.BusinessReport)("pageframeCompile","compile start",JSON.stringify({options:c,isMultiPkg:t}));try{const l=[];t||l.push('\n <!DOCTYPE html>\n <html lang="zh-CN">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />\n <meta http-equiv="Content-Security-Policy" content="script-src \'self\' \'unsafe-inline\' \'unsafe-eval\'">\n <link rel="icon" href="data:image/ico;base64,aWNv">\n <script>'),l.push("\n var __mainPageFrameReady__ = window.__mainPageFrameReady__ || function(){}; var __pageFrameStartTime__ = __pageFrameStartTime__ || Date.now(); var __webviewId__ = __webviewId__;\n var __wxAppCode__ = __wxAppCode__ || {}; var __WXML_GLOBAL__ = __WXML_GLOBAL__ || {entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0}; var __vd_version_info__=__vd_version_info__||{};");const m=Date.now(),d=await s.transWXMLToJS(e,{app:!0});l.push(d.code);const u=Date.now()-m;(0,a.BusinessReport)("pageframeCompile","wxml compiled",JSON.stringify({options:c,duration:u,codeLength:null===(i=d.code)||void 0===i?void 0:i.length}));const g=Date.now(),w=await r.transWXSSToJS(e,{app:!0});l.push((0,o.wrapCodeByEval)(w.comm));const v=Date.now()-g;(0,a.BusinessReport)("pageframeCompile","wxss compiled",JSON.stringify({options:c,duration:v,codeLength:null===(p=w.comm)||void 0===p?void 0:p.length}));const f=Date.now(),h=await(0,n.getPageFrameWxAppCode)(e,{app:!0,noJson:!0});l.push(`;(window.eval || __global.__hackEval)(\`${h}\`)`);const y=Date.now()-f;(0,a.BusinessReport)("pageframeCompile","wxappcode generated",JSON.stringify({options:c,duration:y,codeLength:null==h?void 0:h.length})),l.push(";__mainPageFrameReady__() ;var __pageFrameEndTime__ = Date.now()"),t||l.push("<\/script> </head> <body> <div></div> </body> </html>");const x=Date.now()-_;return(0,a.BusinessReport)("pageframeCompile","compile success",JSON.stringify({options:c,totalDuration:x,scriptCount:l.length,totalLength:l.join("").length})),l.join("\n\n")}catch(e){const t=Date.now()-_;throw(0,a.BusinessReport)("pageframeCompile","compile failed",JSON.stringify({options:c,duration:t,error:e instanceof Error?e.message:String(e)})),e}}exports.pageframePipe={name:i.EPipeCMD.PAGEFRAME,async execute(e,t){const{isMultiPkg:o=!1}=t||{};return await p(e,o)}}}(require("licia/lazyImport")(require),require);
|
package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,n){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getInitJS=function(e){e.push('\n var __wxAppData = __wxAppData || {};\n var __wxRoute = __wxRoute || "";\n var __wxRouteBegin = __wxRouteBegin || "";\n var __wxAppCode__ = __wxAppCode__ || {};\n var global = global || {};\n var __WXML_GLOBAL__=__WXML_GLOBAL__ || {};\n var __wxAppCurrentFile__=__wxAppCurrentFile__||"";\n var Component = Component || function(){};\n var definePlugin = definePlugin || function(){};\n var requirePlugin = requirePlugin || function(){};\n var Behavior = Behavior || function(){};\n var __vd_version_info__ = __vd_version_info__ || {};\n ')},exports.getJSCodeBuild=async function(e,n,r,o,t,i,s,p){const _=p.map((e=>`${e}.js`)),c=await Promise.all(_.map((n=>u(e,n,{}))));let f=[],d=[c.map((e=>(e.helpers&&(f=a(f,e.helpers)),e.code))).join("\n")];const v=await l(e,f);d=a(Array.from(v.values()),d),n.push(d.join("\n")),r&&n.push("\n try {\n require(\"app.js\")\n } catch (error) {\n !error.from && console.error('app.js错误:\\n',error)\n throw error\n }")},exports.getBabelCodeByName=c,exports.getBabelHelperAndDepsCode=l,exports.getAppCode=async function(e,n,o,t,a){const i=new r.default;for(const r of t.concat(a)){const t=async function(){n.push(await _.getWxAppCodeOfPage(e,r,o.name))};i.addTask(t)}await i.runAllAsync()};const r=e("tslib").__importDefault(e("../../../../../../../utils/taskmanager")),o=e("../../../../../../../build-server/tasks/common/utils/common/tools"),t=e("../../../../../../../build-server/tasks/common/utils/babel/babelhelpers"),a=e("licia/concat"),i=e("licia/isEmpty"),s=e("licia/unique"),p=e("../../../../../../../build-server/tasks/common/weapp.config"),u=e("../appservice/getjsfile"),_=e("../appservice/getwxappcode");async function c(e,n){return function(e,n){return`define("${(0,o.escapeQuot)(e,'"')}", function(require, module, exports, ${p.NO_BOM_VAR.join(",")}){ ${n} \n})`}(`${n}.js`,await(0,t.getHelperContent)(e.project.setting,n))}async function l(e,n){if(!i(n)){n=s(n);const r=(0,t.getHelperDeps)(e.project,new Set(n)),o=new Map;for(const n of r){const r=await c(e,n);o.set(n,r)}return o}return new Map}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPageFrameWxAppCode=async function(e,t={}){const s=await o.getAppConfig(e),{app:p,page:r}=t;let i;if(!p&&(i=void 0,!i))return"";const u=await n.getFileListJustInPack(e,s,i),d=[];for(let n=0,o=u.length;n<o;n++){const o=await c(u[n],"$gwx");if(d.push(...o),!t.noWXSS){const t=await a(e,u[n]);d.push(...t)}}return d.join("\n")};const n=e("../project/customcomponent"),o=e("../project/appconfig"),s=e("../trans/transwxsstojs");async function c(e,t){const n=[],o=encodeURI(e);return n.push(`__wxAppCode__[decodeURI("${o}") + ".wxml"]=${t}("./" + decodeURI("${o}") + ".wxml")`),n}async function a(e,t){const n=[],o=await s.transWXSSToJS(e,{page:t});if(o.page){const e=encodeURI(t);n.push(`__wxAppCode__[decodeURI("${e}") + ".wxss"]=${o.page}`)}return n}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"use strict";const i=e("../../../../../../../build-server/tasks/common/utils/babel/babelhelpers"),s=e("../../../../../../../build-server/tasks/common/utils/transformsourcemap"),r=e("../../../../../../../build-server/tasks/common/utils/project/generatecode.utils"),o=e("../../../../../../../build-server/tasks/common/utils/filerules"),n=e("lodash");function l(e,t,i){const n=function(e){if(e)try{let t="string"==typeof e?JSON.parse(e):e;return t=Object.assign(Object.assign({},t),{mappings:`;${t.mappings}`,sources:(0,s.transformSourceMapSources)(t.sources)}),t}catch(e){}return""}(t.map||""),l=i.hideRules||[];let c=(0,r.wrapSourceCodeInDefine)(e,`\n${t.code}`);return c=(0,r.inlineSourceMap)(c,!o.isFileHidedInDevtools(e,l)&&n||"",i.sourceURL),{code:c,map:n}}module.exports=async function(e,t,s={injectHelpers:!0}){t=decodeURI(t);const r=await async function(e,t){var s,r,o;const c=e.project,a=("miniProgram"===t.type||"game"===t.type?c.miniprogramRoot:c.pluginRoot)||"",{fileName:u}=t,p=await(0,i.tryGetHelperJSFile)(c,u,t.injectHelpersSync);if(p)return{code:p,helpers:[],customTranslated:!1,isBabelIgnore:!1,needCompile:!1,isLargeFile:!1};const m=(0,i.getHelperOutputPath)(c.setting),d=await e.callCompiler("compileJS",{root:a,filePath:u,babelRoot:m,setting:{enhance:null===(s=c.setting)||void 0===s?void 0:s.enhance,es6:null===(r=c.setting)||void 0===r?void 0:r.es6,minify:!1,disableUseStrict:!!c.setting.disableUseStrict,compileWorklet:!!c.setting.compileWorklet},resultType:"dev"}),g=l(u,d,{hideRules:(null===(o=c.debugOptions)||void 0===o?void 0:o.hidedInDevtools)||[],sourceURL:t.sourceURL});return n.cloneDeep(Object.assign(Object.assign(Object.assign({},d),g),{helpers:d.helpers||[]}))}(e,{type:"miniProgram",fileName:t});return{code:r.code,helpers:r.helpers,map:r.map,mtime:r.mtime}}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"use strict";const i=e("tslib").__importDefault(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),a=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),r=e("../project/appconfig");module.exports=async e=>{let t=await i.default.get("getMainPkgSortedJSFiles");if(t)return a.compileCacheReporter.hitCache("getMainPkgSortedJSFiles"),t;a.compileCacheReporter.startGenCache("getMainPkgSortedJSFiles");const o=await r.getAppConfig(e),l=await e.callCompiler("getMainPkgSortedJSFiles");if(o.functionalPages){const e=l.functionalPageFiles.map((e=>`__wx__/${e}`));e.unshift("__wx__/functional-page"),l.functionalPageFiles=e}return t=l,await i.default.set("getMainPkgSortedJSFiles",t),a.compileCacheReporter.finishGenCache("getMainPkgSortedJSFiles"),t}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){"use strict";const t=e("tslib"),o=t.__importDefault(e("../../../../../../../utils/taskmanager")),a=e("../../../../../../../build-server/tasks/common/utils/common/tools"),c=t.__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),i=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),n=e("../project/wxappcodejson"),p=e("../project/customcomponent");async function s(e,r,t,o=!0){let c={};try{c=await n(e,decodeURI(r))}catch(e){c={}}let i=`\n var decodePathName = decodeURI("${(0,a.escapeQuot)(r,'"')}")\n __wxAppCode__[decodePathName + ".json"] = ${JSON.stringify(c)}\n __wxAppCode__[decodePathName + ".wxml"] = ${t}("./" + decodePathName + ".wxml")\n `;return o&&(i+="\n __wxRoute = decodePathName\n __wxRouteBegin = true\n __wxAppCurrentFile__ = decodePathName + \".js\"\n try {\n require(__wxAppCurrentFile__)\n } catch (error) {\n // 插件项目不能hack define和require,走这里,异常只能精准到页面,内部的多层依赖的报错无法精准\n !error.from && console.error('页面【' + decodePathName + ']错误:\\n',error)\n throw error\n }"),i}module.exports={getWxAppCode:async function(r,n=!0){let m=await c.default.get(c.CacheKey.miniProgramAppServiceWXAppCode);if(m)return i.compileCacheReporter.hitCache(c.CacheKey.miniProgramAppServiceWXAppCode),m;i.compileCacheReporter.startGenCache(c.CacheKey.miniProgramAppServiceWXAppCode);const d=await(await Promise.resolve().then((()=>t.__importStar(e("../project/appconfig"))))).getAppConfig(r),u=await p.getFileListJustInPack(r,d),l=[],h=new o.default;for(const e of u)h.addTask(s,r,e,"$gwx",n);return l.push(...await h.runAllAsync()),m=(0,a.escapeScript)(l.join("\n")),await c.default.set(c.CacheKey.miniProgramAppServiceWXAppCode,m),i.compileCacheReporter.finishGenCache(c.CacheKey.miniProgramAppServiceWXAppCode),m},getWxAppCodeOfPage:s}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(_,R){"use strict";module.exports={APP_JSON_READ_ERR:10001,APP_JSON_PARSE_ERR:10002,APP_JSON_PAGES_ERR:10003,APP_JSON_ENTRANCE_NOT_FOUND_ERR:1004,APP_JSON_CONTENT_ERR:10005,PAGES_JSON_PARSE_ERR:10006,APP_JSON_WXML_NOT_FOUND:10007,APP_JSON_JS_NOT_FOUND:10008,JSON_CONTENT_ERR:10009,EXT_JSON_PARSE_ERR:10011,EXT_JSON_PAGES_ERR:10012,EXT_JSON_CONTENT_ERR:10013,APPSERVICE_LOSE_WXML:10021,APPSERVICE_LOSE_JS:10022,FILE_NOT_UTF8:10031,BABEL_TRANS_JS_ERR:10032,UGLIFY_JS_ERR:10033,BABILI_JS_ERR:10034,JS_ES6_ERR:10035,FILE_FLAT_ERR:10036,POST_WXSS_ERR:10037,TRANS_WXML_JS_ERR:10040,TRANS_WXSS_JS_ERR:10041,SUMMER_PLUGIN_ERR:10045,SUMMER_PLUGIN_CODE_ERR:10046,VENDOR_MD5_NOT_MATCH:10050,VENDOR_WCC_FILE_NOT_FOUND:10051,VENDOR_WCSC_FILE_NOT_FOUND:10052,CODE_SIZE_EXCEED:10060,GET_GEO_LOCATION_ERR:10070,QCLOUD_SVR_NO_FOUND_ERR:10080,QCLOUD_SVR_POLL_TIMEOUT:10081,QCLOUD_SVR_POLL_DOING:10082,QCLOUD_SVR_UP_DIR_CHECK:10083,PLUGIN_JSON_READ_ERR:10091,PLUGIN_JSON_PARSE_ERR:10092,PLUGIN_JSON_CONTENT_ERR:10093,PLUGIN_PAGE_JSON_PARSE_ERR:10094,PLUGIN_JSON_FILE_NOT_FOUND:10095,PLUGIN_PAGE_JSON_CONTENT_ERR:10096,PLUGIN_TRANS_WXML_JS_ERR:10097,PLUGIN_TRANS_WXSS_JS_ERR:10101,PLUGIN_JS_ES6_ERR:10098,PLUGIN_ONLINE_CODE_UNPACK_ERR:10099,PAGE_JSON_PARSE_ERR:10020,SITE_MAP_JSON_CONTENT_ERROR:10100,CHECK_UPLOAD_STATUS_ERR:10200,CLEAR_SESSION_ERR:10201,GAME_CODE_LIB_MD5_ERR:10202,LOAD_QRCODE_OTHER_ERR:10203,JUMP_QCLOUD_PAGE_ERR:10204,PACK_NPM_ERR:10205,GET_PROJECT_CONFIG_ERR:10206,MINI_PROGRAM_CONSUME_TIMING:10207,MINI_GAME_CONSUME_TIMING:10208,UPLOAD_PROGRESS_FAIIL:10209,UPLOAD_PLUGIN_ERR:10210,UPLOAD_FAIILED:10211,COMPILE_CONDITION_APPID_ERR:10212,COMPILE_CONDITION_PROGRAM_ERR:10213,COMPILE_CONDITION_ERR:10214,COMPILE_CONDITION_ERR_WITH_DETAIL:10215,WIDGET_GET_SEARCH_QUERY_ERROR:10216,QCLOUD_CHOOSE_ENVIRONMENT_ERROR:10217,QCLOUD_UPLOAD_FAIL:10218,TOOLBAR_REMOTE_DEBUG_ERROR:10219,PREPROCESS_UPLOAD_ERROR:10220,DOWNLOAD_SOURCEMAP_ERROR:10221,SOURCEMAP_WRITE_ERROR:10222,CLEAN_USER_AUTH_ERROR:10223,JUMP_WXGIT_ERROR:10224,TCB_DELETE_FAILED:10225,FETCH_REMOTE_SETTING_ERROR:10226,UPLOAD_LOCAL_SETTING_ERROR:10227,UPLOAD_SOURCE_CODE_ERROR:10228,UPLOAD_EXCEED_SIZE_LIMIT:10230,PROJECT_CONFIG_JSON_ERROR:10231,TEST_CODE_RUN_ERROR:10232,AUTO_UPLOAD_ERROR:10233,CLOUD_UPLOAD_OPEN_ERROR:10234,CLOUD_BUILD_OPEN_ERROR:10201,WEBVIEW_NETWORK_ERROR:20010,APPSERVICE_NETWORK_ERROR:20011,PLUGIN_ERROR:20012,ONLINE_CODE_UNPACK_ERR:3e4,URL_SCHEME_INVALID_ERROR:31e3,URL_SCHEME_OTHER_ERROR:31001,APP_UPGRADE_ERROR:35e3,APP_ADD_AUTHO_PAGE_ERROR:35001}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.wrapCodeByEval=function(e){return`;(window.eval || __global.__hackEval)('${e}')`}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,a){"use strict";const o=e("tslib"),t=e("../../../../../../../services/store/common/storeService"),i=o.__importDefault(e("../../../../../../../services/common/getservice")),n=e("../../../../../../../build-server/tasks/common/utils/common/tools"),r=o.__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),s=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),c=e("./helper/theme"),l=e("../../../../../../../bussinessMonitor/monitor"),p=e("path"),g=e("./appjson"),d=e("./pagejson");async function u(e,a){const t=await g(e),i=function(e,a){const o=e.subPackages||e.subpackages;return Object.assign(Object.assign({},e),{pages:e.pages||[],resizable:!!e.resizable,subPackages:o,debug:!!e.debug,widgets:e.widgets||[],customClose:!!e.customClose,workers:e.workers||"",cloud:!!e.cloud,global:{window:Object.assign(Object.assign({},(0,c.getDefaultWindowConfig)(e.darkmode&&a)),e.window)},page:{},networkTimeout:Object.assign({request:6e4,uploadFile:6e4,connectSocket:6e4,downloadFile:6e4},e.networkTimeout),ext:e.ext||{},extAppid:e.extAppid||"",plugins:e.plugins||{},mainPlugins:Object.assign({},e.plugins),preloadRule:e.preloadRule,permission:e.permission,requiredBackgroundModes:e.requiredBackgroundModes,functionalPages:e.functionalPages,style:e.style,useExtendedLib:e.useExtendedLib||{},supportedMaterials:e.supportedMaterials||[],usingShopPlugin:e.usingShopPlugin||void 0,embeddedAppIdList:e.embeddedAppIdList,halfPage:e.halfPage,resolveAlias:e.resolveAlias,renderer:e.renderer,enablePassiveEvent:e.enablePassiveEvent,debugOptions:e.debugOptions,requiredPrivateInfos:e.requiredPrivateInfos||[],__warning__:e.__warning__||""})}(t,a),n=(e,a)=>{a.__warning__&&(i.__warning__&&(i.__warning__+="\n"),i.__warning__+=`${e}: ${a.__warning__}`)},r=i.pages;i.entryPagePath=t.entryPagePath?`${t.entryPagePath}.html`:`${r[0]}.html`;for(const a of r){const t=await d(e,`${a}`)||{};n(a,t);const{singlePage:r}=t,s=o.__rest(t,["singlePage"]);i.page[`${a}.html`]={window:s||{},singlePage:r,renderer:t.renderer}}if(i.accountCardPackage)for(const e of i.accountCardPackage.cardList){const a=p.posix.join(i.accountCardPackage.root,e.componentPath);i.page[`${a}.html`]={window:{}}}i.page=Object.assign({},i.page);const s=Object.assign({},t.tabBar),l=[].concat(s.list||[]),u=[];for(const e of l){const a=Object.assign({},e);a.pagePath+=".html",u.push(a)}s.list=u,i.tabBar=s,t.darkmode&&(i.supportDarkmode=!0),i.lazyCodeLoading=t.lazyCodeLoading,i.publibSupportLazyload=!1,i.isLazyLoad=!1;let m={};const{themeLocation:h}=t;return void 0!==h&&""!==h.trim().replace(/^\.\//,"")&&(m=await e.callCompiler("checkThemeJSON",{themeLocation:h})),await async function(e){var a;const{project:o,isDarkMode:t,themeLocation:i,themeJSON:n,appConfig:r}=e,s=p.join(o.projectpath,o.miniprogramRoot||""),{windowConfigRules:l,tabbarRules:g,tabbarListItemRules:d}=(0,c.checkThemeRules)(s,o);(0,c.checkVariables)({isDarkMode:t,themeLocation:i,themeJSON:n,filePath:"app.json or ext.json",windowConfig:r.global.window,rules:l,keyPrefix:'["window"]',isPlugin:!1});for(const e in r.page){const a=e.replace(/\.html$/,"");(0,c.checkVariables)({isDarkMode:t,themeLocation:i,themeJSON:n,filePath:`${a}.json`,windowConfig:r.page[e].window||{},rules:l,keyPrefix:"",isPlugin:!1})}if(r.tabBar){(0,c.checkVariables)({isDarkMode:t,themeLocation:i,themeJSON:n,filePath:"app.json or ext.json",windowConfig:r.tabBar||{},rules:g,keyPrefix:'["tabBar"]',isPlugin:!1});for(let e=0;e<(null===(a=r.tabBar)||void 0===a?void 0:a.list.length);e++)(0,c.checkVariables)({isDarkMode:t,themeLocation:i,themeJSON:n,filePath:"app.json or ext.json",windowConfig:r.tabBar.list[e],rules:d,keyPrefix:`["tabBar"]["list"][${e}]`,isPlugin:!1})}}({project:e.project,themeJSON:m,themeLocation:h,isDarkMode:t.darkmode&&a,appConfig:i}),i}module.exports={getAppConfig:async function(e,a=!1){var o,c;const p=Date.now(),g=e.project.projectContext;(0,l.BusinessReport)("appconfig","getAppConfig start",JSON.stringify({options:g,forceDarkMode:a}));try{let d;const m=e.project.backendProjectContext;let h;d=m?m.compileOptions.deviceState.darkmode||!1:await(0,i.default)(t.IStoreService).getValue("toolbar","darkmode")||!1,h=d||a?await async function(e){var a,o;const t=(await(null===(o=(a=e.project).attr)||void 0===o?void 0:o.call(a))).platform;let i=await r.default.get(r.CacheKey.miniProgramAppConfigDarkMode);if((null==i?void 0:i.value)&&i.platform===t)s.compileCacheReporter.hitCache(r.CacheKey.miniProgramAppConfigDarkMode);else{s.compileCacheReporter.startGenCache(r.CacheKey.miniProgramAppConfigDarkMode);const a=await u(e,!0);i={platform:t,value:(0,n.makeDeepReadonly)(a)},await r.default.set(r.CacheKey.miniProgramAppConfigDarkMode,i),s.compileCacheReporter.finishGenCache(r.CacheKey.miniProgramAppConfigDarkMode)}return i.value}(e):await async function(e){var a,o;const t=(await(null===(o=(a=e.project).attr)||void 0===o?void 0:o.call(a))).platform;let i=await r.default.get(r.CacheKey.miniProgramAppConfig);if((null==i?void 0:i.value)&&i.platform===t)s.compileCacheReporter.hitCache(r.CacheKey.miniProgramAppConfig);else{s.compileCacheReporter.startGenCache(r.CacheKey.miniProgramAppConfig);const a=await u(e,!1);i={platform:t,value:(0,n.makeDeepReadonly)(a)},await r.default.set(r.CacheKey.miniProgramAppConfig,i),s.compileCacheReporter.finishGenCache(r.CacheKey.miniProgramAppConfig)}return i.value}(e);const f=Date.now()-p;return(0,l.BusinessReport)("appconfig","getAppConfig success",JSON.stringify({options:g,duration:f,pageCount:(null===(o=h.pages)||void 0===o?void 0:o.length)||0,subPackageCount:(null===(c=h.subPackages||h.subpackages)||void 0===c?void 0:c.length)||0,hasDarkMode:!!d||a})),h}catch(e){const a=Date.now()-p;throw(0,l.BusinessReport)("appconfig","getAppConfig failed",JSON.stringify({options:g,duration:a,error:e instanceof Error?e.message:String(e)})),e}}}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){"use strict";const i=e("tslib").__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),a=e("../../../../../../../build-server/tasks/common/utils/cache/reporter");module.exports=async e=>{let r=await i.default.get(i.CacheKey.miniProgramCompiledAppJSON);if(r)return a.compileCacheReporter.hitCache(i.CacheKey.miniProgramCompiledAppJSON),r;a.compileCacheReporter.startGenCache(i.CacheKey.miniProgramCompiledAppJSON);try{r=await e.callCompiler("getAppJSON")}catch(e){throw e.message=`app.json ${e.message}`,e}return await i.default.set(i.CacheKey.miniProgramCompiledAppJSON,r),a.compileCacheReporter.finishGenCache(i.CacheKey.miniProgramCompiledAppJSON),r}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o,n){"use strict";const t=o("../web/processPath"),e=o("path"),s=(o,n)=>e.posix.normalize(e.join(o,n).replace(/^\/+/,"")).replace(/\\/g,"/"),i=(o,n)=>o.endsWith(n)?o:o+n,c=(o,n)=>{let e;const s=n.subPackages||n.subpackages;if(Array.isArray(s))for(const n of s)if(n&&"string"==typeof n.root&&(0,t.isLeftSubPathOfRight)(o,i(n.root,"/"))){e=n;break}return e};const a=async(o,n)=>{const e=await async function(o){return(await o.callCompiler("getAllPageAndComponent")).map((o=>`${o}.json`))}(o),i=new Set;if(n.pages)for(const o of n.pages)i.add(o);const a=n.subPackages||n.subpackages;if(Array.isArray(a))for(const o of a)if(o&&"string"==typeof o.root&&Array.isArray(o.pages))for(const n of o.pages){const t=s(o.root,String(n));i.add(t)}const r={};for(const s of e){const e=s.replace(/\.json$/,"");if("app"===(0,t.normalizePath)(e))continue;const i=await o.callCompiler("getPageJSON",e);if(i.usingComponents||i.componentGenerics||!0===i.component){const o=c(e,n);r[e]={config:o,file:s,pageJSON:i}}}for(const t of i)if(!r[t]){const e=await o.callCompiler("getPageJSON",t);r[t]={config:c(t,n),file:`${t}.json`,pageJSON:e||{}}}return r};async function r(o,n,t){const e=await a(o,n),s=[];for(const o in e){const n=e[o];t?n.config&&n.config.root===t.root&&s.push(o):n.config||s.push(o)}return[...s]}module.exports={getFileListJustInPack:r,getWxssCompileConfig:async function(o,n,t){return await r(o,n,t)},getWxmlCompileConfig:async function(o,n,t){let e=[],s=0;const i=await a(o,n);for(const o in i){const n=i[o];if(!n)continue;if(!t&&n.config||t&&!n.config||t&&n.config&&t.root!==n.config.root)continue;const c=n.pageJSON;if(c&&(c.usingComponents||c.componentGenerics)){e.push(`./${o}.wxml`);const n=Object.assign(Object.assign({},c.usingComponents),c.componentGenerics);s++,e.push(Object.keys(n).length),e=e.concat(Object.keys(n))}}return e.unshift(s),e},getWxmlCompileLazyConfig:async function(o,n,t){return(await r(o,n,t)).map((o=>`./${o}`))},getCustomComponentsConfig:a,findSubpackageForFile:c}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkTabbarListItemIconPath=d,exports.checkThemeRules=function(e,o){const t=(t,i)=>{const r=n.join(e,i),a=o?d(t,r,o):[];a.length>0&&g({msg:a.join("\n"),filePath:"app.json or ext.json"})};return{windowConfigRules:[{key:"navigationBarTextStyle",valids:["black","white"]},{key:"backgroundTextStyle",valids:["dark","light"]},{key:"navigationBarBackgroundColor",hexColor:!0},{key:"backgroundColor",hexColor:!0},{key:"backgroundColorTop",hexColor:!0},{key:"backgroundColorBottom",hexColor:!0}],tabbarRules:[{key:"selectedColor",hexColor:!0},{key:"color",hexColor:!0},{key:"backgroundColor",hexColor:!0},{key:"borderStyle",valids:["black","white"]}],tabbarListItemRules:[{key:"iconPath",validate:t},{key:"selectedIconPath",validate:t}]}},exports.getDefaultWindowConfig=function(e){return e?{backgroundColor:"#232323",backgroundTextStyle:"light"}:{backgroundColor:"#ffffff",backgroundTextStyle:"dark"}},exports.checkVariables=function(e){var o;const{windowConfig:t,themeLocation:i,filePath:r,isDarkMode:a,themeJSON:n,rules:c,keyPrefix:s,isPlugin:d=!1}=e,u=a?n.dark||{}:n.light||{},k=a?"dark":"light";for(const e of c)if((t[e.key]||"").startsWith("@")){const a=(null===(o=t[e.key])||void 0===o?void 0:o.slice(1))||"";if(a&&void 0===i){if(d)continue;g({msg:f.config.THEME_JSON_SHOULD_EXIST.format(`${s}["${e.key}"]`,`"@${a}"`,'appJSON["themeLocation"]'),filePath:r})}const n=u[a];if(void 0===n){if(d)continue;g({msg:f.config.JSON_VARIABLE_VALUE_NOT_FOUND.format(`${s}["${e.key}"]: "@${a}"`,`${i}["${k}"]`),filePath:r})}void 0!==n&&(Array.isArray(e.valids)&&e.valids.indexOf(n)<0&&g({msg:f.config.THEME_JSON_VALUE_SHOULD_BE.format(`${i}["${k}"]["${a}"]`,`${r} ${s}["${e.key}"]`,`${JSON.stringify(e.valids)}`),filePath:i}),e.hexColor&&!l.isHexColor(n)&&g({msg:f.config.THEME_JSON_VALUE_SHOULD_BE.format(`${i}["${k}"]["${a}"]`,`${r} ${s}["${e.key}"]`,"hexColor"),filePath:i}),e.validate&&e.validate(`${s}["${e.key}"]`,n),t[e.key]=n)}};const t=e("tslib"),i=e("../../../../../../../../services/locales/common/locales"),r=t.__importDefault(e("../../../../../../../../services/common/getservice")),a=e("../../../../../../../../services/pluginFileReader/common/pluginFileReader"),n=e("path"),l=e("../../../../../../../../utils/colorutils"),c=e("../../common/apperrcode.config"),s=[".png",".jpg",".jpeg"],f=(0,r.default)(i.ILocalesService).getLocales();function d(e,o,t){const i=[],l=(0,r.default)(a.IPluginFileReaderService).stat(t,o);if(!l)return i.push(f.config.NOT_FOUND.format(e)),i;(t.setting||{}).MaxTabbarIconSize,l.mtimeMs;const c=n.extname(o);return s.indexOf(c)<0&&i.push(f.config.FILE_EXT_FORMAT_ERROR.format(e,s.join("、"))),i}function g(e={msg:"",filePath:"app.json"}){const{msg:o,filePath:t}=e,i=new Error(o);throw i.code=c.JSON_CONTENT_ERR,i.path=t,i}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,i){"use strict";const a=e("tslib"),t=e("../../../../../../../build-server/tasks/common/utils/interfacebuilder/registry"),r=a.__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),o=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),s=e("path"),n=e("lodash");module.exports=async(e,i)=>{const a=e.project,c=`${a.miniprogramRoot}${i}.json`,m=s.posix.join(a.projectpath,c);let l,p=await r.default.get(r.CacheKey.miniProgramCompiledPageJSON);if(p||(p={},await r.default.set(r.CacheKey.miniProgramCompiledPageJSON,p)),p[m]&&!a.isIB)return o.compileCacheReporter.hitCache(r.CacheKey.miniProgramCompiledPageJSON),n.cloneDeep(p[m]);o.compileCacheReporter.startGenCache(r.CacheKey.miniProgramCompiledPageJSON);try{l=await e.callCompiler("getPageJSON",i),l.usingComponents||(l.usingComponents={})}catch(e){throw e.message=`${c} ${e.message}`,e}if(a.isIB&&i.indexOf("miniprogram_npm")<0){const e=t.interfaceBuilderRegistry.get(6);if(e){const i=e(a,l);l=Object.assign(Object.assign({},l),{usingComponents:Object.assign(Object.assign({},l.usingComponents),i)})}}return p[m]=l,await r.default.set(r.CacheKey.miniProgramCompiledPageJSON,p),o.compileCacheReporter.finishGenCache(r.CacheKey.miniProgramCompiledPageJSON),n.cloneDeep(p[m])}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,o){"use strict";const i=e("tslib").__importStar(e("../../../../../../../build-server/tasks/common/utils/cache/compile")),n=e("../../../../../../../build-server/tasks/common/utils/cache/reporter"),t=e("lodash"),r=e("./pagejson"),a=e("./appconfig");module.exports=async function(e,o){let p=await i.default.get(i.CacheKey.miniProgramWXAppCodeJSON);if(p||(p={},await i.default.set(i.CacheKey.miniProgramWXAppCodeJSON,p)),p[o]&&!e.project.isIB)return n.compileCacheReporter.hitCache(i.CacheKey.miniProgramWXAppCodeJSON),t.cloneDeep(p[o]);n.compileCacheReporter.startGenCache(i.CacheKey.miniProgramWXAppCodeJSON);const c=await a.getAppConfig(e),s=await r(e,o);if(s.usingComponents&&Object.keys(s.usingComponents).length>0){const e={};for(const o in s.usingComponents){const i=s.usingComponents[o]||"";c.plugins?e[o]=i.replace(/^plugin:\/\/([^/]*)\/(.*)/,((e,o,i,n,t)=>{var r;const a=(null===(r=c.plugins)||void 0===r?void 0:r[o])||void 0;return a?`plugin://${a.provider}/${i}`:t})):e[o]=i}s.usingComponents=e}return p[o]=s,await i.default.set(i.CacheKey.miniProgramWXAppCodeJSON,p),n.compileCacheReporter.finishGenCache(i.CacheKey.miniProgramWXAppCodeJSON),t.cloneDeep(p[o])}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"use strict";const n=t("../web/processPath"),o=t("../../../types"),a=10040,i=t("../project/customcomponent"),c=t("../project/appconfig");async function r(t,e){try{return await async function(t,e){const{appConfig:a,config:c,lazyload:r,cut:l}=e,{srcPath:s,files:p,hasWxs:f,usePartialReplaceContent:u,partialEnable:g,replaceContent:m}=await async function(t,e){const{appConfig:o,config:a,lazyload:i}=e,c=await t.callCompiler("getPackageWxmlAndWxsFiles",(null==a?void 0:a.root)||"__APP__");let r=c.wxmlFiles,l=c.wxsFiles;Object.entries(c.content).forEach((([t,e])=>{t.startsWith("./")||(c.content[`./${t}`]=e)})),a&&i&&(r=r.filter((t=>(0,n.isLeftSubPathOfRight)(t,a.root))),l=l.filter((t=>(0,n.isLeftSubPathOfRight)(t,a.root))));let s=r.concat(l),p=!1;(null==l?void 0:l.length)>0&&(p=!0),s=s.map((t=>`./${t}`));let f={};return c&&(f=c.content),{srcPath:t.project.miniprogramRoot||"",files:s,hasWxs:p,usePartialReplaceContent:!1,partialEnable:!1,replaceContent:f}}(t,e);if(0===p.length&&r)return{pages:{},names:{}};const C=c?`$${Buffer.from(c.root).toString("hex")}`:"$gwx",d=">_<"+Date.now()%1e4,w=(await i.getWxmlCompileConfig(t,a,c)).join(d);let h="";if(r){let e=await i.getWxmlCompileLazyConfig(t,a,c);if(g)if(u)e=["index"];else{const t=p.map((t=>t.replace(/^\.\//,"")));e=e.filter((e=>t.includes(`${e}.wxml`.replace(/^\.\//,""))))}h=e.join(d)}return r&&!h?{pages:{},names:{}}:await t.requestPipe(o.EPipeCMD.WCC,{files:p,isCut:l,lazyloadConfig:h,configSplit:d,configContent:w,hasWxs:f,genfuncName:C,cwd:s,replaceContent:m,isMiniAppProject:!1})}(t,e)}catch(t){throw function(t){const e=new Error(t.toString());return e.code=a,e.msgForConsole=(null==t?void 0:t.message)||t.toString(),e}(t)}}module.exports={transWXMLToJS:async function(t,e={}){const n=await c.getAppConfig(t),{app:o,page:a,cut:i,hotReloadFile:l}=e;let s;if(l){s=void 0;const{name:e,code:o}=await r(t,{appConfig:n,config:s,cut:i});return{name:e,code:o}}if(!o&&(s=null,!s))return{code:"",name:"$gwx"};const p=await r(t,{appConfig:n,config:s,cut:i}),{name:f,code:u}=p;return{name:f,code:u}}}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o,t){"use strict";const n=o("../../../types"),e=o("path"),s=o("../project/appconfig"),a=o("../project/customcomponent");async function i(o,t){try{return await async function(o,t){const{appConfig:s,config:i,lazyload:c}=t,r=await o.callCompiler("getPackageWxssFiles",(null==i?void 0:i.root)||"__APP__"),p=r.wxssFiles,l={};p.forEach((o=>{l[o]=r.content[o]||""})),Object.entries(l).forEach((([o,t])=>{o.startsWith("./")||(l[`./${o}`]=t)}));const u={};p.forEach((o=>{u[o]=!0}));const g=(null==i?void 0:i.pages.map((o=>e.posix.join(i.root,o))))||s.pages,f=[];let m=0;g.forEach((o=>{u[`${o}.wxss`]&&(m++,f.push(`./${o}.wxss`),delete u[`${o}.wxss`])})),(await a.getWxssCompileConfig(o,s,i)).forEach((o=>{u[`${o}.wxss`]&&(m++,f.push(`./${o}.wxss`),delete u[`${o}.wxss`])}));for(const o in u)"app.wxss"===o&&0===m&&(m=1),f.push(`./${o}`);let w={};r&&(w=r.content),w=await async function(o){const{appConfig:t,config:n,replaceContent:e}=o;return Object.assign({},e)}({appConfig:s,config:i,replaceContent:w});const C=o.project.miniprogramRoot||"";return await o.requestPipe(n.EPipeCMD.COMPILE_WXSS,{pageCount:m,files:f,cwd:C,subPackage:null==i?void 0:i.root,lazyload:c,replaceContent:w})}(o,t)}catch(o){if("CustomError"===(null==o?void 0:o.type))throw o;throw function(o){const t=new Error(o.toString());return t.code=10041,t.msgForConsole=o.message,console.error(o.message),t}(o)}}module.exports={transWXSSToJS:async function(o,t={}){const n=await s.getAppConfig(o),{app:e,page:a,hotReloadFile:c}=t;if(c){const t=void 0,e=await i(o,{appConfig:n,config:t});return{comm:e.comm,page:(null==e?void 0:e[`./${c}`])||""}}if(e){const t=await i(o,{appConfig:n})||{};return{comm:(null==t?void 0:t.comm)||""}}const r=`./${a}.wxss`;{const t=await i(o,{appConfig:n});return{comm:null==t?void 0:t.comm,page:(null==t?void 0:t[r])||""}}}}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.normalizePath=i,exports.isLeftSubPathOfRight=function(e,t){void 0===e&&(console.error(new Error("The child string is undefined here, please check!!")),e="");const r=e.startsWith(t),n=function(e,t){if(!t)return!0;if(t=i(t),e=i(e),!t.endsWith("/")){if(e===t)return!0;t=`${t}/`}return!!e.startsWith(t)}(e,t);return r===n||n||console.error(new Error(`${e} ${t} difference check sub path here! new result: ${n}`)),n};const r=e("tslib").__importStar(e("path"));function i(e="",t={}){let i=r.posix.normalize(e.replace(/\\/g,"/"));return(e.startsWith("//")||e.startsWith("\\\\"))&&(i.startsWith("//")||(i=`/${i}`)),t.leading?i.startsWith(t.leading)||(i=`${t.leading}${i}`):t.noLeading&&i.startsWith(t.noLeading)&&(i=i.slice(t.noLeading.length)),t.trailing?i.endsWith(t.trailing)||(i=`${i}${t.trailing}`):t.noTrailing&&i.endsWith(t.noTrailing)&&(i=i.slice(0,-t.noTrailing.length)),i}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.wccPipe=void 0;const c=e("../../../../../services/compilewxml/common/compilewxmlService"),o=e("../types");exports.wccPipe={name:o.EPipeCMD.WCC,async execute(e,i){const{files:o,isCut:t,lazyloadConfig:n,configSplit:r,configContent:l,hasWxs:s,genfuncName:p,cwd:a,replaceContent:m,isMiniAppProject:u}=i;return await e.getService(c.ICompilewxmlService).compileWxml({files:o,isCut:t,lazyloadConfig:n,configSplit:r,configContent:l,hasWxs:s,genfuncName:p,cwd:a,replaceContent:m,isMiniAppProject:u})}}}(require("licia/lazyImport")(require),require);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(E,e){"use strict";var S,_;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EPipeCMD=void 0,(_=S||(exports.EPipeCMD=S={})).WCC="WCC",_.TRANS_WXML_TO_GLASS_EASEL="TRANS_WXML_TO_GLASS_EASEL",_.COMPILE_WXSS="COMPILE_WXSS",_.PAGEFRAME="PAGEFRAME",_.PAGE_INIT_SOURCE="PAGE_INIT_SOURCE",_.APPSERVICE="APPSERVICE"}(require("licia/lazyImport")(require),require);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PluginDriver=void 0,exports.genResovleExtConf=genResovleExtConf,exports.getPluginContext=getPluginContext;const customError_1=require("../../../utils/customError"),workerThread_1=require("../original/workerThread"),worker_1=require("./worker"),debug_1=require("../../../utils/debug");function genResovleExtConf(r){const o={json:["json"],wxml:["wxml"],wxss:["wxss"],js:["js"],wxs:["wxs"]};for(const e of r)if(e.resolveExt)for(const r of["json","wxml","wxss","js","wxs"]){const t=e.resolveExt[r];if("string"==typeof t)o[r].includes(t)||o[r].push(t);else if(Array.isArray(t))for(const e of t)o[r].includes(e)||o[r].push(e)}return o}function throwPluginError(r,o,{hook:e,id:t}={}){const s=(0,customError_1.makeCustomError)(r);throw s.code||(s.code=customError_1.CustomErrors.SUMMER_PLUGIN_ERR),s.plugin=o,e&&(s.hook=e),t&&!s.path&&(s.path=t),r.stack&&(s.stack=r.stack),s}function getPluginContext(r,o){return{addWatchFile(){throw new Error("addWatchFile should be implemented by replaceContext")},async runWorkerMethod(e,...t){const s=await o.project.serialize(),n={command:"runMethod",plugin:r.name,projectInfo:s,pluginOption:{},method:e,args:t};let i;if(await(0,debug_1.shouldNotRunInWorker)())i=await(0,worker_1.runSummerPluginHook)(n);else try{i=await(0,workerThread_1.runTask)(workerThread_1.TASK_NAME.SUMMER_HOOK,n)}catch(r){throw r}if(i.error){if("CustomError"===i.error.type)throw new customError_1.CustomError(i.error);throw i.error}return i.result},error:o=>throwPluginError(o,r.name)}}class PluginDriver{constructor(r,o){this.graph=r,this.options=o,this.pluginContexts=new Map,this.plugins=o.plugins,this.resolveExtConf=genResovleExtConf(o.plugins);for(const o of this.plugins)this.pluginContexts.set(o,getPluginContext(o,r))}runHook(r,o,e,t){const s=e[r];if(!s)return;let n=this.pluginContexts.get(e);return t&&(n=t(n,e)),Promise.resolve().then(()=>s.apply(n,o)).catch(o=>throwPluginError(o,e.name,{hook:r}))}hookFirst(r,o,e){let t=Promise.resolve(void 0);for(const s of this.plugins)t=t.then(t=>t||this.runHook(r,o,s,e));return t}hookParallel(r,o,e){const t=[];for(const s of this.plugins){const n=this.runHook(r,o,s,e);n&&t.push(n)}return Promise.all(t).then(()=>{})}hookReduceArg0(r,[o,...e],t,s){let n=Promise.resolve(o);for(const o of this.plugins)n=n.then(n=>{const i=[n,...e],u=this.runHook(r,i,o,s);return u?u.then(r=>t.call(this.pluginContexts.get(o),n,r,o)):n});return n}}exports.PluginDriver=PluginDriver;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PluginDriver=void 0,exports.genResovleExtConf=genResovleExtConf,exports.getPluginContext=getPluginContext;const customError_1=require("../../../utils/customError"),workerThread_1=require("../original/workerThread"),worker_1=require("./worker"),debug_1=require("../../../utils/debug");function genResovleExtConf(r){const o={json:["json"],wxml:["wxml"],wxss:["wxss"],js:["js"],wxs:["wxs"]};for(const e of r)if(e.resolveExt)for(const r of["json","wxml","wxss","js","wxs"]){const t=e.resolveExt[r];if("string"==typeof t)o[r].includes(t)||o[r].push(t);else if(Array.isArray(t))for(const e of t)o[r].includes(e)||o[r].push(e)}return o}function throwPluginError(r,o,{hook:e,id:t}={}){const s=(0,customError_1.makeCustomError)(r);throw s.code||(s.code=customError_1.CustomErrors.SUMMER_PLUGIN_ERR),s.plugin=o,e&&(s.hook=e),t&&!s.path&&(s.path=t),r.stack&&(s.stack=r.stack),s}function getPluginContext(r,o){return{addWatchFile(){throw new Error("addWatchFile should be implemented by replaceContext")},async runWorkerMethod(e,...t){const s=await o.project.serialize(),n={command:"runMethod",plugin:r.name,projectInfo:s,pluginOption:{},method:e,args:t};let i;if(await(0,debug_1.shouldNotRunInWorker)())i=await(0,worker_1.runSummerPluginHook)(n);else try{i=await(0,workerThread_1.runTask)(workerThread_1.TASK_NAME.SUMMER_HOOK,n)}catch(r){throw r}if(i.error){if("CustomError"===i.error.type)throw new customError_1.CustomError(i.error);throw i.error}return i.result},error:o=>throwPluginError(o,r.name)}}class PluginDriver{constructor(r,o){this.graph=r,this.options=o,this.pluginContexts=new Map,this.plugins=o.plugins,this.resolveExtConf=genResovleExtConf(o.plugins);for(const o of this.plugins)this.pluginContexts.set(o,getPluginContext(o,r))}runHook(r,o,e,t){const s=e[r];if(!s)return;let n=this.pluginContexts.get(e);return t&&(n=t(n,e)),Promise.resolve().then((()=>s.apply(n,o))).catch((o=>throwPluginError(o,e.name,{hook:r})))}hookFirst(r,o,e){let t=Promise.resolve(void 0);for(const s of this.plugins)t=t.then((t=>t||this.runHook(r,o,s,e)));return t}hookParallel(r,o,e){const t=[];for(const s of this.plugins){const n=this.runHook(r,o,s,e);n&&t.push(n)}return Promise.all(t).then((()=>{}))}hookReduceArg0(r,[o,...e],t,s){let n=Promise.resolve(o);for(const o of this.plugins)n=n.then((n=>{const i=[n,...e],u=this.runHook(r,i,o,s);return u?u.then((r=>t.call(this.pluginContexts.get(o),n,r,o))):n}));return n}}exports.PluginDriver=PluginDriver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function couldUseSWCMode(e){if(e.compileWorklet)return!1;return!1===e.disableSWC||null===e.disableSWC&&(e.es6||e.enhance)||void 0===e.disableSWC&&1==e.swc}function getSummerPluginConfig(e){const i=new Set,{disableUseStrict:r}=e;return i.add(["script",{disableUseStrict:r}]),(e.minifyWXSS||e.postcss)&&i.add("wxss"),e.minifyWXML&&i.add("minifywxml"),e.useCompilerPlugins&&e.useCompilerPlugins.forEach(e=>{if("string"==typeof e)"typescript"!==e&&i.add(e);else{if(!Array.isArray(e))throw new Error(
|
|
1
|
+
"use strict";function couldUseSWCMode(e){if(e.compileWorklet)return!1;return!1===e.disableSWC||null===e.disableSWC&&(e.es6||e.enhance)||void 0===e.disableSWC&&1==e.swc}function getSummerPluginConfig(e){const i=new Set,{disableUseStrict:r}=e;return i.add(["script",{disableUseStrict:r}]),(e.minifyWXSS||e.postcss)&&i.add("wxss"),e.minifyWXML&&i.add("minifywxml"),e.useCompilerPlugins&&e.useCompilerPlugins.forEach((e=>{if("string"==typeof e)"typescript"!==e&&i.add(e);else{if(!Array.isArray(e))throw new Error(`invalid useCompilerPlugins options: ${JSON.stringify(e)}`);if("string"!=typeof e[0]||void 0===e[1])throw new Error(`invalid useCompilerPlugins options: ${JSON.stringify(e)}`);"typescript"!==e[0]&&i.add(e)}})),Array.from(i)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.couldUseSWCMode=couldUseSWCMode,exports.getSummerPluginConfig=getSummerPluginConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const babel_script_task_1=require("../script_task/babel_script_task");function default_1(e,t){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const babel_script_task_1=require("../script_task/babel_script_task");function default_1(e,t){const s="summer-es6module";return{name:s,workerMethods:{async doGenerate(e,t,s){const r=await(0,babel_script_task_1.transformES6ModuleAndGenCode)(e,t,s);return Object.assign(Object.assign({},r),{resultType:s.resultType})}},async generate(e,r,o,{independentRoot:a,isBabelIgnore:n,resultType:c}){const i=Date.now(),{source:u}=e;if(r.endsWith(".js")&&!u.largeFile&&!n){if(!u.astInfo){if(null===u.sourceCode)throw new Error("source.sourceCode is null");return Object.assign(Object.assign({},e),{target:{code:u.sourceCode,map:u.inputMap,helpers:[],resultType:c||"prod"},process:[...e.process,{cost:Date.now()-i,pluginName:s,action:"generate"}]})}const r={babelRoot:(0,babel_script_task_1.getBabelRoot)(a),disableUseStrict:t.disableUseStrict,resultType:c},n=await this.runWorkerMethod("doGenerate",o,u,r);return Object.assign(Object.assign({},e),{target:n,process:[...e.process,{cost:Date.now()-i,pluginName:s,action:"generate",options:r}]})}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=void 0,exports.default=default_1;const load_script_task_1=require("../script_task/load_script_task");var config_1=require("../../../../../config/config");function default_1(e){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=void 0,exports.default=default_1;const load_script_task_1=require("../script_task/load_script_task");var config_1=require("../../../../../config/config");function default_1(e){const t="summer-javascript";return{name:t,async load(r,i){if(i.endsWith(".js"))return await(0,load_script_task_1.loadScriptFile)(e,r,i,t)}}}Object.defineProperty(exports,"MAX_CODE_LENGTH",{enumerable:!0,get:function(){return config_1.MAX_CODE_LENGTH}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=void 0,exports.getSWCRoot=getSWCRoot,exports.default=default_1;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),config_1=require("../../../../../config/config"),tools_1=require("../../../../../utils/tools"),swc_helper_1=require("../../../../../utils/swc_helper"),inputsourcemap_1=require("../../utils/inputsourcemap"),swc_task_1=require("../script_task/swc_task");var config_2=require("../../../../../config/config");function getSWCRoot(e,t){const s=(0,swc_helper_1.getSWCOutputPath)(e.setting);return""===t?s:(0,tools_1.normalizePath)(`${t}/${s}`)}function default_1(e,t){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=void 0,exports.getSWCRoot=getSWCRoot,exports.default=default_1;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),config_1=require("../../../../../config/config"),tools_1=require("../../../../../utils/tools"),swc_helper_1=require("../../../../../utils/swc_helper"),inputsourcemap_1=require("../../utils/inputsourcemap"),swc_task_1=require("../script_task/swc_task");var config_2=require("../../../../../config/config");function getSWCRoot(e,t){const s=(0,swc_helper_1.getSWCOutputPath)(e.setting);return""===t?s:(0,tools_1.normalizePath)(`${t}/${s}`)}function default_1(e,t){const s="summer-swc";return{name:s,workerMethods:{async doGenerate(e,t,s,r){const o=await(0,swc_task_1.swcCompileTask)(t,e,Object.assign(Object.assign({},r),{swcRoot:s}));return{code:o.code,map:o.map,helpers:o.helpers,resultType:r.resultType}}},async load(t,r){if(!t.endsWith(".js"))return;const o=Date.now(),i=path_1.default.relative(e.projectPath,r),n=e.getFile("",i).toString(),a=e.stat("",i),c=await(0,inputsourcemap_1.tryGetInputSourceMap)(n,r);return{targetPath:t,source:{sourceCode:n,inputMap:null!=c?c:void 0,astInfo:void 0,largeFile:n.length>=config_1.MAX_CODE_LENGTH,mtime:null==a?void 0:a.mtimeMs},process:[{cost:Date.now()-o,pluginName:s,action:"load"}]}},async generate(r,o,i,{independentRoot:n,isBabelIgnore:a,resultType:c}){var u;if(!o.endsWith(".js")||a)return;const l=Date.now(),p=getSWCRoot(e,n),_={disableUseStrict:t.disableUseStrict,target:e.setting.enhance||e.setting.es6?"es5":"es2022",rc:null===(u=e.setting.swcSetting)||void 0===u?void 0:u.rc,minify:e.setting.minified,resultType:c},g=await this.runWorkerMethod("doGenerate",r.source,i,p,_);return Object.assign(Object.assign({},r),{target:g,process:[...r.process,{cost:Date.now()-l,pluginName:s,action:"transform",options:_}]})}}}Object.defineProperty(exports,"MAX_CODE_LENGTH",{enumerable:!0,get:function(){return config_2.MAX_CODE_LENGTH}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const tslib_1=require("tslib"),postcss_1=tslib_1.__importDefault(require("postcss")),autoprefixer_1=tslib_1.__importDefault(require("autoprefixer")),cssnano_1=tslib_1.__importDefault(require("cssnano")),tools_1=require("../../../../../utils/tools"),config_1=require("../../../../../config/config"),customError_1=require("../../../../../utils/customError");"undefined"!=typeof process&&process.env&&(process.env.BROWSERSLIST=process.env.BROWSERSLIST||"iOS >= 8, Chrome >= 37");const MAX_LINE_SHOW_LENGTH=45;function shortString(r,e,t=-1){const s=r.length;if(s<=e)return{result:r,marker:t};const o=Math.floor(e/2);return-1===t||t<=o?{result
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const tslib_1=require("tslib"),postcss_1=tslib_1.__importDefault(require("postcss")),autoprefixer_1=tslib_1.__importDefault(require("autoprefixer")),cssnano_1=tslib_1.__importDefault(require("cssnano")),tools_1=require("../../../../../utils/tools"),config_1=require("../../../../../config/config"),customError_1=require("../../../../../utils/customError");"undefined"!=typeof process&&process.env&&(process.env.BROWSERSLIST=process.env.BROWSERSLIST||"iOS >= 8, Chrome >= 37");const MAX_LINE_SHOW_LENGTH=45;function shortString(r,e,t=-1){const s=r.length;if(s<=e)return{result:r,marker:t};const o=Math.floor(e/2);return-1===t||t<=o?{result:`${r.substr(0,e-3)}...`,marker:t}:t+o>=s?{result:`...${r.substr(s-e+3,e-3)}`,marker:Math.min(e,e-(s-t))}:{result:`...${r.substr(t-o+3,e-6)}...`,marker:o}}function formatPostcssError(r,e){try{const t=e.line-1,s=e.column-1,o=r.replace(/\r\n/g,"\n").split("\n"),n=[],i=Math.max(0,t-1),u=Math.min(t+2,o.length);for(let r=i;r<u;r++){const e=shortString(o[r],MAX_LINE_SHOW_LENGTH,s);r===t?n.push(`> ${r+1} | ${e.result.substr(0,e.marker)}${e.result.substr(e.marker)}`):n.push(`> ${r+1} | ${e.result}`)}return`${e.message}\n${n.join("\n")}`}catch(r){}return e.message}function default_1(r,e){const{autoPrefix:t=!0,minify:s=!0}=e||{},o=["iOS >= 8","Chrome >= 37"],n="summer-wxss";return{name:n,workerMethods:{async doOptimize(r,e){try{const n=[];t&&n.push((0,autoprefixer_1.default)({overrideBrowserslist:o,remove:!1})),s&&n.push((0,cssnano_1.default)({preset:["default",{reduceTransforms:!1,calc:!1,minifySelectors:!1,normalizeUrl:!1}]}));return{error:null,content:(await(0,postcss_1.default)(n).process(e,{from:(0,tools_1.leading)(r,"/")})).css.replace(/\r\n/g,"\n")}}catch(t){throw(0,customError_1.makeCustomError)(formatPostcssError(e,t),config_1.POST_WXSS_ERR,r)}}},async optimize(r,e){if("dev"===e.resultType||!r.targetPath.endsWith(".wxss")||!t&&!s)return r;const o=Date.now(),i=await this.runWorkerMethod("doOptimize",r.targetPath,r.target.code);if(i.error)throw i.error;return Object.assign(Object.assign({},r),{target:Object.assign(Object.assign({},r.target),{code:i.content}),process:[...r.process,{cost:Date.now()-o,pluginName:n,action:"optimize"}]})}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const babel_script_task_1=require("./script_task/babel_script_task");function default_1(e,s){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const babel_script_task_1=require("./script_task/babel_script_task");function default_1(e,s){const t="summer-enhance";return{name:t,workerMethods:{doTransform:async(e,s,t,r)=>await(0,babel_script_task_1.babelTransformJS)(e,s)},async transform(e,r,a,{independentRoot:n,isBabelIgnore:o}){const{source:c}=e;if(r.endsWith(".js")&&!c.largeFile&&!o){const r=Date.now(),o=(0,babel_script_task_1.getBabelRoot)(n),i=await this.runWorkerMethod("doTransform",c,a,o,s.disableUseStrict);return Object.assign(Object.assign({},e),{source:Object.assign(Object.assign({},e.source),i),process:[...e.process,{cost:Date.now()-r,pluginName:t,action:"transform"}]})}return e}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=void 0,exports.getSWCRoot=getSWCRoot,exports.default=default_1;const pluginconfig_1=require("../../pluginconfig"),tools_1=require("../../../../../utils/tools"),swc_helper_1=require("../../../../../utils/swc_helper"),swc_task_1=require("../script_task/swc_task"),load_script_task_1=require("../script_task/load_script_task"),babel_script_task_1=require("../script_task/babel_script_task"),minify_script_task_1=require("../script_task/minify_script_task");var config_1=require("../../../../../config/config");function getSWCRoot(e,t){const s=(0,swc_helper_1.getSWCOutputPath)(e.setting);return""===t?s:(0,tools_1.normalizePath)(`${t}/${s}`)}function useCompilerPlugin(e,t){if(!e.setting.useCompilerPlugins)return!1;for(const s of e.setting.useCompilerPlugins){if("string"==typeof s&&s===t)return!0;if(Array.isArray(s)&&"string"==typeof s[0]&&void 0!==s[1]&&s[0]===t)return!0}return!1}function default_1(e,t){const s=
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=void 0,exports.getSWCRoot=getSWCRoot,exports.default=default_1;const pluginconfig_1=require("../../pluginconfig"),tools_1=require("../../../../../utils/tools"),swc_helper_1=require("../../../../../utils/swc_helper"),swc_task_1=require("../script_task/swc_task"),load_script_task_1=require("../script_task/load_script_task"),babel_script_task_1=require("../script_task/babel_script_task"),minify_script_task_1=require("../script_task/minify_script_task");var config_1=require("../../../../../config/config");function getSWCRoot(e,t){const s=(0,swc_helper_1.getSWCOutputPath)(e.setting);return""===t?s:(0,tools_1.normalizePath)(`${t}/${s}`)}function shouldMinify(e,t){return"dev"!==e&&!!t}function useCompilerPlugin(e,t){if(!e.setting.useCompilerPlugins)return!1;for(const s of e.setting.useCompilerPlugins){if("string"==typeof s&&s===t)return!0;if(Array.isArray(s)&&"string"==typeof s[0]&&void 0!==s[1]&&s[0]===t)return!0}return!1}function default_1(e,t){const s="script",r=e.setting.enhance||e.setting.es6,i=useCompilerPlugin(e,"typescript"),o=(0,pluginconfig_1.couldUseSWCMode)(e.setting);return{name:s,resolveExt:i?{js:"ts"}:{},workerMethods:{async doSwcTask(e,t,s){const r=await(0,swc_task_1.swcCompileTask)(e,t,s);return{code:r.code,map:r.map,helpers:r.helpers,resultType:s.resultType}},async doBabelTask(e,t,s){const r=await(0,babel_script_task_1.bableCompile)(e,t,{typescript:s.typescript,enhance:s.enhance,babelRoot:s.babelRoot,disableUseStrict:s.disableUseStrict});if(shouldMinify(s.resultType,s.minify)){const t=await(0,minify_script_task_1.doCompress)(e,{code:r.code,map:r.map});return{code:t.code,map:t.map,helpers:r.helpers,resultType:s.resultType}}return{code:r.code,map:r.map,helpers:r.helpers,resultType:s.resultType}}},async load(t,r){if(t.endsWith(".js"))return await(0,load_script_task_1.loadScriptFile)(e,t,r,s)},async compile(c,n,a,p){var l;if(!c.endsWith(".js"))return;const{independentRoot:u,isBabelIgnore:_,resultType:d}=p,g=a.source.largeFile;if(_||g)return{targetPath:c,source:a.source,target:{code:a.source.sourceCode,map:a.source.inputMap,helpers:[],resultType:d},process:a.process};const f=Date.now(),y=shouldMinify(d,e.setting.minified);if(o){const i={swcRoot:getSWCRoot(e,u),minify:y,resultType:d,rc:null===(l=e.setting.swcSetting)||void 0===l?void 0:l.rc,disableUseStrict:t.disableUseStrict,target:r?"es5":"es2022"},o=await this.runWorkerMethod("doSwcTask",n,a.source,i);return{targetPath:c,source:a.source,target:o,process:[...a.process,{cost:Date.now()-f,pluginName:s,action:"compile",options:i}]}}const m={babelRoot:(0,babel_script_task_1.getBabelRoot)(u),disableUseStrict:t.disableUseStrict,resultType:d,minify:y,enhance:r,typescript:i},b=await this.runWorkerMethod("doBabelTask",n,a.source,m);return{targetPath:c,source:a.source,target:b,process:[...a.process,{cost:Date.now()-f,pluginName:s,action:"compile",options:m}]}}}}Object.defineProperty(exports,"MAX_CODE_LENGTH",{enumerable:!0,get:function(){return config_1.MAX_CODE_LENGTH}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.importWxssCssReg=exports.importWxssReg=void 0,exports.default=default_1;const tslib_1=require("tslib"),tools_1=require("../../../../utils/tools"),customError_1=require("../../../../utils/customError"),path_1=tslib_1.__importDefault(require("path")),less=()=>require("less");function default_1(s
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.importWxssCssReg=exports.importWxssReg=void 0,exports.default=default_1;const tslib_1=require("tslib"),tools_1=require("../../../../utils/tools"),customError_1=require("../../../../utils/customError"),path_1=tslib_1.__importDefault(require("path")),getservice_1=tslib_1.__importDefault(require("../../../../services/common/getservice")),pluginFileReader_1=require("../../../../services/pluginFileReader/common/pluginFileReader"),less=()=>require("less");function default_1(e,s){const t="summer-less";return{name:t,resolveExt:{wxss:"less"},async load(r,o){var i,a,l;if(o.endsWith(".less")){const p=Date.now(),u=(0,getservice_1.default)(pluginFileReader_1.IPluginFileReaderService),c=(0,tools_1.pathRelative)(e.projectPath,o);let n=await u.readFile(e,c);if(c!==`${e.getTargetPath(e.miniprogramRoot,"app")}.less`){const s=(null===(a=null===(i=e.setting)||void 0===i?void 0:i.lessSetting)||void 0===a?void 0:a.commonUseFilePath)||"app.less";if(await u.exists(e,e.miniprogramRoot,s)){const t=(0,tools_1.pathRelative)(e.miniprogramRoot,path_1.default.dirname(c))||".";n=`@import (optional, reference) '${"."===t?".":(0,tools_1.pathRelative)(t,"./")}/${s}';\n${n}`}}const m=[];let d;n=n.replace(exports.importWxssReg,((e,s,t)=>(m.push(t),e.replace(t,`${t}?css`))));try{const i=await less().render(n,{sourceMap:{outputSourceFiles:!0},paths:this.rootPath?[this.rootPath]:[],filename:o,globalVars:null!==(l=null==s?void 0:s.globalVars)&&void 0!==l?l:{},plugins:d}),a=i.css.replace(exports.importWxssCssReg,((e,s,t)=>{const r=t.slice(0,-4);return m.includes(r)?e.replace(t,r):e}));if(i.imports.length)for(const e of i.imports)this.addWatchFile(e);let u;return i.map&&(u=JSON.parse(i.map),u.sources=u.sources.map((s=>path_1.default.posix.relative(e.projectPath,s)))),{targetPath:r,source:{sourceCode:a,inputMap:u},process:[{cost:Date.now()-p,pluginName:t,action:"load"}]}}catch(e){throw(0,customError_1.makeCustomError)(e,customError_1.CustomErrors.SUMMER_PLUGIN_CODE_ERR)}}}}}exports.importWxssReg=/(?:^|\s)?(?:@import)(?:\s*)?(["'])([^"']+.wxss)\1(?:\s*);/g,exports.importWxssCssReg=/(?:^|\s)?(?:@import)(?:\s*)?(["'])([^"']+.wxss\?css)\1(?:\s*);/g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const tslib_1=require("tslib"),config_1=require("../../../../config/config"),log=tslib_1.__importStar(require("../../../../utils/log")),customError_1=require("../../../../utils/customError"),minifywxml_1=require("../../original/workerThread/task/minifywxml");function default_1(e,t){const{minify:r=!0}=t||{};return{name:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const tslib_1=require("tslib"),config_1=require("../../../../config/config"),log=tslib_1.__importStar(require("../../../../utils/log")),customError_1=require("../../../../utils/customError"),minifywxml_1=require("../../original/workerThread/task/minifywxml");function default_1(e,t){const{minify:r=!0}=t||{},i="summer-minifywxml";return{name:i,workerMethods:{async doCompress(e,t,r){try{const i=await(0,minifywxml_1.minifyWXML)({code:e,filePath:t,setting:r});if(i.error)throw i.error;return i.code}catch(e){throw log.error(e),(0,customError_1.makeCustomError)(e.message,config_1.MINIFY_WXML_ERR,t)}}},async compress(t,s){var o,n;if(!r||"dev"===s.resultType||!t.targetPath.endsWith(".wxml"))return t;const a=Date.now(),c=t.target.code,l=await this.runWorkerMethod("doCompress",c,t.targetPath,Object.assign(Object.assign({collapseWhitespace:!0,conservativeCollapse:!1,preserveLineBreaks:!1},null===(o=e.setting.minifyWXMLSetting)||void 0===o?void 0:o.global),null===(n=e.setting.minifyWXMLSetting)||void 0===n?void 0:n[t.targetPath]));return Object.assign(Object.assign({},t),{target:Object.assign(Object.assign({},t.target),{code:l}),process:[...t.process,{cost:Date.now()-a,pluginName:i,action:"compress"}]})}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.random=random,exports.default=default_1;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),tools_1=require("../../../../utils/tools"),customError_1=require("../../../../utils/customError"),debug_1=require("../../../../utils/debug");let runInMainProcess
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.random=random,exports.default=default_1;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),tools_1=require("../../../../utils/tools"),customError_1=require("../../../../utils/customError"),debug_1=require("../../../../utils/debug"),getservice_1=tslib_1.__importDefault(require("../../../../services/common/getservice")),pluginFileReader_1=require("../../../../services/pluginFileReader/common/pluginFileReader");let runInMainProcess;const sass=async()=>{if(void 0===runInMainProcess&&(runInMainProcess=await(0,debug_1.shouldRunInMainProcess)()),runInMainProcess){return require("sass")}return require("sass")};function random(){return(0,tools_1.generateMD5)(`${Math.random()}${Date.now()}`)}const importWxssReg=/(?:^|\s)?(?:@import)(?:\s*)?(["'])([^"']+.wxss)\1(?:\s*);/g,importCssReg=/(?:^|\s)?(?:@import)(?:\s*)?(["'])([^"']+.css)\1(?:\s*);/g;async function sassRender(s,e){if("undefined"!=typeof WEBIDE_WEBPECK_DEFINE_PLUGIN);else{(await sass()).render(s,e)}}function default_1(s){const e="summer-sass";return{name:e,resolveExt:{wxss:["sass","scss"]},async load(t,o){var r,i,a,n;if(o.endsWith(".scss")||o.endsWith(".sass")){const l=(0,getservice_1.default)(pluginFileReader_1.IPluginFileReaderService),u=(0,tools_1.pathRelative)(s.projectPath,o);let c=(await l.readFile(s,u)).toString();const d=s.getTargetPath(s.miniprogramRoot,"global");if(u!==`${d}.scss`&&u!==`${d}.sass`){const e=path_1.default.extname(u),t=(null===(i=null===(r=s.setting)||void 0===r?void 0:r.sassSetting)||void 0===i?void 0:i.sassCommonUseFilePath)||"global.sass",o=(null===(n=null===(a=s.setting)||void 0===a?void 0:a.sassSetting)||void 0===n?void 0:n.scssCommonUseFilePath)||"global.scss";let d=".sass"===e?t:o;const p=(0,tools_1.pathRelative)(s.miniprogramRoot,path_1.default.dirname(u))||".";await l.exists(s,s.miniprogramRoot,d)||(d=".sass"===e?o:t),await l.exists(s,s.miniprogramRoot,d)&&(c=".sass"===e?`@use '${"."===p?".":(0,tools_1.pathRelative)(p,"./")}/${d}'\n${c}`:`@use '${"."===p?".":(0,tools_1.pathRelative)(p,"./")}/${d}';\n${c}`)}const p=[];c=c.replace(importWxssReg,((s,e,t)=>(p.push(t),s.replace(t,`${t.slice(0,-4)}css`))));const m=path_1.default.posix.dirname((0,tools_1.pathRelative)(s.projectPath,o));return new Promise(((s,r)=>{const i=Date.now();sassRender({file:o,data:c,sourceMap:!0,sourceMapContents:!0,omitSourceMapUrl:!0,outFile:`${o.slice(0,-5)}.wxss`,includePaths:this.rootPath?[this.rootPath]:[]},((a,n)=>{if(a){const s=(0,customError_1.makeCustomError)(a,customError_1.CustomErrors.SUMMER_PLUGIN_CODE_ERR);return void r(s)}if(!n)return void r(new Error("no result"));const l=n.css.toString("utf-8").replace(importCssReg,((s,e,t)=>{const o=`${t.slice(0,-3)}wxss`;return p.includes(o)?s.replace(t,o):s}));if(n.stats.includedFiles.length>0)for(const s of n.stats.includedFiles)s!==o&&this.addWatchFile(s);const u=n.map?JSON.parse(n.map.toString("utf-8")):void 0;u&&(u.sourceRoot=m),s({targetPath:t,source:{sourceCode:l,inputMap:u},process:[{cost:Date.now()-i,pluginName:e,action:"load"}]})}))}))}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getBabelRoot=getBabelRoot,exports.babelTransformJS=babelTransformJS,exports.transformES6ModuleAndGenCode=transformES6ModuleAndGenCode,exports.babelTransformTS=babelTransformTS,exports.bableCompile=bableCompile;const config_1=require("../../../../../config/config"),babel_helper_1=require("../../../../../utils/babel_helper"),tools_1=require("../../../../../utils/tools"),customError_1=require("../../../../../utils/customError"),_transformRuntimeCustom=()=>require("../../../../../utils/babel_transform_plugin"),_pluginTransformRuntime=()=>require("@babel/plugin-transform-runtime"),_pluginTransformWorklet=()=>require("../../../../../utils/babel_plugin_worklet"),_pluginTransformModulesCommonjs=()=>require("@babel/plugin-transform-modules-commonjs"),babel7=()=>require("@babel/core"),_presetEnv=()=>require("@babel/preset-env"),_pluginTransformTypescript=()=>require("@babel/plugin-transform-typescript"),pluginReplaceTsExportAssignment=e=>{const r=e.template("\n module.exports = ASSIGNMENT;\n ");return{name:"replace-ts-export-assignment",visitor:{TSExportAssignment(e){e.replaceWith(r({ASSIGNMENT:e.node.expression}))}}}},pluginReplaceTsImportEqualsDeclaration=e=>{const r=e.template("\n const ID = require(SOURCE);\n ");return{name:"replace-ts-import-equals-declaration",visitor:{TSImportEqualsDeclaration(e){e.replaceWith(r({ID:e.node.id,SOURCE:e.node.moduleReference.expression}))}}}};function getEnhancePluginsList(e){const r=[[
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getBabelRoot=getBabelRoot,exports.babelTransformJS=babelTransformJS,exports.transformES6ModuleAndGenCode=transformES6ModuleAndGenCode,exports.babelTransformTS=babelTransformTS,exports.bableCompile=bableCompile;const config_1=require("../../../../../config/config"),babel_helper_1=require("../../../../../utils/babel_helper"),tools_1=require("../../../../../utils/tools"),customError_1=require("../../../../../utils/customError"),_transformRuntimeCustom=()=>require("../../../../../utils/babel_transform_plugin"),_pluginTransformRuntime=()=>require("@babel/plugin-transform-runtime"),_pluginTransformWorklet=()=>require("../../../../../utils/babel_plugin_worklet"),_pluginTransformModulesCommonjs=()=>require("@babel/plugin-transform-modules-commonjs"),babel7=()=>require("@babel/core"),_presetEnv=()=>require("@babel/preset-env"),_pluginTransformTypescript=()=>require("@babel/plugin-transform-typescript"),pluginReplaceTsExportAssignment=e=>{const r=e.template("\n module.exports = ASSIGNMENT;\n ");return{name:"replace-ts-export-assignment",visitor:{TSExportAssignment(e){e.replaceWith(r({ASSIGNMENT:e.node.expression}))}}}},pluginReplaceTsImportEqualsDeclaration=e=>{const r=e.template("\n const ID = require(SOURCE);\n ");return{name:"replace-ts-import-equals-declaration",visitor:{TSImportEqualsDeclaration(e){e.replaceWith(r({ID:e.node.id,SOURCE:e.node.moduleReference.expression}))}}}};function getEnhancePluginsList(e){const r=[[_transformRuntimeCustom()],[_pluginTransformRuntime(),{corejs:!1,helpers:!0,regenerator:!0,version:"7.21.0"}]].concat((0,babel_helper_1.getCustomPlugins)([]));return e.supportWorklet&&r.push([_pluginTransformWorklet()]),r}function getCommonPresets(){return[[_presetEnv(),{targets:{chrome:53,ios:8},modules:!1,include:["@babel/plugin-transform-computed-properties"]}]]}function getTSTransformPluginsList(){return[[pluginReplaceTsImportEqualsDeclaration,{}],[pluginReplaceTsExportAssignment,{}],[_pluginTransformTypescript(),{}]]}function getES6ModulePluginsList(e){return[[_pluginTransformModulesCommonjs(),{allowTopLevelThis:e,importInterop:e=>e.startsWith("@babel/runtime/helpers/")?"node":"babel"}]]}function getBabelRoot(e){const r="@babel/runtime";return""===e?r:(0,tools_1.normalizePath)(`${e}/${r}`)}async function babelTransformJS(e,r){const o=babel7(),s=e.sourceCode.includes('"worklet"')||e.sourceCode.includes("'worklet'");let t;try{const n={babelrc:!1,sourceFileName:r,configFile:!1,presets:getCommonPresets(),plugins:getEnhancePluginsList({supportWorklet:s}),inputSourceMap:!1,code:!1,ast:!0,cloneInputAst:!1};if(e.astInfo){if(e.astInfo.type!==config_1.AstType.Babel)throw new Error("ast type is not babel");t=await o.transformFromAstAsync(e.astInfo.ast,e.sourceCode,n)}else{if(null===e.sourceCode)throw new Error("source.sourceCode is null");t=await babel7().transformAsync(e.sourceCode,n)}}catch(e){console.error(e,e.stack);const o=`file: ${r}\n ${e.message}`,s=new Error(o);throw s.code=config_1.BABEL_TRANS_JS_ERR,s}return{sourceCode:e.sourceCode,inputMap:e.inputMap,astInfo:{ast:t.ast,type:config_1.AstType.Babel}}}async function transformES6ModuleAndGenCode(e,r,o){const s=o.disableUseStrict||/^\s*\/\/\s?use strict disable;/i.test(r.sourceCode||"");let t;try{const o={babelrc:!1,sourceFileName:e,configFile:!1,plugins:getES6ModulePluginsList(s),filename:e,sourceMaps:!0,inputSourceMap:r.inputMap,code:!0,cloneInputAst:!0},n=babel7();if(!r.astInfo)throw new Error("source.astInfo is not exist");if(r.astInfo.type!==config_1.AstType.Babel)throw new Error("ast type is not babel");t=await n.transformFromAstAsync(r.astInfo.ast,r.sourceCode,o)}catch(r){throw r.code=config_1.BABEL_TRANS_JS_ERR,r.message=`file: ${e}\n ${r.message}`,r.path=e,r}if(!t)throw new Error("no trans result for callPostEnhance");let n=t.code;const l=t.map;s&&(n=n.replace(/^"use strict";/,""));const a=(0,babel_helper_1.collectBabelHelpers)(r.sourceCode),i=(0,babel_helper_1.replaceBabelHelpers)(n,a,e,o.babelRoot);return{code:i.transformCode,map:l,helpers:i.helpers}}async function babelTransformTS(e,r){let o;console.log("[backend] summer-typescript workerMethod");try{o=await babel7().transformAsync(e.sourceCode,{babelrc:!1,plugins:getTSTransformPluginsList(),sourceFileName:r,sourceMaps:!1,ast:!0,configFile:!1,code:!1})}catch(e){throw(0,customError_1.makeCustomError)(e,customError_1.CustomErrors.SUMMER_PLUGIN_CODE_ERR,r)}return{sourceCode:e.sourceCode,inputMap:e.inputMap,astInfo:{ast:o.ast,type:config_1.AstType.Babel}}}async function bableCompile(e,r,o){const s=babel7(),t=r.sourceCode.includes('"worklet"')||r.sourceCode.includes("'worklet'"),n=o.disableUseStrict||/^\s*\/\/\s?use strict disable;/i.test(r.sourceCode||""),l=[];e.endsWith(".ts")&&o.typescript&&l.push(...getTSTransformPluginsList()),t&&l.push([_pluginTransformWorklet()]),o.enhance&&l.push(...getEnhancePluginsList({})),l.push(...getES6ModulePluginsList(n));const a={babelrc:!1,sourceFileName:e,filename:e,configFile:!1,presets:o.enhance?getCommonPresets():[],plugins:l,inputSourceMap:r.inputMap,sourceMaps:!0,code:!0,ast:!1,cloneInputAst:!1};let i;try{i=await s.transformAsync(r.sourceCode,a)}catch(r){console.error(r,r.stack);const o=`file: ${e}\n ${r.message}`,s=new Error(o);throw s.code=config_1.BABEL_TRANS_JS_ERR,s}if(!i||!i.code)throw new Error("no trans result for bableCompile");let c=i.code;const u=i.map;n&&(c=c.replace(/^"use strict";/,""));const p=(0,babel_helper_1.collectBabelHelpers)(r.sourceCode),m=(0,babel_helper_1.replaceBabelHelpers)(c,p,e,o.babelRoot);return{code:m.transformCode,map:u,helpers:m.helpers}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadScriptFile=loadScriptFile;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),config_1=require("../../../../../config/config"),inputsourcemap_1=require("../../utils/inputsourcemap");async function loadScriptFile(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadScriptFile=loadScriptFile;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),config_1=require("../../../../../config/config"),inputsourcemap_1=require("../../utils/inputsourcemap"),getservice_1=tslib_1.__importDefault(require("../../../../../services/common/getservice")),pluginFileReader_1=require("../../../../../services/pluginFileReader/common/pluginFileReader");async function loadScriptFile(e,i,t,r){const a=Date.now(),o=(0,getservice_1.default)(pluginFileReader_1.IPluginFileReaderService),l=path_1.default.relative(e.projectPath,t),u=(await o.readFile(e,l)).toString(),n=await o.stat(e,l),c=await(0,inputsourcemap_1.tryGetInputSourceMap)(u,t);return{targetPath:i,source:{sourceCode:u,inputMap:null!=c?c:void 0,astInfo:void 0,largeFile:u.length>=config_1.MAX_CODE_LENGTH,mtime:null==n?void 0:n.mtimeMs},process:[{cost:Date.now()-a,pluginName:r,action:"load"}]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.doCompress=doCompress;const config_1=require("../../../../../config/config"),customError_1=require("../../../../../utils/customError"),terser=()=>require("terser"),babelCodeFrame=()=>require("babel-code-frame");async function doCompress(e,r){const{code:o,map:s}=r,c=s?{includeSources:!0,content:"string"==typeof s?JSON.parse(s):s,filename:e}:{includeSources:!0,content:void 0,filename:e}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.doCompress=doCompress;const config_1=require("../../../../../config/config"),customError_1=require("../../../../../utils/customError"),terser=()=>require("terser"),babelCodeFrame=()=>require("babel-code-frame");async function doCompress(e,r){const{code:o,map:s}=r,c=s?{includeSources:!0,content:"string"==typeof s?JSON.parse(s):s,filename:e}:{includeSources:!0,content:void 0,filename:e};let t=null;try{t=await terser().minify(o,{toplevel:!0,compress:{drop_console:!1,drop_debugger:!1},sourceMap:c})}catch(r){const s=`file: ${e}\n ${t.error.message}\n ${babelCodeFrame()(o,r.line,r.col>0?r.col:1)}`;throw(0,customError_1.makeCustomError)(s,config_1.UGLIFY_JS_ERR,e)}return console.log("terser done"),{code:t.code,map:t.map}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.swcCompileTask=swcCompileTask;const swc_helper_1=require("../../../../../utils/swc_helper"),swc=()=>require("@swc/core");async function swcCompileTask(e,s,r){var o,t;const i=r.disableUseStrict||/^\s*\/\/\s?use strict disable;/i.test(s.sourceCode||""),{swcRoot:c}=r,p=await
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.swcCompileTask=swcCompileTask;const swc_helper_1=require("../../../../../utils/swc_helper"),swc=()=>require("@swc/core");async function swcCompileTask(e,s,r){var o,t;const i=r.disableUseStrict||/^\s*\/\/\s?use strict disable;/i.test(s.sourceCode||""),{swcRoot:c}=r,p=await swc().transform(s.sourceCode,{jsc:{parser:Object.assign(Object.assign({},null===(o=r.rc)||void 0===o?void 0:o.parser),{syntax:e.endsWith("ts")?"typescript":"ecmascript"}),target:r.target,externalHelpers:!0,loose:!1,minify:{compress:{drop_console:!1,drop_debugger:!1},toplevel:!0}},module:Object.assign({type:"commonjs",strictMode:!i,noInterop:!0,allowTopLevelThis:i},null===(t=r.rc)||void 0===t?void 0:t.module),inputSourceMap:s.inputMap?JSON.stringify(s.inputMap):void 0,sourceMaps:!0,filename:e,minify:"dev"!==r.resultType&&r.minify}),a=(0,swc_helper_1.replaceSWCHelpers)(p.code,e,c);return{code:a.transformCode,map:p.map?JSON.parse(p.map):void 0,helpers:a.helpers}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const minify_script_task_1=require("./script_task/minify_script_task");function default_1(e){const t=e.setting.minified;return{name:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const minify_script_task_1=require("./script_task/minify_script_task");function default_1(e){const t="summer-terser",s=e.setting.minified;return{name:t,workerMethods:{doCompress:minify_script_task_1.doCompress},async compress(e,r){const o=e.targetPath;if(!s||"dev"===r.resultType||!o.endsWith(".js"))return e;const a=Date.now(),i=await this.runWorkerMethod("doCompress",o,{code:e.target.code,map:e.target.map});return Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{code:i.code,map:i.map}),process:[...e.process,{cost:Date.now()-a,pluginName:t,action:"compress"}]})}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),pluginconfig_1=require("../pluginconfig"),babel_script_task_1=require("./script_task/babel_script_task");function default_1(t){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),pluginconfig_1=require("../pluginconfig"),babel_script_task_1=require("./script_task/babel_script_task");function default_1(t){const e="summer-typescript";return{name:e,resolveExt:{js:"ts"},workerMethods:{async doLoad(t,e,s){const a={sourceCode:t,inputMap:s};return await(0,babel_script_task_1.babelTransformTS)(a,e)}},async load(s,a){if(!(0,pluginconfig_1.couldUseSWCMode)(t.setting)&&a.endsWith(".ts")){const r=Date.now(),i=path_1.default.relative(t.projectPath,a),o=t.getFile("",i).toString(),n=t.stat("",i),u=await this.runWorkerMethod("doLoad",o,a);return{targetPath:s,source:Object.assign(Object.assign({},u),{mtime:null==n?void 0:n.mtimeMs}),process:[{cost:Date.now()-r,pluginName:e,action:"load"}]}}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const config_1=require("../../../../config/config"),_pluginTransformWorklet=()=>require("../../../../utils/babel_plugin_worklet"),babel7=()=>require("@babel/core"),worklet=(e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=default_1;const config_1=require("../../../../config/config"),_pluginTransformWorklet=()=>require("../../../../utils/babel_plugin_worklet"),babel7=()=>require("@babel/core"),worklet=(e,o)=>{const r=babel7();let t;try{const s={babelrc:!1,plugins:[_pluginTransformWorklet()],sourceFileName:o,inputSourceMap:!1,configFile:!1,code:!1,ast:!0,cloneInputAst:!1};if(e.astInfo){if(e.astInfo.type!==config_1.AstType.Babel)throw new Error("ast type is not babel");t=r.transformFromAstSync(e.astInfo.ast,e.sourceCode,s)}else{if(null===e.sourceCode)throw new Error("source.targetCode is null");t=babel7().transform(e.sourceCode,s)}}catch(e){const r=`file: ${o}\n ${e.message}`,t=new Error(r);throw t.code=config_1.BABEL_TRANS_JS_ERR,t}return{sourceCode:e.sourceCode,inputMap:e.inputMap,astInfo:{ast:t.ast,type:config_1.AstType.Babel}}};function default_1(e,o){const r="summer-worklet";return{name:r,workerMethods:{worklet:worklet},async transform(e,o,t,{isBabelIgnore:s}){if(o.endsWith(".js")&&!s){const{source:o}=e;if(o.sourceCode.includes('"worklet"')||o.sourceCode.includes("'worklet'")){const s=Date.now(),n=await this.runWorkerMethod("worklet",o,t);return Object.assign(Object.assign({},e),{source:Object.assign(Object.assign({},e.source),n),process:[...e.process,{cost:Date.now()-s,pluginName:r,action:"transform"}]})}return e}return e}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Resolver=void 0;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),targetCodeExts=["json","wxml","wxss","js","wxs"];function getAllExts(t){const e=[];for(const s of targetCodeExts)for(const o of t[s])e.includes(o)||e.push(o);return e}function getExtToTarget(t){const e={};for(const s of targetCodeExts){const o=[];for(const i of t[s])e[i]=e[i]||{},e[i][s]=[...o],o.push(i)}return e}class Resolver{constructor(t,e,s){this.graph=t,this.root=e,this.extConf=s,this.fileSet=new Set,this.resolveInfoMap=new Map,this.onFileChange=(t,e)=>{var s;if(this.isCodeFile(e)&&("unlink"===t||"add"===t))if("add"===t)this.updateFile(e);else{const t=this.getExt(e),o=this.resolve(e);for(const e of o){const o=this.getExt(e.path);this.resolveInfoMap.delete(e.path);for(const i of this.extToTarget[t][o]){const t=e.path.slice(0,e.path.length-o.length)+i;if(null===(s=this.graph.project.stat(this.root,t))||void 0===s?void 0:s.isFile){this.updateFile(t);break}}}}},this.allExts=getAllExts(s),this.extToTarget=getExtToTarget(s),this.updateFileAndDirs()}updateFileAndDirs(){const t=this.graph.project.getFileList(this.root).map(t=>t.replace(new RegExp(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Resolver=void 0;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),targetCodeExts=["json","wxml","wxss","js","wxs"];function getAllExts(t){const e=[];for(const s of targetCodeExts)for(const o of t[s])e.includes(o)||e.push(o);return e}function getExtToTarget(t){const e={};for(const s of targetCodeExts){const o=[];for(const i of t[s])e[i]=e[i]||{},e[i][s]=[...o],o.push(i)}return e}class Resolver{constructor(t,e,s){this.graph=t,this.root=e,this.extConf=s,this.fileSet=new Set,this.resolveInfoMap=new Map,this.onFileChange=(t,e)=>{var s;if(this.isCodeFile(e)&&("unlink"===t||"add"===t))if("add"===t)this.updateFile(e);else{const t=this.getExt(e),o=this.resolve(e);for(const e of o){const o=this.getExt(e.path);this.resolveInfoMap.delete(e.path);for(const i of this.extToTarget[t][o]){const t=e.path.slice(0,e.path.length-o.length)+i;if(null===(s=this.graph.project.stat(this.root,t))||void 0===s?void 0:s.isFile){this.updateFile(t);break}}}}},this.allExts=getAllExts(s),this.extToTarget=getExtToTarget(s),this.updateFileAndDirs()}updateFileAndDirs(){const t=this.graph.project.getFileList(this.root).map((t=>t.replace(new RegExp(`^${this.root}`),"")));for(const e of t){const t=this.getExt(e);this.allExts.includes(t)&&(this.fileSet.add(e),this.updateFile(e))}}resolve(t){const e=[];if(this.isCodeFile(t))for(const s of this.resolveInfoMap.values())s.source===t&&e.push(s);return e}stat(t){var e;if(this.resolveInfoMap.has(t)){const s=null===(e=this.resolveInfoMap.get(t))||void 0===e?void 0:e.stat;return{isFile:!0,isDirectory:!1,size:(null==s?void 0:s.size)||0,mtimeMs:(null==s?void 0:s.mtimeMs)||0}}}isCodeFile(t){const e=path_1.default.extname(t).replace(/^./,"");return this.allExts.includes(e)}getExt(t){return path_1.default.extname(t).replace(/^./,"")}updateFile(t){if(t.endsWith(".d.ts"))return;const e=this.getExt(t);for(const s of targetCodeExts)if(this.extToTarget[e][s]){const o=t.substr(0,t.length-e.length)+s,i=this.resolveInfoMap.get(o);if(i){if(!this.extToTarget[e][s].includes(i.sourceExt))continue}this.resolveInfoMap.set(o,{path:o,source:t,sourceExt:e,stat:this.graph.project.stat(this.root,t)})}}}exports.Resolver=Resolver;
|