miniprogram-ci 2.1.31 → 2.1.33
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 +5 -0
- package/README.md +5 -0
- package/dist/@types/ci/checkCodeQuality.d.ts +1 -1
- package/dist/@types/ci/cloud/utils.d.ts +1 -1
- package/dist/@types/ci/code-analyse.d.ts +1 -1
- package/dist/@types/ci/cos-upload.d.ts +0 -1
- package/dist/@types/ci/getCompiledResult.d.ts +0 -1
- package/dist/@types/ci/utils/filterUnusedFile.d.ts +0 -1
- package/dist/@types/ci/utils/pack.d.ts +0 -1
- package/dist/@types/ci/utils/packfile.d.ts +0 -1
- package/dist/@types/ci/utils/tools.d.ts +1 -1
- package/dist/@types/ci/utils/wxvpkg/unpack/version0.d.ts +0 -1
- package/dist/@types/ci/utils/wxvpkg/unpack/version10.d.ts +0 -1
- package/dist/@types/common/code-analyse/index.d.ts +16 -1
- package/dist/@types/config/compiletype.config.d.ts +4 -4
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/config/dir.config.d.ts +17 -0
- package/dist/@types/config/url.config.d.ts +42 -42
- package/dist/@types/index.d.ts +6 -2
- package/dist/@types/modules/corecompiler/baseCompiler.d.ts +3 -4
- package/dist/@types/modules/corecompiler/original/compile/common.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/compile/game.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/compile/gamePlugin.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/compile/handler/mpjson.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/compile/index.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/compile/miniprogram.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/compile/miniprogramPlugin.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/index.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/js/index.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/protect/uglifyfilenames.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/webWorker/webWorkerManager.d.ts +0 -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 +4 -2
- package/dist/@types/modules/corecompiler/original/workerThread/task/compilewxss.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/workerThread/task/func.d.ts +4 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/minifywxml.d.ts +0 -1
- 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/graph/appconf.d.ts +1 -1
- package/dist/@types/modules/corecompiler/summer/graph/gameconf.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/less.d.ts +0 -1
- package/dist/@types/modules/corecompiler/summer/plugins/script_task/minify_script_task.d.ts +1 -1
- package/dist/@types/modules/corecompiler/summer/resolver.d.ts +1 -1
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +12 -3
- package/dist/@types/modules/index.d.ts +1 -1
- package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +2 -2
- package/dist/@types/modules/nativecompiler/processHandler.d.ts +1 -1
- package/dist/@types/modules/precompiler/conditioncompile/compiler/base.d.ts +0 -1
- package/dist/@types/modules/precompiler/conditioncompile/compiler/json.d.ts +0 -1
- package/dist/@types/modules/precompiler/conditioncompile/compiler/macro.d.ts +0 -1
- package/dist/@types/modules/precompiler/conditioncompile/compiler/plant.d.ts +1 -2
- package/dist/@types/modules/precompiler/conditioncompile/index.d.ts +1 -2
- package/dist/@types/project/advance/precompileProject.d.ts +1 -2
- package/dist/@types/project/advance/reactiveProject.d.ts +1 -2
- package/dist/@types/project/baseProject.d.ts +4 -3
- package/dist/@types/project/ciProjectWithMockBuffer.d.ts +0 -1
- package/dist/@types/services/accountcard/accountcard.d.ts +18 -0
- package/dist/@types/services/accountcard/accountcardService.d.ts +0 -0
- package/dist/@types/services/app/ci/appDirService.d.ts +6 -0
- package/dist/@types/services/app/common/appDirService.d.ts +10 -0
- package/dist/@types/services/app/common/appDirService.devtools.d.ts +7 -0
- package/dist/@types/services/app/electron/appDirService.d.ts +3 -0
- package/dist/@types/services/app/node/appDirService.d.ts +6 -0
- package/dist/@types/services/app/nw/appDirService.d.ts +3 -0
- package/dist/@types/services/builder/common/builder.d.ts +22 -0
- package/dist/@types/services/builder/nw/builder.d.ts +15 -0
- package/dist/@types/services/builder/webide/builder.d.ts +4 -0
- package/dist/@types/services/common/extensions.d.ts +8 -0
- package/dist/@types/services/common/getservice.d.ts +27 -0
- package/dist/@types/services/common/librarybase.d.ts +2063 -0
- package/dist/@types/services/common/vsbase.d.ts +3 -0
- package/dist/@types/services/compilewxml/common/compilewxmlService.d.ts +41 -0
- package/dist/@types/services/compilewxml/electron/compilewxmlService.d.ts +5 -0
- package/dist/@types/services/compilewxml/node/compileUtils.d.ts +3 -0
- package/dist/@types/services/compilewxml/node/compileglasseasel.d.ts +14 -0
- package/dist/@types/services/compilewxml/nw/compilewxmlService.d.ts +5 -0
- package/dist/@types/services/compilewxml/webide/compilewxmlService.d.ts +5 -0
- package/dist/@types/services/compilewxml/webide/pageFrameWasm/wcc/runWcc.d.ts +3 -0
- package/dist/@types/services/compilewxss/common/compilewxssService.d.ts +15 -0
- package/dist/@types/services/compilewxss/electron/compilewxssService.d.ts +4 -0
- package/dist/@types/services/compilewxss/node/compileUtils.d.ts +2 -0
- package/dist/@types/services/compilewxss/nw/compilewxssService.d.ts +4 -0
- package/dist/@types/services/compilewxss/webide/compilewxssService.d.ts +4 -0
- package/dist/@types/services/compilewxss/webide/pageFrameWasm/wcsc/runWcsc.d.ts +3 -0
- package/dist/@types/services/consoledisplay/common/consoledisplay.d.ts +5 -0
- package/dist/@types/services/consoledisplay/nw/consoledisplay.d.ts +6 -0
- package/dist/@types/services/fileUtilsManager/common/fileUtilsManager.d.ts +5 -0
- package/dist/@types/services/fileUtilsManager/nw/fileUtilsManager.d.ts +6 -0
- package/dist/@types/services/fs/common/fileService.d.ts +28 -0
- package/dist/@types/services/genTempFile/common/genTempFile.devtools.d.ts +4 -0
- package/dist/@types/services/genTempFile/common/genTempFile.node.d.ts +4 -0
- package/dist/@types/services/genTempFile/common/genTempFileService.d.ts +4 -0
- package/dist/@types/services/genTempFile/electron/genTempFileService.d.ts +3 -0
- package/dist/@types/services/genTempFile/node/genTempFileService.d.ts +3 -0
- package/dist/@types/services/genTempFile/nw/genTempFileService.d.ts +3 -0
- package/dist/@types/services/global/common/global.d.ts +10 -0
- package/dist/@types/services/global/nw/global.d.ts +12 -0
- package/dist/@types/services/initializeCheck/common/initializeCheck.d.ts +21 -0
- package/dist/@types/services/initializeCheck/nw/initializeCheck.d.ts +4 -0
- package/dist/@types/services/initializeCheck/webide/initializeCheck.d.ts +0 -0
- package/dist/@types/services/locales/common/locales.d.ts +7 -0
- package/dist/@types/services/locales/nw/locales.d.ts +9 -0
- package/dist/@types/services/log/common/logService.d.ts +9 -0
- package/dist/@types/services/miniappjson/common/miniappjson.d.ts +5 -0
- package/dist/@types/services/miniappjson/electron/miniappjson.d.ts +6 -0
- package/dist/@types/services/miniappjson/nw/miniappjson.d.ts +6 -0
- package/dist/@types/services/miniappjson/webide/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/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 +9 -0
- package/dist/@types/services/nativeModule/common/nativeModule.impl.d.ts +13 -0
- package/dist/@types/services/nativeModule/electron/nativeModule.d.ts +3 -0
- package/dist/@types/services/nativeModule/nw/nativeModule.d.ts +3 -0
- package/dist/@types/services/partialcompile/common/parialcompile.impl.d.ts +0 -0
- package/dist/@types/services/partialcompile/common/partialcompile.d.ts +0 -0
- package/dist/@types/services/partialcompile/nw/partialcompile.d.ts +0 -0
- package/dist/@types/services/partialcompile/webide/partialcompile.d.ts +0 -0
- package/dist/@types/services/performance/common/performance.d.ts +9 -0
- package/dist/@types/services/performance/nw/performance.d.ts +9 -0
- package/dist/@types/services/performance/webide/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 +12 -0
- package/dist/@types/services/pluginFileReader/electron/pluginFileReader.d.ts +3 -0
- package/dist/@types/services/pluginFileReader/webide/pluginFileReader.d.ts +9 -0
- package/dist/@types/services/project/common/cloudProjectService.d.ts +0 -0
- package/dist/@types/services/project/common/createProjectService.d.ts +0 -0
- package/dist/@types/services/project/common/project.helper.d.ts +0 -0
- package/dist/@types/services/project/common/projectConfigService.d.ts +0 -0
- package/dist/@types/services/project/common/projectFileService.d.ts +0 -0
- package/dist/@types/services/project/common/projectconfigjsonutils.d.ts +0 -0
- package/dist/@types/services/project/electron-backend/projectManagerService.d.ts +0 -0
- package/dist/@types/services/project/node/createProjectService.d.ts +0 -0
- package/dist/@types/services/project/node/projectConfigService.d.ts +0 -0
- package/dist/@types/services/project/node/projectManagerService.d.ts +0 -0
- package/dist/@types/services/project/web/projectManagerService.d.ts +0 -0
- package/dist/@types/services/project/webide/projectConfigService.d.ts +0 -0
- package/dist/@types/services/project/webide/projectFileService.d.ts +0 -0
- package/dist/@types/services/project/webide/projectManagerService.d.ts +0 -0
- package/dist/@types/services/projectManager/common/buildServerProjectManager.d.ts +5 -0
- package/dist/@types/services/projectManager/common/projectManager.d.ts +7 -0
- package/dist/@types/services/projectManager/nw/projectManager.d.ts +9 -0
- package/dist/@types/services/root/ci/root.d.ts +11 -0
- package/dist/@types/services/root/ci/rootService.d.ts +2 -0
- package/dist/@types/services/root/common/createService.d.ts +12 -0
- package/dist/@types/services/root/electron/root.d.ts +11 -0
- package/dist/@types/services/root/electron/rootService.d.ts +2 -0
- package/dist/@types/services/root/nw/root.d.ts +11 -0
- package/dist/@types/services/root/nw/rootService.d.ts +0 -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/common/staticConfigService.d.ts +5 -0
- package/dist/@types/services/staticConfig/nw/staticConfigService.d.ts +6 -0
- package/dist/@types/services/store/common/storeService.d.ts +17 -0
- package/dist/@types/services/uniapp/common/uniapp.d.ts +5 -0
- package/dist/@types/services/uniapp/nw/uniapp.d.ts +9 -0
- package/dist/@types/services/uniapp/webide/uniapp.d.ts +4 -0
- package/dist/@types/services/vendor/common/utils.d.ts +0 -0
- package/dist/@types/services/vendor/common/vendorService.d.ts +0 -0
- package/dist/@types/services/vendor/node/vendorService.d.ts +0 -0
- package/dist/@types/services/vendor/webide/vendorService.d.ts +0 -0
- package/dist/@types/types/ci.d.ts +1 -2
- package/dist/@types/types/core.d.ts +1 -2
- package/dist/@types/types/devtools.d.ts +0 -1
- package/dist/@types/types/summer.d.ts +0 -1
- package/dist/@types/utils/colorutils.d.ts +4 -0
- package/dist/@types/utils/common.d.ts +3 -1
- package/dist/@types/utils/cosUpload.d.ts +0 -1
- 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 -4
- package/dist/@types/utils/locales/locales.d.ts +2 -114
- package/dist/@types/utils/locales/zh.d.ts +114 -113
- package/dist/@types/utils/miniappJson.d.ts +1 -1
- package/dist/@types/utils/node/common.d.ts +1 -0
- package/dist/@types/utils/packOptionsHelper.d.ts +1 -1
- package/dist/@types/utils/processBootstrap.d.ts +7 -0
- package/dist/@types/utils/signature.d.ts +0 -1
- package/dist/@types/utils/singletontask.d.ts +1 -0
- package/dist/@types/utils/subprocess/processManager.d.ts +1 -0
- package/dist/@types/utils/taskqueue.d.ts +0 -1
- package/dist/@types/utils/taskstatus.d.ts +1 -1
- package/dist/@types/utils/tools.d.ts +3 -4
- package/dist/@types/utils/web/common.d.ts +1 -0
- package/dist/@types/utils/wxapkg/pack.d.ts +2 -3
- package/dist/@types/utils/wxvpkgreader/wxvpkg/reader/version0.d.ts +0 -1
- package/dist/@types/utils/wxvpkgreader/wxvpkg/reader/version10.d.ts +0 -1
- package/dist/@types/utils/wxvpkgreader/wxvpkg/unpack/version0.d.ts +0 -1
- package/dist/@types/utils/wxvpkgreader/wxvpkg/unpack/version10.d.ts +0 -1
- package/dist/@types/utils/wxvpkgreader/wxvpkgreader.d.ts +0 -1
- 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/getLatestVersion.js +1 -1
- package/dist/ci/getcompiler.js +1 -1
- package/dist/ci/index.js +1 -1
- package/dist/ci/jsserver.js +1 -1
- package/dist/ci/miniapp/androidCloudBuild.js +1 -1
- package/dist/ci/miniapp/archive.js +1 -1
- package/dist/ci/miniapp/checkBuildArgument.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/miniappattr.js +1 -1
- package/dist/ci/preview.js +1 -1
- package/dist/ci/projectattr.js +1 -1
- package/dist/ci/upload.js +1 -1
- package/dist/ci/utils/ciRequest.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/dir.config.js +1 -0
- package/dist/config/url.config.js +1 -1
- package/dist/index.js +1 -1
- 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/index.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/index.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/index.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/webWorker/configs.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/getWorkerPoolSize.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/graph/util.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/ensureArray.js +1 -1
- package/dist/modules/corecompiler/summer/utils/inputsourcemap.js +1 -1
- package/dist/modules/corecompiler/summer/worker.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/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/ios/projectconfig.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/summerCPProject.js +1 -1
- package/dist/services/accountcard/accountcard.js +1 -0
- package/dist/services/accountcard/accountcardService.js +1 -0
- package/dist/services/app/ci/appDirService.js +1 -0
- package/dist/services/app/common/appDirService.devtools.js +1 -0
- package/dist/services/app/common/appDirService.js +1 -0
- package/dist/services/app/electron/appDirService.js +1 -0
- package/dist/services/app/node/appDirService.js +1 -0
- package/dist/services/app/nw/appDirService.js +1 -0
- package/dist/services/builder/common/builder.js +1 -0
- package/dist/services/builder/nw/builder.js +1 -0
- package/dist/services/builder/webide/builder.js +1 -0
- package/dist/services/common/extensions.js +1 -0
- package/dist/services/common/getservice.js +1 -0
- package/dist/services/common/librarybase.js +1 -0
- package/dist/services/common/vsbase.js +1 -0
- package/dist/services/compilewxml/common/compilewxmlService.js +1 -0
- package/dist/services/compilewxml/electron/compilewxmlService.js +1 -0
- package/dist/services/compilewxml/node/compileUtils.js +1 -0
- package/dist/services/compilewxml/node/compileglasseasel.js +1 -0
- package/dist/services/compilewxml/nw/compilewxmlService.js +1 -0
- package/dist/services/compilewxml/webide/compilewxmlService.js +1 -0
- package/dist/services/compilewxml/webide/pageFrameWasm/wcc/runWcc.js +1 -0
- package/dist/services/compilewxss/common/compilewxssService.js +1 -0
- package/dist/services/compilewxss/electron/compilewxssService.js +1 -0
- package/dist/services/compilewxss/node/compileUtils.js +1 -0
- package/dist/services/compilewxss/nw/compilewxssService.js +1 -0
- package/dist/services/compilewxss/webide/compilewxssService.js +1 -0
- package/dist/services/compilewxss/webide/pageFrameWasm/wcsc/runWcsc.js +1 -0
- package/dist/services/consoledisplay/common/consoledisplay.js +1 -0
- package/dist/services/consoledisplay/nw/consoledisplay.js +1 -0
- package/dist/services/fileUtilsManager/common/fileUtilsManager.js +1 -0
- package/dist/services/fileUtilsManager/nw/fileUtilsManager.js +1 -0
- package/dist/services/fs/common/fileService.js +1 -0
- package/dist/services/genTempFile/common/genTempFile.devtools.js +1 -0
- package/dist/services/genTempFile/common/genTempFile.node.js +1 -0
- package/dist/services/genTempFile/common/genTempFileService.js +1 -0
- package/dist/services/genTempFile/electron/genTempFileService.js +1 -0
- package/dist/services/genTempFile/node/genTempFileService.js +1 -0
- package/dist/services/genTempFile/nw/genTempFileService.js +1 -0
- package/dist/services/global/common/global.js +1 -0
- package/dist/services/global/nw/global.js +1 -0
- package/dist/services/initializeCheck/common/initializeCheck.js +1 -0
- package/dist/services/initializeCheck/nw/initializeCheck.js +1 -0
- package/dist/services/initializeCheck/webide/initializeCheck.js +1 -0
- package/dist/services/locales/common/locales.js +1 -0
- package/dist/services/locales/nw/locales.js +1 -0
- package/dist/services/log/common/logService.js +1 -0
- package/dist/services/miniappjson/common/miniappjson.js +1 -0
- package/dist/services/miniappjson/electron/miniappjson.js +1 -0
- package/dist/services/miniappjson/nw/miniappjson.js +1 -0
- package/dist/services/miniappjson/webide/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/webide/multiTaskManager.js +1 -0
- package/dist/services/nativeModule/ci/nativeModule.js +1 -0
- package/dist/services/nativeModule/common/nativeModule.impl.js +1 -0
- package/dist/services/nativeModule/common/nativeModule.js +1 -0
- package/dist/services/nativeModule/electron/nativeModule.js +1 -0
- package/dist/services/nativeModule/nw/nativeModule.js +1 -0
- package/dist/services/partialcompile/common/parialcompile.impl.js +1 -0
- package/dist/services/partialcompile/common/partialcompile.js +1 -0
- package/dist/services/partialcompile/nw/partialcompile.js +1 -0
- package/dist/services/partialcompile/webide/partialcompile.js +1 -0
- package/dist/services/performance/common/performance.js +1 -0
- package/dist/services/performance/nw/performance.js +1 -0
- package/dist/services/performance/webide/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/webide/pluginFileReader.js +1 -0
- package/dist/services/project/common/cloudProjectService.js +1 -0
- package/dist/services/project/common/createProjectService.js +1 -0
- package/dist/services/project/common/project.helper.js +1 -0
- package/dist/services/project/common/projectConfigService.js +1 -0
- package/dist/services/project/common/projectFileService.js +1 -0
- package/dist/services/project/common/projectconfigjsonutils.js +1 -0
- package/dist/services/project/electron-backend/projectManagerService.js +1 -0
- package/dist/services/project/node/createProjectService.js +1 -0
- package/dist/services/project/node/projectConfigService.js +1 -0
- package/dist/services/project/node/projectManagerService.js +1 -0
- package/dist/services/project/web/projectManagerService.js +1 -0
- package/dist/services/project/webide/projectConfigService.js +1 -0
- package/dist/services/project/webide/projectFileService.js +1 -0
- package/dist/services/project/webide/projectManagerService.js +1 -0
- package/dist/services/projectManager/common/buildServerProjectManager.js +1 -0
- package/dist/services/projectManager/common/projectManager.js +1 -0
- package/dist/services/projectManager/nw/projectManager.js +1 -0
- package/dist/services/root/ci/root.js +1 -0
- package/dist/services/root/ci/rootService.js +1 -0
- package/dist/services/root/common/createService.js +1 -0
- package/dist/services/root/electron/root.js +1 -0
- package/dist/services/root/electron/rootService.js +1 -0
- package/dist/services/root/nw/root.js +1 -0
- package/dist/services/root/nw/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/common/staticConfigService.js +1 -0
- package/dist/services/staticConfig/nw/staticConfigService.js +1 -0
- package/dist/services/store/common/storeService.js +1 -0
- package/dist/services/uniapp/common/uniapp.js +1 -0
- package/dist/services/uniapp/nw/uniapp.js +1 -0
- package/dist/services/uniapp/webide/uniapp.js +1 -0
- package/dist/services/vendor/common/utils.js +1 -0
- package/dist/services/vendor/common/vendorService.js +1 -0
- package/dist/services/vendor/node/vendorService.js +1 -0
- package/dist/services/vendor/webide/vendorService.js +1 -0
- package/dist/types/ci.js +1 -1
- 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/cache.js +1 -1
- package/dist/utils/codesign.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/env.js +1 -1
- package/dist/utils/expression.js +1 -1
- package/dist/utils/fs.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/jsonParse.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/node/common.js +1 -0
- 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/report.js +1 -1
- package/dist/utils/request.js +1 -1
- package/dist/utils/sign.js +1 -1
- package/dist/utils/signature.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/subprocess/stringifyPostMsg.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 -0
- 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/dist/vendor/vslibrary/bundled/base.bundled.js +2 -0
- package/package.json +62 -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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPipeContext } from '../../../types';
|
|
2
|
+
export declare function getInitJS(mainContentScript: string[]): void;
|
|
3
|
+
export declare function getJSCodeBuild(context: IPipeContext, mainContentScript: string[], hasAppJS: boolean, pageFiles: string[], componentFiles: string[], functionalPageFiles: string[], otherFiles: string[], allFiles: string[]): Promise<void>;
|
|
4
|
+
export declare function getBabelCodeByName(context: IPipeContext, modName: string): Promise<string>;
|
|
5
|
+
export declare function getBabelHelperAndDepsCode(context: IPipeContext, babelHelpers: any): Promise<Map<any, any>>;
|
|
6
|
+
export declare function getAppCode(context: IPipeContext, mainContentScript: string[], wxmlXCJS: any, componentFiles: string[], pageFiles: string[]): Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPipeContext } from '../../../types';
|
|
2
|
+
interface IGetWxAppCodeOptions {
|
|
3
|
+
app?: boolean;
|
|
4
|
+
page?: string;
|
|
5
|
+
noJson?: boolean;
|
|
6
|
+
noWXSS?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function getPageFrameWxAppCode(context: IPipeContext, options?: IGetWxAppCodeOptions): Promise<string>;
|
|
9
|
+
export {};
|
package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RawSourceMap } from 'source-map';
|
|
2
|
+
import { IPipeContext } from '../../../types';
|
|
3
|
+
declare function getJsFile(context: IPipeContext, fileName: string, options?: {
|
|
4
|
+
injectHelpers?: boolean;
|
|
5
|
+
injectHelpersSync?: boolean;
|
|
6
|
+
}): Promise<{
|
|
7
|
+
code: string;
|
|
8
|
+
helpers: string[];
|
|
9
|
+
map: RawSourceMap | undefined;
|
|
10
|
+
mtime: number | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export = getJsFile;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IPipeContext } from '../../../types';
|
|
2
|
+
declare const getMainPkgSortedJSFiles: (context: IPipeContext) => Promise<{
|
|
3
|
+
hasAppJS: boolean;
|
|
4
|
+
allFiles: string[];
|
|
5
|
+
pageFiles: string[];
|
|
6
|
+
functionalPageFiles: string[];
|
|
7
|
+
workerFiles: string[];
|
|
8
|
+
componentFiles: string[];
|
|
9
|
+
otherFiles: string[];
|
|
10
|
+
}>;
|
|
11
|
+
export = getMainPkgSortedJSFiles;
|
package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPipeContext } from '../../../types';
|
|
2
|
+
declare function getWxAppCode(context: IPipeContext, requireDirectly?: boolean): Promise<any>;
|
|
3
|
+
declare function getWxAppCodeOfPage(context: IPipeContext, pathName: string, genFnName: string, requireDirectly?: boolean): Promise<string>;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
getWxAppCode: typeof getWxAppCode;
|
|
6
|
+
getWxAppCodeOfPage: typeof getWxAppCodeOfPage;
|
|
7
|
+
};
|
|
8
|
+
export = _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
declare const appErrCode: {
|
|
2
|
+
APP_JSON_READ_ERR: number;
|
|
3
|
+
APP_JSON_PARSE_ERR: number;
|
|
4
|
+
APP_JSON_PAGES_ERR: number;
|
|
5
|
+
APP_JSON_ENTRANCE_NOT_FOUND_ERR: number;
|
|
6
|
+
APP_JSON_CONTENT_ERR: number;
|
|
7
|
+
PAGES_JSON_PARSE_ERR: number;
|
|
8
|
+
APP_JSON_WXML_NOT_FOUND: number;
|
|
9
|
+
APP_JSON_JS_NOT_FOUND: number;
|
|
10
|
+
JSON_CONTENT_ERR: number;
|
|
11
|
+
EXT_JSON_PARSE_ERR: number;
|
|
12
|
+
EXT_JSON_PAGES_ERR: number;
|
|
13
|
+
EXT_JSON_CONTENT_ERR: number;
|
|
14
|
+
APPSERVICE_LOSE_WXML: number;
|
|
15
|
+
APPSERVICE_LOSE_JS: number;
|
|
16
|
+
FILE_NOT_UTF8: number;
|
|
17
|
+
BABEL_TRANS_JS_ERR: number;
|
|
18
|
+
UGLIFY_JS_ERR: number;
|
|
19
|
+
BABILI_JS_ERR: number;
|
|
20
|
+
JS_ES6_ERR: number;
|
|
21
|
+
FILE_FLAT_ERR: number;
|
|
22
|
+
POST_WXSS_ERR: number;
|
|
23
|
+
TRANS_WXML_JS_ERR: number;
|
|
24
|
+
TRANS_WXSS_JS_ERR: number;
|
|
25
|
+
SUMMER_PLUGIN_ERR: number;
|
|
26
|
+
SUMMER_PLUGIN_CODE_ERR: number;
|
|
27
|
+
VENDOR_MD5_NOT_MATCH: number;
|
|
28
|
+
VENDOR_WCC_FILE_NOT_FOUND: number;
|
|
29
|
+
VENDOR_WCSC_FILE_NOT_FOUND: number;
|
|
30
|
+
CODE_SIZE_EXCEED: number;
|
|
31
|
+
GET_GEO_LOCATION_ERR: number;
|
|
32
|
+
QCLOUD_SVR_NO_FOUND_ERR: number;
|
|
33
|
+
QCLOUD_SVR_POLL_TIMEOUT: number;
|
|
34
|
+
QCLOUD_SVR_POLL_DOING: number;
|
|
35
|
+
QCLOUD_SVR_UP_DIR_CHECK: number;
|
|
36
|
+
PLUGIN_JSON_READ_ERR: number;
|
|
37
|
+
PLUGIN_JSON_PARSE_ERR: number;
|
|
38
|
+
PLUGIN_JSON_CONTENT_ERR: number;
|
|
39
|
+
PLUGIN_PAGE_JSON_PARSE_ERR: number;
|
|
40
|
+
PLUGIN_JSON_FILE_NOT_FOUND: number;
|
|
41
|
+
PLUGIN_PAGE_JSON_CONTENT_ERR: number;
|
|
42
|
+
PLUGIN_TRANS_WXML_JS_ERR: number;
|
|
43
|
+
PLUGIN_TRANS_WXSS_JS_ERR: number;
|
|
44
|
+
PLUGIN_JS_ES6_ERR: number;
|
|
45
|
+
PLUGIN_ONLINE_CODE_UNPACK_ERR: number;
|
|
46
|
+
PAGE_JSON_PARSE_ERR: number;
|
|
47
|
+
SITE_MAP_JSON_CONTENT_ERROR: number;
|
|
48
|
+
CHECK_UPLOAD_STATUS_ERR: number;
|
|
49
|
+
CLEAR_SESSION_ERR: number;
|
|
50
|
+
GAME_CODE_LIB_MD5_ERR: number;
|
|
51
|
+
LOAD_QRCODE_OTHER_ERR: number;
|
|
52
|
+
JUMP_QCLOUD_PAGE_ERR: number;
|
|
53
|
+
PACK_NPM_ERR: number;
|
|
54
|
+
GET_PROJECT_CONFIG_ERR: number;
|
|
55
|
+
MINI_PROGRAM_CONSUME_TIMING: number;
|
|
56
|
+
MINI_GAME_CONSUME_TIMING: number;
|
|
57
|
+
UPLOAD_PROGRESS_FAIIL: number;
|
|
58
|
+
UPLOAD_PLUGIN_ERR: number;
|
|
59
|
+
UPLOAD_FAIILED: number;
|
|
60
|
+
COMPILE_CONDITION_APPID_ERR: number;
|
|
61
|
+
COMPILE_CONDITION_PROGRAM_ERR: number;
|
|
62
|
+
COMPILE_CONDITION_ERR: number;
|
|
63
|
+
COMPILE_CONDITION_ERR_WITH_DETAIL: number;
|
|
64
|
+
WIDGET_GET_SEARCH_QUERY_ERROR: number;
|
|
65
|
+
QCLOUD_CHOOSE_ENVIRONMENT_ERROR: number;
|
|
66
|
+
QCLOUD_UPLOAD_FAIL: number;
|
|
67
|
+
TOOLBAR_REMOTE_DEBUG_ERROR: number;
|
|
68
|
+
PREPROCESS_UPLOAD_ERROR: number;
|
|
69
|
+
DOWNLOAD_SOURCEMAP_ERROR: number;
|
|
70
|
+
SOURCEMAP_WRITE_ERROR: number;
|
|
71
|
+
CLEAN_USER_AUTH_ERROR: number;
|
|
72
|
+
JUMP_WXGIT_ERROR: number;
|
|
73
|
+
TCB_DELETE_FAILED: number;
|
|
74
|
+
FETCH_REMOTE_SETTING_ERROR: number;
|
|
75
|
+
UPLOAD_LOCAL_SETTING_ERROR: number;
|
|
76
|
+
UPLOAD_SOURCE_CODE_ERROR: number;
|
|
77
|
+
UPLOAD_EXCEED_SIZE_LIMIT: number;
|
|
78
|
+
PROJECT_CONFIG_JSON_ERROR: number;
|
|
79
|
+
TEST_CODE_RUN_ERROR: number;
|
|
80
|
+
AUTO_UPLOAD_ERROR: number;
|
|
81
|
+
CLOUD_UPLOAD_OPEN_ERROR: number;
|
|
82
|
+
CLOUD_BUILD_OPEN_ERROR: number;
|
|
83
|
+
WEBVIEW_NETWORK_ERROR: number;
|
|
84
|
+
APPSERVICE_NETWORK_ERROR: number;
|
|
85
|
+
PLUGIN_ERROR: number;
|
|
86
|
+
ONLINE_CODE_UNPACK_ERR: number;
|
|
87
|
+
URL_SCHEME_INVALID_ERROR: number;
|
|
88
|
+
URL_SCHEME_OTHER_ERROR: number;
|
|
89
|
+
APP_UPGRADE_ERROR: number;
|
|
90
|
+
APP_ADD_AUTHO_PAGE_ERROR: number;
|
|
91
|
+
};
|
|
92
|
+
export = appErrCode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function wrapCodeByEval(code: string): string;
|
package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IPipeContext } from '../../../types';
|
|
2
|
+
interface IComponentsConfigReturn {
|
|
3
|
+
[p: string]: {
|
|
4
|
+
file: string;
|
|
5
|
+
config: DR<AppConfig.ISubpackageItem> | undefined;
|
|
6
|
+
pageJSON: IPageJSON;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
declare function getFileListJustInPack(context: IPipeContext, appConfig: DR<AppConfig.IAppConfig>, config?: DR<AppConfig.ISubpackageItem>): Promise<string[]>;
|
|
10
|
+
declare function getWxssCompileConfig(context: IPipeContext, appConfig: DR<AppConfig.IAppConfig>, config?: DR<AppConfig.ISubpackageItem>): Promise<string[]>;
|
|
11
|
+
declare function getWxmlCompileConfig(context: IPipeContext, appConfig: DR<AppConfig.IAppConfig>, config?: DR<AppConfig.ISubpackageItem>): Promise<any[]>;
|
|
12
|
+
declare function getWxmlCompileLazyConfig(context: IPipeContext, appConfig: DR<AppConfig.IAppConfig>, config?: DR<AppConfig.ISubpackageItem>): Promise<string[]>;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
getFileListJustInPack: typeof getFileListJustInPack;
|
|
15
|
+
getWxssCompileConfig: typeof getWxssCompileConfig;
|
|
16
|
+
getWxmlCompileConfig: typeof getWxmlCompileConfig;
|
|
17
|
+
getWxmlCompileLazyConfig: typeof getWxmlCompileLazyConfig;
|
|
18
|
+
getCustomComponentsConfig: (context: IPipeContext, appConfig: DR<AppConfig.IAppConfig>) => Promise<IComponentsConfigReturn>;
|
|
19
|
+
findSubpackageForFile: (file: string, appConfig: DR<AppConfig.IAppConfig>) => DR<AppConfig.ISubpackageItem> | undefined;
|
|
20
|
+
};
|
|
21
|
+
export = _default;
|
package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PipeCPProject } from '../../../../pipeCPProject';
|
|
2
|
+
export declare function checkTabbarListItemIconPath(prefix: string, absolutePath: string, project: PipeCPProject): any[];
|
|
3
|
+
export declare function checkThemeRules(projectPath: string, project?: PipeCPProject): {
|
|
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: IStringKeyMap;
|
|
36
|
+
themeJSON: IStringKeyMap;
|
|
37
|
+
rules: any[];
|
|
38
|
+
keyPrefix: string;
|
|
39
|
+
isPlugin?: boolean;
|
|
40
|
+
}): void;
|
package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IPipeContext } from '../../../types';
|
|
2
|
+
interface ITransWxmlOptions {
|
|
3
|
+
app?: boolean;
|
|
4
|
+
page?: string;
|
|
5
|
+
cut?: boolean;
|
|
6
|
+
hotReloadFile?: string;
|
|
7
|
+
}
|
|
8
|
+
interface IWXMLReturn {
|
|
9
|
+
name: string;
|
|
10
|
+
comm?: string;
|
|
11
|
+
code: string;
|
|
12
|
+
names?: AnyObject;
|
|
13
|
+
pages?: AnyObject;
|
|
14
|
+
}
|
|
15
|
+
declare function transWXMLToJS(context: IPipeContext, options?: ITransWxmlOptions): Promise<IWXMLReturn>;
|
|
16
|
+
declare const _default: {
|
|
17
|
+
transWXMLToJS: typeof transWXMLToJS;
|
|
18
|
+
};
|
|
19
|
+
export = _default;
|
package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IPipeContext } from '../../../types';
|
|
2
|
+
interface ITransWxssOptions {
|
|
3
|
+
app?: boolean;
|
|
4
|
+
page?: string;
|
|
5
|
+
hotReloadFile?: string;
|
|
6
|
+
}
|
|
7
|
+
interface IWxssReturn {
|
|
8
|
+
comm: string;
|
|
9
|
+
page?: string;
|
|
10
|
+
}
|
|
11
|
+
declare function transWXSSToJS(context: IPipeContext, options?: ITransWxssOptions): Promise<IWxssReturn>;
|
|
12
|
+
declare const _default: {
|
|
13
|
+
transWXSSToJS: typeof transWXSSToJS;
|
|
14
|
+
};
|
|
15
|
+
export = _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface INormalizePathOptions {
|
|
2
|
+
leading?: string;
|
|
3
|
+
noLeading?: string;
|
|
4
|
+
trailing?: string;
|
|
5
|
+
noTrailing?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function normalizePath(pathName?: string, options?: INormalizePathOptions): string;
|
|
8
|
+
export declare function isLeftSubPathOfRight(child: string, parent: string): boolean;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ICompileResult, ICompileWxmlOptions, ICompileWxmlToGlassEasel, IGlassEaselCompileResult } from '~/services/compilewxml/common/compilewxmlService';
|
|
2
|
+
import { ICompileWxssOptions, ICompileWxssResult } from '~/services/compilewxss/common/compilewxssService';
|
|
3
|
+
import { vsbase } from '../../../../services/common/vsbase';
|
|
4
|
+
import { MiniProgramCore } from '../../../../types';
|
|
5
|
+
import { PipeCPProject } from './pipeCPProject';
|
|
6
|
+
import type { IBackendContextFromWeb } from '~/types/type';
|
|
7
|
+
type ServiceIdentifier<T> = vsbase.vs.platform.instantiation.common.instantiation.$types.ServiceIdentifier<T>;
|
|
8
|
+
export declare enum EPipeCMD {
|
|
9
|
+
WCC = "WCC",
|
|
10
|
+
TRANS_WXML_TO_GLASS_EASEL = "TRANS_WXML_TO_GLASS_EASEL",
|
|
11
|
+
COMPILE_WXSS = "COMPILE_WXSS",
|
|
12
|
+
PAGEFRAME = "PAGEFRAME",
|
|
13
|
+
PAGE_INIT_SOURCE = "PAGE_INIT_SOURCE",
|
|
14
|
+
APPSERVICE = "APPSERVICE"
|
|
15
|
+
}
|
|
16
|
+
export interface IPipiInputOutputType<T, P> {
|
|
17
|
+
input: T;
|
|
18
|
+
output: P;
|
|
19
|
+
}
|
|
20
|
+
export type IPipeParamOutputTypeMap = {
|
|
21
|
+
[EPipeCMD.WCC]: IPipiInputOutputType<ICompileWxmlOptions, ICompileResult>;
|
|
22
|
+
[EPipeCMD.TRANS_WXML_TO_GLASS_EASEL]: IPipiInputOutputType<ICompileWxmlToGlassEasel, IGlassEaselCompileResult>;
|
|
23
|
+
[EPipeCMD.COMPILE_WXSS]: IPipiInputOutputType<ICompileWxssOptions, ICompileWxssResult>;
|
|
24
|
+
[EPipeCMD.PAGEFRAME]: IPipiInputOutputType<{
|
|
25
|
+
isMultiPkg?: boolean;
|
|
26
|
+
}, string>;
|
|
27
|
+
[EPipeCMD.PAGE_INIT_SOURCE]: IPipiInputOutputType<{
|
|
28
|
+
filepath: string;
|
|
29
|
+
}, string>;
|
|
30
|
+
[EPipeCMD.APPSERVICE]: IPipiInputOutputType<Record<string, never>, string>;
|
|
31
|
+
};
|
|
32
|
+
export interface IPipeDefinition<TParams = any, TOutput = unknown> {
|
|
33
|
+
name: string;
|
|
34
|
+
timeout?: number;
|
|
35
|
+
execute(context: IPipeContext, params: TParams): Promise<TOutput>;
|
|
36
|
+
}
|
|
37
|
+
export interface IPipeContext {
|
|
38
|
+
requestPipe<T = unknown>(pipeName: string, params?: Record<string, unknown>): Promise<T>;
|
|
39
|
+
callCompiler<T = unknown>(method: string, ...args: unknown[]): Promise<T>;
|
|
40
|
+
project: PipeCPProject;
|
|
41
|
+
getService<T>(id: ServiceIdentifier<T>): T;
|
|
42
|
+
}
|
|
43
|
+
export interface IPipeProjectSerializeInfo {
|
|
44
|
+
appid: string;
|
|
45
|
+
attr: any;
|
|
46
|
+
type: MiniProgramCore.ProjectType;
|
|
47
|
+
projectPath: string;
|
|
48
|
+
projectArchitecture: MiniProgramCore.IProjectArchitecture;
|
|
49
|
+
miniprogramRoot: string;
|
|
50
|
+
pluginRoot: string;
|
|
51
|
+
setting: any;
|
|
52
|
+
backendProjectContext?: IBackendContextFromWeb;
|
|
53
|
+
projectContext?: {
|
|
54
|
+
projectId: string;
|
|
55
|
+
versionId: string;
|
|
56
|
+
ticket: string;
|
|
57
|
+
sessionId: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export type IPipeRequest = {
|
|
61
|
+
type: 'pipe';
|
|
62
|
+
requestId: string;
|
|
63
|
+
name: string;
|
|
64
|
+
params?: Record<string, unknown>;
|
|
65
|
+
} | {
|
|
66
|
+
type: 'compiler';
|
|
67
|
+
requestId: string;
|
|
68
|
+
method: string;
|
|
69
|
+
args: unknown[];
|
|
70
|
+
};
|
|
71
|
+
export interface IPipeResponse {
|
|
72
|
+
requestId: string;
|
|
73
|
+
data?: any;
|
|
74
|
+
error?: {
|
|
75
|
+
code: number;
|
|
76
|
+
message: string;
|
|
77
|
+
stack: string;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export interface IPipeTaskData {
|
|
81
|
+
pipeName: string;
|
|
82
|
+
params?: Record<string, unknown>;
|
|
83
|
+
projectInfo: IPipeProjectSerializeInfo;
|
|
84
|
+
}
|
|
85
|
+
export interface IPipeTaskResult {
|
|
86
|
+
error?: any;
|
|
87
|
+
result?: any;
|
|
88
|
+
}
|
|
89
|
+
export interface IExecutePipeData {
|
|
90
|
+
pipeName: string;
|
|
91
|
+
params?: Record<string, unknown>;
|
|
92
|
+
backendProjectContext?: IBackendContextFromWeb;
|
|
93
|
+
projectContext?: {
|
|
94
|
+
projectId: string;
|
|
95
|
+
versionId: string;
|
|
96
|
+
ticket: string;
|
|
97
|
+
sessionId: string;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MiniProgramSummer } from '../../../../../types';
|
|
2
2
|
export declare function doCompress(targetPath: string, target: Pick<MiniProgramSummer.GenerateDescription, 'code' | 'map'>): Promise<{
|
|
3
3
|
code: string;
|
|
4
|
-
map: string | import("
|
|
4
|
+
map: string | import("@jridgewell/gen-mapping").EncodedSourceMap | undefined;
|
|
5
5
|
}>;
|
|
@@ -19,7 +19,7 @@ export declare class Resolver {
|
|
|
19
19
|
allExts: string[];
|
|
20
20
|
constructor(graph: BaseGraph, root: string, extConf: ResolveExtConf);
|
|
21
21
|
updateFileAndDirs(): void;
|
|
22
|
-
onFileChange: (type:
|
|
22
|
+
onFileChange: (type: "unlink" | "unlinkDir" | "add" | "addDir" | "change", path: string) => void;
|
|
23
23
|
resolve(source: string): ResolveFileInfo[];
|
|
24
24
|
stat(path: string): IStat | undefined;
|
|
25
25
|
private isCodeFile;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { MiniProgramDevtools, MiniProgramCore, ExtJSON } from '../../types';
|
|
3
2
|
import { FileInfo } from './summer/graph/basegraph';
|
|
4
3
|
import { EFilterCode } from '../../config/config';
|
|
@@ -6,6 +5,7 @@ import { SubProcessProxy } from '../../utils/subprocess/processManager';
|
|
|
6
5
|
import { IMessageHub } from '../../utils/messageHub';
|
|
7
6
|
import { BaseCoreCompiler } from './baseCompiler';
|
|
8
7
|
import { Analyzer } from '../../common/code-analyse';
|
|
8
|
+
import { EPipeCMD, IExecutePipeData, IPipeParamOutputTypeMap } from './summer/pipeManager/types';
|
|
9
9
|
export { ICompilerStatus } from './summer/summer';
|
|
10
10
|
export declare class SummerCompiler extends BaseCoreCompiler {
|
|
11
11
|
project: MiniProgramCore.IPreCompileProject;
|
|
@@ -24,27 +24,33 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
24
24
|
_status: MiniProgramDevtools.ICompilerStatus | undefined;
|
|
25
25
|
private _eventAdded;
|
|
26
26
|
private _locale;
|
|
27
|
+
private _initServiceForkId;
|
|
27
28
|
private devCodeCacheByPath;
|
|
28
29
|
constructor(project: MiniProgramCore.IPreCompileProject, cachePath: string, projectInfo: MiniProgramDevtools.IDevtoolsProjectInfo, devtoolMessagehub: IMessageHub, analyzer: Analyzer | null, _filterFactory?: MiniProgramDevtools.IFilterFactory | undefined, onInitFinished?: ((e?: Error) => void) | undefined);
|
|
29
30
|
get status(): MiniProgramDevtools.ICompilerStatus | undefined;
|
|
30
31
|
protected init(): Promise<void>;
|
|
32
|
+
private initServiceAndLoadStatus;
|
|
33
|
+
private ensureInitService;
|
|
34
|
+
private safeRunTask;
|
|
31
35
|
private loadStatus;
|
|
32
36
|
destroy(): void;
|
|
33
37
|
clearCache(): Promise<void>;
|
|
38
|
+
dumpWorkerTaskStats(): Promise<void>;
|
|
39
|
+
clearWorkerTaskStats(): Promise<void>;
|
|
34
40
|
getProjectInfo(): MiniProgramDevtools.IDevtoolsProjectInfo;
|
|
35
41
|
updateOptions(options: MiniProgramDevtools.IDevtoolsProjectInfo): void;
|
|
36
42
|
updateOptionsWithoutJudge(options: MiniProgramDevtools.IDevtoolsProjectInfo): void;
|
|
37
43
|
updateOptionsWhenAttrNotChanged(options: MiniProgramDevtools.IDevtoolsProjectInfo): void;
|
|
38
44
|
private addProjectListener;
|
|
39
45
|
private removeProjectListener;
|
|
40
|
-
onFileChange: (type:
|
|
46
|
+
onFileChange: (type: "unlink" | "unlinkDir" | "add" | "addDir" | "change", targetPath: string) => void;
|
|
41
47
|
onPreCompileOptionsChange: (data: any) => Promise<void>;
|
|
42
48
|
private invalidCodeCache;
|
|
43
49
|
private onProgressUpdate;
|
|
44
50
|
private getConf;
|
|
45
51
|
waitSubProcessReady(): Promise<void>;
|
|
46
52
|
getPackageFiles(graphId: MiniProgramDevtools.GraphId, root: string, resultType?: MiniProgramCore.IResultType, useCache?: boolean): Promise<FileInfo[]>;
|
|
47
|
-
_getPackageFiles: (graphId:
|
|
53
|
+
_getPackageFiles: (graphId: MiniProgramDevtools.GraphId, root: string, resultType?: MiniProgramCore.IResultType) => Promise<FileInfo[]>;
|
|
48
54
|
private isMiniappPlatformInclude;
|
|
49
55
|
filterUnusedFiles(isGame: boolean, abFilePath: string, resultType: MiniProgramCore.IResultType): Promise<EFilterCode>;
|
|
50
56
|
private filterFactory;
|
|
@@ -156,4 +162,7 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
156
162
|
file: string;
|
|
157
163
|
code: number;
|
|
158
164
|
}[]>;
|
|
165
|
+
executePipe<T extends EPipeCMD.WCC | EPipeCMD.TRANS_WXML_TO_GLASS_EASEL | EPipeCMD.COMPILE_WXSS>(pipeName: T, params: IPipeParamOutputTypeMap[T]['input']): Promise<IPipeParamOutputTypeMap[T]['output']>;
|
|
166
|
+
getPageframe(isMultiPkg: boolean | undefined, extra: Pick<IExecutePipeData, 'backendProjectContext' | 'projectContext'>): Promise<string>;
|
|
167
|
+
getAppservice(extra: Pick<IExecutePipeData, 'backendProjectContext' | 'projectContext'>): Promise<string>;
|
|
159
168
|
}
|
|
@@ -32,7 +32,7 @@ export declare class Builder {
|
|
|
32
32
|
private _originalCompiler;
|
|
33
33
|
private _analyzer?;
|
|
34
34
|
constructor(project: MiniProgramCI.IProject, opts: IBuilderOptions);
|
|
35
|
-
getCompiler(): Promise<
|
|
35
|
+
getCompiler(): Promise<SummerCompiler>;
|
|
36
36
|
getAnalyzer(): Promise<Analyzer | null>;
|
|
37
37
|
getPreCompileProject(): Promise<PreCompileProject>;
|
|
38
38
|
private _getPreCompileProject;
|
|
@@ -47,8 +47,8 @@ declare class buildCloudManager {
|
|
|
47
47
|
copyResourcesToMainBundle(srcFrameworksPath: string, distFrameworkPath: string): void;
|
|
48
48
|
prepareAppexProfileConfig(pluginDirList: IMiniApp.IIOSPluginDir[], iosMiniappJson: MiniProgramCore.IStringKeyMap, projectPath: string, miniappCacheDirPath: string, isPublish: boolean, CFBundleVersion: string, CFBundleShortVersionString: string, recorder: Recorder): false | {
|
|
49
49
|
[appexName: string]: {
|
|
50
|
-
profilePath?: string
|
|
51
|
-
bundleID?: string
|
|
50
|
+
profilePath?: string;
|
|
51
|
+
bundleID?: string;
|
|
52
52
|
enable: boolean;
|
|
53
53
|
};
|
|
54
54
|
} | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MiniProgramDevtools } from '../../types';
|
|
2
2
|
export declare function initHandler(message: MiniProgramDevtools.InitMsg): Promise<void>;
|
|
3
3
|
export declare function destroy(): Promise<void>;
|
|
4
|
-
export declare const onMessage: (fn: (...args: any[]) => any) => void
|
|
4
|
+
export declare const onMessage: (fn: (...args: any[]) => any) => Promise<void>;
|
|
5
5
|
export declare function messageHandler(message: MiniProgramDevtools.SummerProcessMessage): Promise<void>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { MacroDefine } from '../define';
|
|
3
2
|
import { BaseConditionCompiler } from './base';
|
|
4
3
|
export declare class PlantConditionCompiler extends BaseConditionCompiler {
|
|
@@ -6,5 +5,5 @@ export declare class PlantConditionCompiler extends BaseConditionCompiler {
|
|
|
6
5
|
filePath: string;
|
|
7
6
|
content: Buffer;
|
|
8
7
|
macroDefine: MacroDefine;
|
|
9
|
-
}): Buffer
|
|
8
|
+
}): Buffer<ArrayBufferLike>;
|
|
10
9
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { MiniProgramCI, MiniProgramCore } from '../../../types';
|
|
3
2
|
import { BaseConditionCompiler } from './compiler/base';
|
|
4
3
|
import { IConsoleDisplay, IMessageHub } from '../../../utils/messageHub';
|
|
@@ -18,7 +17,7 @@ export declare class ConditionCompiler {
|
|
|
18
17
|
shouldCompile(filePath: string): boolean;
|
|
19
18
|
compileFile(filePath: string, opts?: IConditionCompiler): Buffer;
|
|
20
19
|
compileProject(opts?: IConditionCompiler): {
|
|
21
|
-
[key: string]: Buffer
|
|
20
|
+
[key: string]: Buffer<ArrayBufferLike>;
|
|
22
21
|
};
|
|
23
22
|
filterResourceByPlatfrom(opts?: MiniProgramCore.IConditionCompileInfo): string[];
|
|
24
23
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { MiniProgramCore, MiniProgramDevtools, MiniProgramSummer, MiniProgramCI } from '../../types';
|
|
3
2
|
import { BaseProject } from '../baseProject';
|
|
4
3
|
import { ConditionCompiler } from '../../modules/precompiler/index';
|
|
@@ -26,7 +25,7 @@ export declare class PreCompileProject extends BaseProject implements MiniProgra
|
|
|
26
25
|
get srcPath(): string;
|
|
27
26
|
attr(): Promise<MiniProgramCI.IProjectAttr>;
|
|
28
27
|
serialize(): Promise<MiniProgramCore.IPrecompileProjectSerializeInfo>;
|
|
29
|
-
getSrcFile(prefix: string | undefined, filePath: string): Buffer
|
|
28
|
+
getSrcFile(prefix: string | undefined, filePath: string): Buffer<ArrayBufferLike>;
|
|
30
29
|
getFile(prefix: string | undefined, filePath: string): Buffer;
|
|
31
30
|
onFileChange: (type: MiniProgramCore.IWatchEventType, targetPath: string) => Promise<void>;
|
|
32
31
|
notifyRefreshFileOrDirs(oldFiles: string[]): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { MiniProgramCore } from '../../types';
|
|
3
2
|
import { BaseProject } from '../baseProject';
|
|
4
3
|
export declare class ReactiveProject extends BaseProject implements MiniProgramCore.IPreCompileProject {
|
|
@@ -32,7 +31,7 @@ export declare class ReactiveProject extends BaseProject implements MiniProgramC
|
|
|
32
31
|
dirs: string[];
|
|
33
32
|
};
|
|
34
33
|
getExtAppid(): Promise<string | void>;
|
|
35
|
-
onFileChange: (type:
|
|
34
|
+
onFileChange: (type: "unlink" | "unlinkDir" | "add" | "addDir" | "change", targetPath: string) => Promise<void>;
|
|
36
35
|
getFile(prefix: string, filePath: string): Buffer;
|
|
37
36
|
stat(prefix: string, filePath: string): import("../../types").MiniProgramCI.IStat | undefined;
|
|
38
37
|
attrSync(): import("../../types").MiniProgramCI.IProjectAttr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { MiniProgramCore, MiniProgramDevtools, MiniProgramSummer, ProjectConfigJSON } from '../types';
|
|
3
2
|
import WaitAble from '../utils/waitable';
|
|
4
3
|
type FileChange = (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', targetPath: string) => void;
|
|
@@ -29,6 +28,7 @@ export declare abstract class BaseProject extends WaitAble implements MiniProgra
|
|
|
29
28
|
protected _fileSet: Set<string>;
|
|
30
29
|
event: ProjectEventEmitter;
|
|
31
30
|
get projectPath(): string;
|
|
31
|
+
get projectpath(): string;
|
|
32
32
|
get injectedPages(): string[];
|
|
33
33
|
get projectArchitecture(): import("../types").MiniProgramCI.IProjectArchitecture;
|
|
34
34
|
get srcPath(): string;
|
|
@@ -47,7 +47,7 @@ export declare abstract class BaseProject extends WaitAble implements MiniProgra
|
|
|
47
47
|
set nameMappingFromDevtools(mapping: MiniProgramCore.IStringKeyMap<string> | undefined);
|
|
48
48
|
attr(): Promise<any>;
|
|
49
49
|
ready(): Promise<void>;
|
|
50
|
-
protected getProjectType(attr: any, compileType: MiniProgramCore.ProjectType):
|
|
50
|
+
protected getProjectType(attr: any, compileType: MiniProgramCore.ProjectType): MiniProgramCore.ProjectType;
|
|
51
51
|
getProjectConfig(): ProjectConfigJSON.IProjectConfigJSON;
|
|
52
52
|
normalizeRootPath: (pathName?: string) => string;
|
|
53
53
|
serialize(): Promise<MiniProgramCore.IProjectSerializeInfo>;
|
|
@@ -63,8 +63,9 @@ export declare abstract class BaseProject extends WaitAble implements MiniProgra
|
|
|
63
63
|
dirs: string[];
|
|
64
64
|
};
|
|
65
65
|
exists(prefix?: string, filePath?: string): boolean;
|
|
66
|
+
statAsync(prefix?: string, filePath?: string): Promise<MiniProgramCore.IStat | undefined>;
|
|
66
67
|
stat(prefix?: string, filePath?: string): MiniProgramCore.IStat | undefined;
|
|
67
|
-
getAllFileInfo(prefix?: string): MiniProgramCore.IFileInfos
|
|
68
|
+
getAllFileInfo(prefix?: string): Promise<MiniProgramCore.IFileInfos>;
|
|
68
69
|
getFileList(prefix?: string, extName?: string): string[];
|
|
69
70
|
getSrcFile(prefix: string, filePath: string): Buffer;
|
|
70
71
|
getFile(prefix: string, filePath: string): Buffer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IAccountCardResources {
|
|
2
|
+
js: string;
|
|
3
|
+
wxss: string;
|
|
4
|
+
json: string;
|
|
5
|
+
wxml: string;
|
|
6
|
+
prependjs?: string;
|
|
7
|
+
}
|
|
8
|
+
export type ICardType = {
|
|
9
|
+
type: number;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export interface IAccountCardService {
|
|
13
|
+
init: () => Promise<void>;
|
|
14
|
+
refresh: () => void;
|
|
15
|
+
getAvailableAccountCardTypes: () => ICardType[];
|
|
16
|
+
getAccountCardResources: (type: number) => IAccountCardResources;
|
|
17
|
+
}
|
|
18
|
+
export declare const IAccountCardService: import("../common/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IAccountCardService>;
|