miniprogram-ci 2.1.33 → 2.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/dist/@types/build-server/constant.d.ts +42 -0
- package/dist/@types/build-server/ctxManager.d.ts +2 -0
- package/dist/@types/build-server/fileCacheManager.d.ts +43 -0
- package/dist/@types/build-server/fileTaskDriver.d.ts +36 -0
- package/dist/@types/build-server/subProcess.d.ts +1 -0
- package/dist/@types/build-server/subTaskManager.d.ts +8 -0
- package/dist/@types/build-server/taskDriver.d.ts +68 -0
- package/dist/@types/build-server/taskFactory.d.ts +22 -0
- package/dist/@types/build-server/tasks/appserviceCompile/index.d.ts +1 -0
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.d.ts +5 -0
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.d.ts +19 -0
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.d.ts +10 -0
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.d.ts +23 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/OTService.d.ts +7 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/enhance.d.ts +29 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/es6module.d.ts +44 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/index.d.ts +3 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/javascript.d.ts +36 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/less.d.ts +43 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/minifywxml.d.ts +10 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/readFile.d.ts +2 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/sass.d.ts +50 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/terser.d.ts +20 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/typescript.d.ts +25 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/worklet.d.ts +13 -0
- package/dist/@types/build-server/tasks/baseFileCompiler/wxss.d.ts +33 -0
- package/dist/@types/build-server/tasks/common/apperrcode.config.d.ts +92 -0
- package/dist/@types/build-server/tasks/common/compiletype.config.d.ts +17 -0
- package/dist/@types/build-server/tasks/common/constants.config.d.ts +549 -0
- package/dist/@types/build-server/tasks/common/simulatortype.config.d.ts +15 -0
- package/dist/@types/build-server/tasks/common/utils/appdevserver/getwxappcode.d.ts +3 -0
- package/dist/@types/build-server/tasks/common/utils/babel/babelhelpers.d.ts +11 -0
- package/dist/@types/build-server/tasks/common/utils/builder/builder.d.ts +35 -0
- package/dist/@types/build-server/tasks/common/utils/builder/filter.d.ts +1 -0
- package/dist/@types/build-server/tasks/common/utils/builder/index.d.ts +10 -0
- package/dist/@types/build-server/tasks/common/utils/cache/compile.d.ts +72 -0
- package/dist/@types/build-server/tasks/common/utils/cache/config.d.ts +16 -0
- package/dist/@types/build-server/tasks/common/utils/cache/filecompile.d.ts +16 -0
- package/dist/@types/build-server/tasks/common/utils/cache/jspersistcache.d.ts +11 -0
- package/dist/@types/build-server/tasks/common/utils/cache/manager.d.ts +18 -0
- package/dist/@types/build-server/tasks/common/utils/cache/persistcache.d.ts +17 -0
- package/dist/@types/build-server/tasks/common/utils/cache/reporter.d.ts +9 -0
- package/dist/@types/build-server/tasks/common/utils/colorutils.d.ts +4 -0
- package/dist/@types/build-server/tasks/common/utils/common/bindActionTools.d.ts +8 -0
- package/dist/@types/build-server/tasks/common/utils/common/schema.helper.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/common/tools.d.ts +17 -0
- package/dist/@types/build-server/tasks/common/utils/common/waitable.d.ts +14 -0
- package/dist/@types/build-server/tasks/common/utils/filerules.d.ts +13 -0
- package/dist/@types/build-server/tasks/common/utils/fsutils.d.ts +7 -0
- package/dist/@types/build-server/tasks/common/utils/handleError.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/helper/vendorValidate.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/interfacebuilder/registry/index.d.ts +22 -0
- package/dist/@types/build-server/tasks/common/utils/partialcompile.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/project/appconfig.d.ts +5 -0
- package/dist/@types/build-server/tasks/common/utils/project/appjson.d.ts +2 -0
- package/dist/@types/build-server/tasks/common/utils/project/customcomponent.d.ts +20 -0
- package/dist/@types/build-server/tasks/common/utils/project/generatecode.utils.d.ts +5 -0
- package/dist/@types/build-server/tasks/common/utils/project/getcompiledjs.d.ts +30 -0
- package/dist/@types/build-server/tasks/common/utils/project/helper/index.d.ts +21 -0
- package/dist/@types/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.d.ts +142 -0
- package/dist/@types/build-server/tasks/common/utils/project/helper/reserveddirectories.d.ts +3 -0
- package/dist/@types/build-server/tasks/common/utils/project/helper/theme.d.ts +39 -0
- package/dist/@types/build-server/tasks/common/utils/project/online/appconfig.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/project/pagejson.d.ts +2 -0
- package/dist/@types/build-server/tasks/common/utils/project/projectconfigjson.d.ts +8 -0
- package/dist/@types/build-server/tasks/common/utils/project/wxappcodejson.d.ts +2 -0
- package/dist/@types/build-server/tasks/common/utils/subpackageUtils.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/Trace.d.ts +50 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/aegis.d.ts +3 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/index.d.ts +34 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/readiness.d.ts +11 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/report.d.ts +14 -0
- package/dist/@types/build-server/tasks/common/utils/trans/transwxmltojs.d.ts +28 -0
- package/dist/@types/build-server/tasks/common/utils/transformsourcemap.d.ts +1 -0
- package/dist/@types/build-server/tasks/common/utils/web/glasseaselUtils.d.ts +1 -0
- package/dist/@types/build-server/tasks/common/utils/web/md5.d.ts +2 -0
- package/dist/@types/build-server/tasks/common/utils/web/processPath.d.ts +9 -0
- package/dist/@types/build-server/tasks/common/weapp.config.d.ts +108 -0
- package/dist/@types/build-server/tasks/pageInitSourceCompile/index.d.ts +2 -0
- package/dist/@types/build-server/tasks/pageframeCompile/index.d.ts +1 -0
- package/dist/@types/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.d.ts +8 -0
- package/dist/@types/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.d.ts +26 -0
- package/dist/@types/build-server/testAppConfig.d.ts +1 -0
- package/dist/@types/build-server/testAppservice.d.ts +1 -0
- package/dist/@types/build-server/testInitSourceCompile.d.ts +1 -0
- package/dist/@types/build-server/testPageframe.d.ts +1 -0
- package/dist/@types/build-server/testSubProcess.d.ts +1 -0
- package/dist/@types/build-server/utils/fileTask.d.ts +5 -0
- package/dist/@types/build-server/utils/getFileOrCache.d.ts +24 -0
- package/dist/@types/build-server/utils/process.d.ts +0 -0
- package/dist/@types/build-server/utils/request.d.ts +47 -0
- package/dist/@types/bussinessMonitor/monitor.d.ts +1 -0
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/index.d.ts +0 -2
- package/dist/@types/modules/corecompiler/original/workerThread/task/func.d.ts +0 -4
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +0 -4
- package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +4 -0
- package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +9 -0
- package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +32 -0
- package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +7 -0
- package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +13 -0
- package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +48 -0
- package/dist/@types/modules/fullcompiler/filerules.d.ts +5 -0
- package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/index.d.ts +31 -0
- package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +13 -0
- package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +21 -0
- package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +14 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +14 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +9 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/handleerror.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +42 -0
- package/dist/@types/modules/fullcompiler/utils/index.d.ts +4 -0
- package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +23 -0
- package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +40 -0
- package/dist/@types/modules/fullcompiler/utils/tools.d.ts +15 -0
- package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +1 -0
- package/dist/@types/project/serverProject.d.ts +38 -0
- package/dist/@types/services/app/server/appDirService.d.ts +6 -0
- package/dist/@types/services/builder/server/builder.d.ts +4 -0
- package/dist/@types/services/compileCacheManager/common/compileCacheManager.d.ts +23 -0
- package/dist/@types/services/compileCacheManager/nw/compileCacheManager.d.ts +16 -0
- package/dist/@types/services/compileCacheManager/server/compileCacheManager.d.ts +26 -0
- package/dist/@types/services/compilewxml/server/compilewxmlService.d.ts +5 -0
- package/dist/@types/services/compilewxml/server/wccWorker.d.ts +1 -0
- package/dist/@types/services/compilewxss/server/compilewxssService.d.ts +4 -0
- package/dist/@types/services/compilewxss/server/wcscWorker.d.ts +1 -0
- package/dist/@types/services/consoledisplay/server/consoledisplay.d.ts +4 -0
- package/dist/@types/services/fileUtilsManager/server/fileUtilsManager.d.ts +4 -0
- package/dist/@types/services/fs/server/fileService.d.ts +27 -0
- package/dist/@types/services/genTempFile/server/genTempFileService.d.ts +3 -0
- package/dist/@types/services/global/server/global.d.ts +6 -0
- package/dist/@types/services/initializeCheck/server/initializeCheck.d.ts +4 -0
- package/dist/@types/services/locales/server/const.d.ts +5 -0
- package/dist/@types/services/locales/server/locales.d.ts +5 -0
- package/dist/@types/services/log/server/logService.d.ts +9 -0
- package/dist/@types/services/miniappjson/server/miniappjson.d.ts +4 -0
- package/dist/@types/services/multiTaskManager/server/multiTaskManager.d.ts +5 -0
- package/dist/@types/services/multiTaskManager/server/pm2TaskWorker.d.ts +1 -0
- package/dist/@types/services/multiTaskManager/server/pm2WorkerManager.d.ts +18 -0
- package/dist/@types/services/nativeModule/server/nativeModule.d.ts +3 -0
- package/dist/@types/services/performance/server/performance.d.ts +7 -0
- package/dist/@types/services/pluginFileReader/common/pluginFileReader.d.ts +3 -4
- package/dist/@types/services/pluginFileReader/server/pluginFileReader.d.ts +18 -0
- package/dist/@types/services/projectManager/server/buildServerProjectManager.d.ts +11 -0
- package/dist/@types/services/projectManager/server/projectManager.d.ts +7 -0
- package/dist/@types/services/root/server/root.d.ts +11 -0
- package/dist/@types/services/root/server/rootService.d.ts +2 -0
- package/dist/@types/services/staticConfig/server/staticConfigService.d.ts +4 -0
- package/dist/@types/services/store/server/storeService.d.ts +11 -0
- package/dist/@types/services/uniapp/server/uniapp.d.ts +4 -0
- package/dist/build-server/constant.js +1 -0
- package/dist/build-server/ctxManager.js +1 -0
- package/dist/build-server/fileCacheManager.js +1 -0
- package/dist/build-server/fileTaskDriver.js +1 -0
- package/dist/build-server/subProcess.js +1 -0
- package/dist/build-server/subTaskManager.js +1 -0
- package/dist/build-server/taskDriver.js +1 -0
- package/dist/build-server/taskFactory.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/index.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.js +1 -0
- package/dist/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/OTService.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/enhance.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/es6module.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/index.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/javascript.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/less.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/minifywxml.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/readFile.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/sass.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/terser.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/typescript.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/worklet.js +1 -0
- package/dist/build-server/tasks/baseFileCompiler/wxss.js +1 -0
- package/dist/build-server/tasks/common/apperrcode.config.js +1 -0
- package/dist/build-server/tasks/common/compiletype.config.js +1 -0
- package/dist/build-server/tasks/common/constants.config.js +1 -0
- package/dist/build-server/tasks/common/simulatortype.config.js +1 -0
- package/dist/build-server/tasks/common/utils/appdevserver/getwxappcode.js +1 -0
- package/dist/build-server/tasks/common/utils/babel/babelhelpers.js +1 -0
- package/dist/build-server/tasks/common/utils/builder/builder.js +1 -0
- package/dist/build-server/tasks/common/utils/builder/filter.js +1 -0
- package/dist/build-server/tasks/common/utils/builder/index.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/compile.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/config.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/filecompile.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/jspersistcache.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/manager.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/persistcache.js +1 -0
- package/dist/build-server/tasks/common/utils/cache/reporter.js +1 -0
- package/dist/build-server/tasks/common/utils/colorutils.js +1 -0
- package/dist/build-server/tasks/common/utils/common/bindActionTools.js +1 -0
- package/dist/build-server/tasks/common/utils/common/schema.helper.js +1 -0
- package/dist/build-server/tasks/common/utils/common/tools.js +1 -0
- package/dist/build-server/tasks/common/utils/common/waitable.js +1 -0
- package/dist/build-server/tasks/common/utils/filerules.js +1 -0
- package/dist/build-server/tasks/common/utils/fsutils.js +1 -0
- package/dist/build-server/tasks/common/utils/handleError.js +1 -0
- package/dist/build-server/tasks/common/utils/helper/vendorValidate.js +1 -0
- package/dist/build-server/tasks/common/utils/interfacebuilder/registry/index.js +1 -0
- package/dist/build-server/tasks/common/utils/partialcompile.js +1 -0
- package/dist/build-server/tasks/common/utils/project/appconfig.js +1 -0
- package/dist/build-server/tasks/common/utils/project/appjson.js +1 -0
- package/dist/build-server/tasks/common/utils/project/customcomponent.js +1 -0
- package/dist/build-server/tasks/common/utils/project/generatecode.utils.js +1 -0
- package/dist/build-server/tasks/common/utils/project/getcompiledjs.js +1 -0
- package/dist/build-server/tasks/common/utils/project/helper/index.js +1 -0
- package/dist/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.js +1 -0
- package/dist/build-server/tasks/common/utils/project/helper/reserveddirectories.js +1 -0
- package/dist/build-server/tasks/common/utils/project/helper/theme.js +1 -0
- package/dist/build-server/tasks/common/utils/project/online/appconfig.js +1 -0
- package/dist/build-server/tasks/common/utils/project/pagejson.js +1 -0
- package/dist/build-server/tasks/common/utils/project/projectconfigjson.js +1 -0
- package/dist/build-server/tasks/common/utils/project/wxappcodejson.js +1 -0
- package/dist/build-server/tasks/common/utils/subpackageUtils.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/Trace.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/aegis.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/index.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/readiness.js +1 -0
- package/dist/build-server/tasks/common/utils/tracing/report.js +1 -0
- package/dist/build-server/tasks/common/utils/trans/transwxmltojs.js +1 -0
- package/dist/build-server/tasks/common/utils/transformsourcemap.js +1 -0
- package/dist/build-server/tasks/common/utils/web/glasseaselUtils.js +1 -0
- package/dist/build-server/tasks/common/utils/web/md5.js +1 -0
- package/dist/build-server/tasks/common/utils/web/processPath.js +1 -0
- package/dist/build-server/tasks/common/weapp.config.js +1 -0
- package/dist/build-server/tasks/pageInitSourceCompile/index.js +1 -0
- package/dist/build-server/tasks/pageframeCompile/index.js +1 -0
- package/dist/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.js +1 -0
- package/dist/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.js +1 -0
- package/dist/build-server/testAppConfig.js +1 -0
- package/dist/build-server/testAppservice.js +1 -0
- package/dist/build-server/testInitSourceCompile.js +1 -0
- package/dist/build-server/testPageframe.js +1 -0
- package/dist/build-server/testSubProcess.js +1 -0
- package/dist/build-server/utils/fileTask.js +1 -0
- package/dist/build-server/utils/getFileOrCache.js +1 -0
- package/dist/build-server/utils/process.js +1 -0
- package/dist/build-server/utils/request.js +1 -0
- package/dist/bussinessMonitor/monitor.js +1 -0
- package/dist/config/config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/manifest.json +4 -0
- package/dist/modules/corecompiler/original/workerThread/task/func.js +1 -1
- package/dist/modules/corecompiler/processHandler.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeCPProject.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeContext.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeManager.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeWorker.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/wccPipe.js +1 -1
- package/dist/modules/corecompiler/summer/pipeManager/types.js +1 -1
- package/dist/modules/corecompiler/summerCompiler.js +1 -1
- package/dist/modules/fullcompiler/appservice/appservice.config.js +1 -0
- package/dist/modules/fullcompiler/appservice/generatecode.utils.js +1 -0
- package/dist/modules/fullcompiler/appservice/getappservice.js +1 -0
- package/dist/modules/fullcompiler/appservice/getcompiledjs.js +1 -0
- package/dist/modules/fullcompiler/appservice/getjsfile.js +1 -0
- package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +1 -0
- package/dist/modules/fullcompiler/appservice/getsubpackage.js +1 -0
- package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +1 -0
- package/dist/modules/fullcompiler/appservice/getwxappcode.js +1 -0
- package/dist/modules/fullcompiler/config/apperrcode.config.js +1 -0
- package/dist/modules/fullcompiler/filerules.js +1 -0
- package/dist/modules/fullcompiler/getallrawfiles.js +1 -0
- package/dist/modules/fullcompiler/getallwmltohtmlmap.js +1 -0
- package/dist/modules/fullcompiler/index.js +1 -0
- package/dist/modules/fullcompiler/pageframe/getsubpackage.js +1 -0
- package/dist/modules/fullcompiler/pageframe/getwxappcode.js +1 -0
- package/dist/modules/fullcompiler/pageframe/index.js +1 -0
- package/dist/modules/fullcompiler/trans/transwxmltojs.js +1 -0
- package/dist/modules/fullcompiler/trans/transwxsstojs.js +1 -0
- package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +1 -0
- package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/appjson.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +1 -0
- package/dist/modules/fullcompiler/utils/filewriter/index.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/handleerror.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +1 -0
- package/dist/modules/fullcompiler/utils/index.js +1 -0
- package/dist/modules/fullcompiler/utils/taskmanager.js +1 -0
- package/dist/modules/fullcompiler/utils/theme/index.js +1 -0
- package/dist/modules/fullcompiler/utils/tools.js +1 -0
- package/dist/modules/fullcompiler/utils/transformsourcemap.js +1 -0
- package/dist/project/serverProject.js +1 -0
- package/dist/services/app/server/appDirService.js +1 -0
- package/dist/services/builder/server/builder.js +1 -0
- package/dist/services/compileCacheManager/common/compileCacheManager.js +1 -0
- package/dist/services/compileCacheManager/nw/compileCacheManager.js +1 -0
- package/dist/services/compileCacheManager/server/compileCacheManager.js +1 -0
- package/dist/services/compilewxml/server/compilewxmlService.js +1 -0
- package/dist/services/compilewxml/server/wccWorker.js +1 -0
- package/dist/services/compilewxss/server/compilewxssService.js +1 -0
- package/dist/services/compilewxss/server/wcscWorker.js +1 -0
- package/dist/services/consoledisplay/server/consoledisplay.js +1 -0
- package/dist/services/fileUtilsManager/server/fileUtilsManager.js +1 -0
- package/dist/services/fs/server/fileService.js +1 -0
- package/dist/services/genTempFile/server/genTempFileService.js +1 -0
- package/dist/services/global/server/global.js +1 -0
- package/dist/services/initializeCheck/server/initializeCheck.js +1 -0
- package/dist/services/locales/server/const.js +1 -0
- package/dist/services/locales/server/locales.js +1 -0
- package/dist/services/log/server/logService.js +1 -0
- package/dist/services/miniappjson/server/miniappjson.js +1 -0
- package/dist/services/multiTaskManager/server/multiTaskManager.js +1 -0
- package/dist/services/multiTaskManager/server/pm2TaskWorker.js +1 -0
- package/dist/services/multiTaskManager/server/pm2WorkerManager.js +1 -0
- package/dist/services/nativeModule/server/nativeModule.js +1 -0
- package/dist/services/performance/server/performance.js +1 -0
- package/dist/services/pluginFileReader/server/pluginFileReader.js +1 -0
- package/dist/services/projectManager/server/buildServerProjectManager.js +1 -0
- package/dist/services/projectManager/server/projectManager.js +1 -0
- package/dist/services/root/server/root.js +1 -0
- package/dist/services/root/server/rootService.js +1 -0
- package/dist/services/staticConfig/server/staticConfigService.js +1 -0
- package/dist/services/store/server/storeService.js +1 -0
- package/dist/services/uniapp/server/uniapp.js +1 -0
- package/dist/utils/subprocess/processService.js +1 -1
- package/package.json +3 -60
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MiniProgramCore } from '../../types';
|
|
2
|
+
import { SummerCompiler } from '../corecompiler/summerCompiler';
|
|
3
|
+
export default function (project: MiniProgramCore.IPreCompileProject, compiler: SummerCompiler): Promise<{
|
|
4
|
+
success: boolean;
|
|
5
|
+
content: string[];
|
|
6
|
+
errMsg?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
success: boolean;
|
|
9
|
+
errMsg: any;
|
|
10
|
+
content: Map<any, any>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MiniProgramCore } from '../../types';
|
|
2
|
+
import { SummerCompiler } from '../corecompiler/summerCompiler';
|
|
3
|
+
export default function (project: MiniProgramCore.IPreCompileProject, compiler: SummerCompiler): Promise<{
|
|
4
|
+
success: boolean;
|
|
5
|
+
content: Map<string, string>;
|
|
6
|
+
errMsg?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
success: boolean;
|
|
9
|
+
errMsg: any;
|
|
10
|
+
content: Map<any, any>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { MiniProgramCore } from '../../types';
|
|
2
|
+
import { SummerCompiler } from '../corecompiler/summerCompiler';
|
|
3
|
+
import { IMiniappConnectType, IMiniappPkgType, ISubPkg } from './app/app';
|
|
4
|
+
export declare function checkProjectOKForWeb(_project: MiniProgramCore.IPreCompileProject): boolean;
|
|
5
|
+
interface IFullCompilerOpts {
|
|
6
|
+
summerCompiler: SummerCompiler;
|
|
7
|
+
outputDir?: string;
|
|
8
|
+
}
|
|
9
|
+
interface IComplileOpts {
|
|
10
|
+
outputDir?: string;
|
|
11
|
+
genWxapkg?: boolean;
|
|
12
|
+
genAppInfo?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class FullCompiler {
|
|
15
|
+
project: MiniProgramCore.IPreCompileProject;
|
|
16
|
+
summerCompiler: SummerCompiler;
|
|
17
|
+
outputDir?: string;
|
|
18
|
+
constructor(project: MiniProgramCore.IPreCompileProject, opts: IFullCompilerOpts);
|
|
19
|
+
compileFull(opts?: IComplileOpts): Promise<string>;
|
|
20
|
+
compileMulti(opts?: IComplileOpts): Promise<string>;
|
|
21
|
+
genSubPkgAppInfo(miniModuleId: string, subpkgs: ISubPkg[], outputJsonPath: string, buildVersion: number, contact: string, cpfWxaAttrSyncResponse: string, miniappPkgType: IMiniappPkgType, devtoolsLocalServerUrl?: string, remoteDebugConfig?: {
|
|
22
|
+
remoteDebugWsEndpoint?: string;
|
|
23
|
+
androidRemoteConfigForUSB?: {
|
|
24
|
+
appClientPortForotReloadServer: string;
|
|
25
|
+
appClientPortForRemoteDebugServer: string;
|
|
26
|
+
devtoolHotReloadServerPort: string;
|
|
27
|
+
devtoolRemoteDebugServerPort: string;
|
|
28
|
+
};
|
|
29
|
+
}, miniappConnectType?: IMiniappConnectType): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppJSON, MiniProgramCore } from '../../../types';
|
|
2
|
+
import { SummerCompiler } from '../../corecompiler/summerCompiler';
|
|
3
|
+
interface IGetPageFrameCoreOpts {
|
|
4
|
+
subpkgConfig: AppJSON.ISubpackageItem;
|
|
5
|
+
}
|
|
6
|
+
export default function getPageFrame(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, opts: IGetPageFrameCoreOpts): Promise<{
|
|
7
|
+
success: boolean;
|
|
8
|
+
content: any;
|
|
9
|
+
}>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MiniProgramCore } from '../../../types';
|
|
2
|
+
import { SummerCompiler } from '../../corecompiler/summerCompiler';
|
|
3
|
+
export declare function getWxAppCodeWxmlOfPage(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, pageName: string, genFnName: string): Promise<string[]>;
|
|
4
|
+
export declare function getWxAppCodeWxssOfPage(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, pageName: string): Promise<string[]>;
|
|
5
|
+
export declare function getWxAppCodeJsonOfPage(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, pageName: string): Promise<string[]>;
|
|
6
|
+
interface IGetWxAppCodeOptions {
|
|
7
|
+
app?: boolean;
|
|
8
|
+
page?: string;
|
|
9
|
+
noJson?: boolean;
|
|
10
|
+
noWXSS?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function getPageFrameWxAppCode(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, options?: IGetWxAppCodeOptions): Promise<string>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MiniProgramCore } from '../../../types';
|
|
2
|
+
import { SummerCompiler } from '../../corecompiler/summerCompiler';
|
|
3
|
+
interface IGetPageFrameCoreOpts {
|
|
4
|
+
multi: boolean;
|
|
5
|
+
}
|
|
6
|
+
export default function getPageFrame(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, opts: IGetPageFrameCoreOpts): Promise<{
|
|
7
|
+
success: boolean;
|
|
8
|
+
content: any;
|
|
9
|
+
}>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MiniProgramCore } from '../../../types';
|
|
2
|
+
import { SummerCompiler } from '../../corecompiler/summerCompiler';
|
|
3
|
+
interface ITransWxmlOptions {
|
|
4
|
+
app?: boolean;
|
|
5
|
+
page?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function transWXMLToJS(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, options: ITransWxmlOptions): Promise<{
|
|
8
|
+
code: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AppJSON, MiniProgramCore } from '../../../types';
|
|
2
|
+
import { SummerCompiler } from '../../corecompiler/summerCompiler';
|
|
3
|
+
interface ITransWxssOptions {
|
|
4
|
+
app?: boolean;
|
|
5
|
+
page?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ITransWxssInnerOptions {
|
|
8
|
+
appConfig: AppJSON.IAppConfig;
|
|
9
|
+
config?: AppJSON.ISubpackageItem;
|
|
10
|
+
lazyload?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface IWxssReturn {
|
|
13
|
+
comm: string;
|
|
14
|
+
page?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function getWxssFilesAndContent(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, options: ITransWxssInnerOptions): Promise<{
|
|
17
|
+
wxssFiles: string[];
|
|
18
|
+
content: Record<string, string>;
|
|
19
|
+
}>;
|
|
20
|
+
export declare function transWXSSToJS(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, options?: ITransWxssOptions): Promise<IWxssReturn>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface ICompileWxmlOptions {
|
|
2
|
+
files: string[];
|
|
3
|
+
configContent: string;
|
|
4
|
+
configSplit: string;
|
|
5
|
+
isCut: boolean;
|
|
6
|
+
cwd: string;
|
|
7
|
+
genfuncName: string;
|
|
8
|
+
hasWxs?: boolean;
|
|
9
|
+
isPlugin?: boolean;
|
|
10
|
+
lazyloadConfig?: string;
|
|
11
|
+
replaceContent?: Record<string, string>;
|
|
12
|
+
}
|
|
13
|
+
interface INormalResult {
|
|
14
|
+
code: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function compileWxml(options: ICompileWxmlOptions): Promise<INormalResult>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface ICompileWxssOptions {
|
|
2
|
+
files: string[];
|
|
3
|
+
pageCount: number;
|
|
4
|
+
cwd: string;
|
|
5
|
+
lazyload?: boolean;
|
|
6
|
+
subPackage?: string;
|
|
7
|
+
replaceContent?: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
type ICompileWxssResult = Record<string, string>;
|
|
10
|
+
export declare function compileWxss(options: ICompileWxssOptions): Promise<ICompileWxssResult>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppJSON, MiniProgramCore } from '../../../../types';
|
|
2
|
+
import { SummerCompiler } from '../../../corecompiler/summerCompiler';
|
|
3
|
+
declare function checkLightAppConfig(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, cloneDeep?: boolean): Promise<AppJSON.IAppConfig>;
|
|
4
|
+
declare function checkDarkmodeAppConfig(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, cloneDeep?: boolean): Promise<AppJSON.IAppConfig>;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
checkLightAppConfig: typeof checkLightAppConfig;
|
|
7
|
+
checkDarkmodeAppConfig: typeof checkDarkmodeAppConfig;
|
|
8
|
+
getAppConfig: (project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, cloneDeep?: boolean) => Promise<AppJSON.IAppConfig>;
|
|
9
|
+
checkIsInSubPackage: (project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, pagePath: string) => Promise<AppJSON.ISubpackageItem | undefined>;
|
|
10
|
+
DealSubPackages: (appconfig: AppJSON.IAppConfig) => AppJSON.IAppConfig;
|
|
11
|
+
};
|
|
12
|
+
export = _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppJSON, MiniProgramCore, PageJSON } from '../../../../types';
|
|
2
|
+
import { SummerCompiler } from '../../../corecompiler/summerCompiler';
|
|
3
|
+
export declare function getWxmlCompileConfig(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, appConfig: AppJSON.IAppConfig, config?: AppJSON.ISubpackageItem): Promise<any[]>;
|
|
4
|
+
export declare function getWxssCompileConfig(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, appConfig: AppJSON.IAppConfig, config?: AppJSON.ISubpackageItem): Promise<string[]>;
|
|
5
|
+
export declare function getFileListJustInPack(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, appConfig: AppJSON.IAppConfig, config?: AppJSON.ISubpackageItem): Promise<string[]>;
|
|
6
|
+
interface IComponentsConfigReturn {
|
|
7
|
+
[p: string]: {
|
|
8
|
+
file: string;
|
|
9
|
+
config: AppJSON.ISubpackageItem | undefined;
|
|
10
|
+
pageJSON: PageJSON.IPageJSON;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function getCustomComponentsConfig(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, appConfig: AppJSON.IAppConfig): Promise<IComponentsConfigReturn>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SummerCompiler } from '../../../corecompiler/summerCompiler';
|
|
2
|
+
import { MiniProgramCore } from '../../../../types';
|
|
3
|
+
export default function getCompiledPageJSON(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, pagePath: string): Promise<any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MiniProgramCore } from '../../../../types';
|
|
2
|
+
import { SummerCompiler } from '../../../corecompiler/summerCompiler';
|
|
3
|
+
export default function getWXAppCodeJSON(project: MiniProgramCore.IPreCompileProject, summerCompiler: SummerCompiler, pagePath: string): Promise<any>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface FileWriterOptions {
|
|
2
|
+
dist: string;
|
|
3
|
+
projectPath: string;
|
|
4
|
+
clearDist?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare class FileWriter {
|
|
7
|
+
projectPath: string;
|
|
8
|
+
dist: string;
|
|
9
|
+
constructor(options: FileWriterOptions);
|
|
10
|
+
getFinalPath(p: string): string;
|
|
11
|
+
writeFile(dist: string, content: string): void;
|
|
12
|
+
copyFile(dist: string, distPrefix?: string): void;
|
|
13
|
+
}
|
|
14
|
+
export default FileWriter;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IProject } from '../../../../types';
|
|
2
|
+
import { SummerCompiler } from '../../../corecompiler/summerCompiler';
|
|
3
|
+
interface IParseErrorInfo {
|
|
4
|
+
file: string;
|
|
5
|
+
msg: string;
|
|
6
|
+
reason?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: {
|
|
9
|
+
parseWXMLRuntimeErr: (project: IProject, compiler: SummerCompiler, event: {
|
|
10
|
+
message: string;
|
|
11
|
+
}) => Promise<{
|
|
12
|
+
file: string;
|
|
13
|
+
msg: string;
|
|
14
|
+
}>;
|
|
15
|
+
parseJsonFileErr: (event: {
|
|
16
|
+
file: string;
|
|
17
|
+
}) => {
|
|
18
|
+
file: string;
|
|
19
|
+
msg: string;
|
|
20
|
+
};
|
|
21
|
+
parseJsonParseErr: (project: IProject, event: {
|
|
22
|
+
fileName: string;
|
|
23
|
+
data: string;
|
|
24
|
+
error: string;
|
|
25
|
+
isPlugin?: boolean;
|
|
26
|
+
}) => string;
|
|
27
|
+
parsePluginWxmlErr: (project: IProject, compiler: SummerCompiler, err: string) => Promise<{
|
|
28
|
+
file: string;
|
|
29
|
+
msg: string;
|
|
30
|
+
}>;
|
|
31
|
+
parsePluginWxssErr: (project: IProject, compiler: SummerCompiler, data: string | {
|
|
32
|
+
msgForConsole: string;
|
|
33
|
+
}) => Promise<IParseErrorInfo>;
|
|
34
|
+
parseWxmlErr: (project: IProject, compiler: SummerCompiler, err: string) => Promise<{
|
|
35
|
+
file: string;
|
|
36
|
+
msg: string;
|
|
37
|
+
}>;
|
|
38
|
+
parseWxssErr: (project: IProject, compiler: SummerCompiler, data: string | {
|
|
39
|
+
msgForConsole: string;
|
|
40
|
+
}) => Promise<IParseErrorInfo>;
|
|
41
|
+
};
|
|
42
|
+
export = _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface ITaskProps {
|
|
2
|
+
poolLimit?: number;
|
|
3
|
+
breakWhenError?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare class TaskManager<R = any> {
|
|
6
|
+
private static _instance;
|
|
7
|
+
private _tasks;
|
|
8
|
+
private poolLimit;
|
|
9
|
+
private isRuning;
|
|
10
|
+
private taskPool;
|
|
11
|
+
private breakWhenError;
|
|
12
|
+
constructor(props?: ITaskProps);
|
|
13
|
+
static get shared(): TaskManager<any>;
|
|
14
|
+
addTask(task: () => R | Promise<R>): void;
|
|
15
|
+
addTask<A0, A extends any[]>(task: (arg0: A0, ...args: A) => R | Promise<R>, arg0: A0): void;
|
|
16
|
+
addTask<A0, A1, A extends any[]>(task: (arg0: A0, arg1: A1, ...args: A) => R | Promise<R>, arg0: A0, arg1: A1): void;
|
|
17
|
+
addTask<A0, A1, A2, A extends any[]>(task: (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R | Promise<R>, arg0: A0, arg1: A1, arg2: A2): void;
|
|
18
|
+
addTask<A0, A1, A2, A3, A extends any[]>(task: (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R | Promise<R>, arg0: A0, arg1: A1, arg2: A2, arg3: A3): void;
|
|
19
|
+
addTask<A0, A1, A2, A3, A4, A extends any[]>(task: (arg0: A0, arg1: A1, arg2: A2, arg3: A3, arg4: A4, ...args: A) => R | Promise<R>, arg0: A0, arg1: A1, arg2: A2, arg3: A3, arg4: A4): void;
|
|
20
|
+
runAllAsync(poolLimit?: number): Promise<R[]>;
|
|
21
|
+
runAllSerial(): Promise<R[]>;
|
|
22
|
+
}
|
|
23
|
+
export = TaskManager;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { MiniProgramCore } from '../../../../types';
|
|
2
|
+
export declare function checkTabbarListItemIconPath(prefix: string, absolutePath: string): string[];
|
|
3
|
+
export declare function checkThemeRules(projectPath: string): {
|
|
4
|
+
windowConfigRules: ({
|
|
5
|
+
key: string;
|
|
6
|
+
valids: string[];
|
|
7
|
+
hexColor?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
key: string;
|
|
10
|
+
hexColor: boolean;
|
|
11
|
+
valids?: undefined;
|
|
12
|
+
})[];
|
|
13
|
+
tabbarRules: ({
|
|
14
|
+
key: string;
|
|
15
|
+
hexColor: boolean;
|
|
16
|
+
valids?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
key: string;
|
|
19
|
+
valids: string[];
|
|
20
|
+
hexColor?: undefined;
|
|
21
|
+
})[];
|
|
22
|
+
tabbarListItemRules: {
|
|
23
|
+
key: string;
|
|
24
|
+
validate: (key: string, value: string) => void;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
export declare function getDefaultWindowConfig(isDarkMode: boolean): {
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
backgroundTextStyle: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function checkVariables(options: {
|
|
32
|
+
isDarkMode: boolean;
|
|
33
|
+
themeLocation: string;
|
|
34
|
+
filePath: string;
|
|
35
|
+
windowConfig: MiniProgramCore.IStringKeyMap;
|
|
36
|
+
themeJSON: MiniProgramCore.IStringKeyMap;
|
|
37
|
+
rules: any[];
|
|
38
|
+
keyPrefix: string;
|
|
39
|
+
isPlugin?: boolean;
|
|
40
|
+
}): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppJSON, MiniProgramDevtools } from '../../../types';
|
|
2
|
+
export declare function checkIsInSubPackage(appConfig: Readonly<AppJSON.IAppConfig>, pathName?: string): undefined | AppJSON.ISubpackageItem;
|
|
3
|
+
export declare function checkPluginByAliasOrProvider(appConfig: Readonly<AppJSON.IAppConfig>, aliasOrProvider: string): {
|
|
4
|
+
alias: string;
|
|
5
|
+
provider: string;
|
|
6
|
+
version: string;
|
|
7
|
+
config?: AppJSON.ISubpackageItem;
|
|
8
|
+
} | undefined;
|
|
9
|
+
export declare function getPluginByAliasOrProvider(plugins: {
|
|
10
|
+
[alias: string]: MiniProgramDevtools.IPluginInfo;
|
|
11
|
+
} | undefined, aliasOrProvider: string): {
|
|
12
|
+
alias: string;
|
|
13
|
+
provider: string;
|
|
14
|
+
version: string;
|
|
15
|
+
} | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function transformSourceMapSources(sources?: Array<string | null> | undefined | null): Array<string | null>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MiniProgramCore, MiniProgramDevtools, ProjectConfigJSON } from '../types';
|
|
2
|
+
import { BaseProject } from './baseProject';
|
|
3
|
+
type ProjectType = MiniProgramCore.ProjectType;
|
|
4
|
+
export interface ICreateProjectOptions {
|
|
5
|
+
projectPath: string;
|
|
6
|
+
type: ProjectType;
|
|
7
|
+
appid: string;
|
|
8
|
+
ignores?: string[];
|
|
9
|
+
targetPlatform?: MiniProgramCore.ITargetPlatform;
|
|
10
|
+
compileDefines?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
packOptions?: {
|
|
14
|
+
ignore: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
15
|
+
include: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare class ServerProject extends BaseProject {
|
|
19
|
+
private _project;
|
|
20
|
+
targetPlatform?: MiniProgramCore.ITargetPlatform;
|
|
21
|
+
private fileUtils;
|
|
22
|
+
private _preloadFileCache;
|
|
23
|
+
constructor(options: ICreateProjectOptions);
|
|
24
|
+
init(options: ICreateProjectOptions): Promise<void>;
|
|
25
|
+
initPreloadFileCache(): Promise<void>;
|
|
26
|
+
get project(): BaseProject;
|
|
27
|
+
existsAsync(prefix?: string, filePath?: string): Promise<boolean>;
|
|
28
|
+
exists(prefix?: string, filePath?: string): boolean;
|
|
29
|
+
getFile(prefix: string, filePath: string): Buffer;
|
|
30
|
+
statAsync(prefix?: string, filePath?: string): Promise<MiniProgramCore.IStat | undefined>;
|
|
31
|
+
stat(prefix?: string, filePath?: string): MiniProgramCore.IStat | undefined;
|
|
32
|
+
getProjectConfig(): Promise<ProjectConfigJSON.IProjectConfigJSON>;
|
|
33
|
+
updateFileAndDirs(): Promise<void>;
|
|
34
|
+
getExtAppid(): Promise<string | void>;
|
|
35
|
+
isMiniappProject(): boolean;
|
|
36
|
+
serialize(): Promise<MiniProgramCore.IPrecompileProjectSerializeInfo>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IAppDirService, IDirConfig } from '../common/appDirService';
|
|
2
|
+
export declare class ServerAppDirDevtoolsService implements IAppDirService {
|
|
3
|
+
init(): Promise<IDirConfig>;
|
|
4
|
+
get<T extends keyof IDirConfig>(dirType: T): Promise<IDirConfig[T]>;
|
|
5
|
+
cleanDir(dirType: keyof IDirConfig): Promise<void>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ICompileResult } from '~/build-server/type';
|
|
2
|
+
import { IFileList } from '~/services/fs/common/fileService';
|
|
3
|
+
export interface ICompileCacheManagerService {
|
|
4
|
+
set: (key: string, value: string | Record<string, any>) => void;
|
|
5
|
+
get: (key: string) => any;
|
|
6
|
+
clear: (ket: string) => void;
|
|
7
|
+
clearBatch: (keys: string[]) => Promise<number>;
|
|
8
|
+
reporter: {
|
|
9
|
+
hitCache: (key: string) => void;
|
|
10
|
+
startGenCache: (key: string) => void;
|
|
11
|
+
finishGenCache: (key: string) => void;
|
|
12
|
+
hitFileCache: (filePath: string) => void;
|
|
13
|
+
startGenFileCache: (filePath: string) => void;
|
|
14
|
+
finishGenFileCache: (filePath: string) => void;
|
|
15
|
+
};
|
|
16
|
+
generateFilePesistCacheKey(project: IProject, otherSeeds: any[]): Promise<string>;
|
|
17
|
+
setFile(filePath: string, value: any, infoKey: string): Promise<void>;
|
|
18
|
+
getFile(projectpath: string, filePath: string, infoKey: string, useEngineIDE?: boolean): Promise<ICompileResult | undefined>;
|
|
19
|
+
removeFile(filePath: string, infoKey: string): Promise<void>;
|
|
20
|
+
getFileList(key?: string): Promise<IFileList | undefined>;
|
|
21
|
+
setFileList(fileList: IFileList): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export declare const ICompileCacheManagerService: import("../../common/vs/platform/instantiation/common/instantiation").ServiceIdentifier<ICompileCacheManagerService>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ICompileCacheManagerService } from '../common/compileCacheManager';
|
|
2
|
+
import { ICompileResult } from '~/build-server/type';
|
|
3
|
+
import { IFileList } from '~/services/fs/common/fileService';
|
|
4
|
+
export declare class NWCompileCacheManagerService implements ICompileCacheManagerService {
|
|
5
|
+
reporter: any;
|
|
6
|
+
get: (key: string) => any;
|
|
7
|
+
set: (key: string, value: any) => void;
|
|
8
|
+
generateFilePesistCacheKey: (project: IProject, otherSeeds: any[]) => Promise<string>;
|
|
9
|
+
getFile: (projectpath: string, filePath: string, infoKey: string, useEngineIDE?: boolean) => Promise<ICompileResult | undefined>;
|
|
10
|
+
setFile: (filePath: string, value: any, infoKey: string) => Promise<void>;
|
|
11
|
+
removeFile(filePath: string, infoKey: string): Promise<void>;
|
|
12
|
+
clear(key: string): Promise<void>;
|
|
13
|
+
getFileList(key?: string): Promise<IFileList | []>;
|
|
14
|
+
setFileList(fileList: IFileList): Promise<void>;
|
|
15
|
+
clearBatch: (keys: string[]) => Promise<number>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ICompileCacheManagerService } from '../common/compileCacheManager';
|
|
2
|
+
import { ICompileResult } from '~/build-server/type';
|
|
3
|
+
import { IFileList } from '~/services/fs/common/fileService';
|
|
4
|
+
export declare class ServerCompileCacheManagerService implements ICompileCacheManagerService {
|
|
5
|
+
private isUseCache;
|
|
6
|
+
reporter: {
|
|
7
|
+
hitCache: (key: string) => void;
|
|
8
|
+
startGenCache: (key: string) => void;
|
|
9
|
+
finishGenCache: (key: string) => void;
|
|
10
|
+
hitFileCache: (filePath: string) => void;
|
|
11
|
+
startGenFileCache: (filePath: string) => void;
|
|
12
|
+
finishGenFileCache: (filePath: string) => void;
|
|
13
|
+
};
|
|
14
|
+
get: (key: string) => Promise<any>;
|
|
15
|
+
set: (key: string, value: string | Record<string, any>) => Promise<"OK" | null>;
|
|
16
|
+
generateFilePesistCacheKey: (project: IProject, otherSeeds: any[]) => Promise<string>;
|
|
17
|
+
getFile: (projectpath: string, filePath: string, infoKey?: string, useEngineIDE?: boolean) => Promise<ICompileResult | undefined>;
|
|
18
|
+
setFile: (filePath: string, value: ICompileResult, infoKey?: string) => Promise<void>;
|
|
19
|
+
clear: (key: string) => Promise<"OK" | null>;
|
|
20
|
+
clearBatch: (keys: string[]) => Promise<number>;
|
|
21
|
+
removeFile: (filePath: string, infoKey?: string) => Promise<void>;
|
|
22
|
+
setFileList: (fileList: IFileList) => Promise<void>;
|
|
23
|
+
getFileList: (key?: string) => Promise<IFileList | undefined>;
|
|
24
|
+
copyCache: (sourceProjectCacheKey: string, targetProjectCacheKey: string) => Promise<boolean>;
|
|
25
|
+
getProjectCacheKey(projectId?: string, versionId?: string): string | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ICompileWxmlOptions, ICompileResult, ICompilewxmlService, ICompileWxmlToGlassEasel, IGlassEaselCompileResult } from '../common/compilewxmlService';
|
|
2
|
+
export declare class ServerCompilewxmlService implements ICompilewxmlService {
|
|
3
|
+
compileWxml(options: ICompileWxmlOptions): Promise<ICompileResult>;
|
|
4
|
+
compileWxmlToGlassEasel(options: ICompileWxmlToGlassEasel): Promise<IGlassEaselCompileResult>;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Stats } from 'fs';
|
|
2
|
+
import { IBuilderFileServiceContext, IFileService, IReadFileOptions, IFileList } from '../common/fileService';
|
|
3
|
+
export declare class BuilderFileService implements IFileService {
|
|
4
|
+
private cache;
|
|
5
|
+
private getSessionId;
|
|
6
|
+
private getCacheKey;
|
|
7
|
+
private getValidCache;
|
|
8
|
+
private setCache;
|
|
9
|
+
private updateCacheWithContent;
|
|
10
|
+
private getCachedFileContent;
|
|
11
|
+
private getCachedFiles;
|
|
12
|
+
private fetchFileList;
|
|
13
|
+
private fetchFileContent;
|
|
14
|
+
readFile(filePath: string, options: IReadFileOptions | undefined, ctx: IBuilderFileServiceContext): Promise<Buffer | string>;
|
|
15
|
+
readFileList(filePaths: string[], ctx: IBuilderFileServiceContext): Promise<Record<string, string>>;
|
|
16
|
+
exists(filePath: string, ctx: IBuilderFileServiceContext): Promise<boolean>;
|
|
17
|
+
lstat(filePath: string, ctx: IBuilderFileServiceContext): Promise<Stats>;
|
|
18
|
+
fileList(ctx: IBuilderFileServiceContext): Promise<IFileList>;
|
|
19
|
+
preloadAllFiles(ctx: IBuilderFileServiceContext): Promise<{
|
|
20
|
+
success: boolean;
|
|
21
|
+
fileCount: number;
|
|
22
|
+
duration: number;
|
|
23
|
+
}>;
|
|
24
|
+
private handleEncoding;
|
|
25
|
+
private createEmptyStats;
|
|
26
|
+
private createStatsObject;
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ILogService } from '~/services/log/common/logService';
|
|
2
|
+
export declare class ServerLogService implements ILogService {
|
|
3
|
+
error(...args: any): void;
|
|
4
|
+
info(...args: any): void;
|
|
5
|
+
warn(...args: any): void;
|
|
6
|
+
log(...args: any): void;
|
|
7
|
+
debug(...args: any): void;
|
|
8
|
+
context(context: string, consoleObj?: Omit<ILogService, 'context'>): this;
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MiniProgramCore } from "~/types";
|
|
2
|
+
import { IMultiTaskManagerService } from "../common/multiTaskManager";
|
|
3
|
+
export declare class ServerMultiTaskManagerService implements IMultiTaskManagerService {
|
|
4
|
+
runTask(taskName: string, data: any, onStatusUpdate: MiniProgramCore.FN<void>): Promise<any>;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function callMainProcess(funcName: string, ...args: any[]): Promise<any>;
|