miniprogram-ci 2.1.30 → 2.1.32
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 +6 -0
- package/README.md +6 -0
- package/dist/@types/ci/checkCodeQuality.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/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 +4 -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/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/miniprogram.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/compile/miniprogramPlugin.d.ts +0 -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/task/compilejs.d.ts +1 -2
- package/dist/@types/modules/corecompiler/original/workerThread/task/compilewxss.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/workerThread/task/minifywxml.d.ts +0 -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/plugins/less.d.ts +0 -1
- package/dist/@types/modules/corecompiler/summer/resolver.d.ts +1 -1
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +2 -3
- package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +2 -2
- package/dist/@types/modules/nativecompiler/processHandler.d.ts +5 -0
- 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 +0 -1
- package/dist/@types/modules/precompiler/conditioncompile/index.d.ts +0 -1
- package/dist/@types/project/advance/precompileProject.d.ts +0 -1
- package/dist/@types/project/advance/reactiveProject.d.ts +1 -2
- package/dist/@types/project/baseProject.d.ts +3 -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/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 +24 -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 +0 -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/nativeModule/common/nativeModule.d.ts +9 -0
- package/dist/@types/services/nativeModule/common/nativeModule.impl.d.ts +12 -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/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/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/node/root.d.ts +11 -0
- package/dist/@types/services/root/node/rootService.d.ts +0 -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/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/babel_plugin_worklet.d.ts +10 -1
- package/dist/@types/utils/common.d.ts +3 -1
- package/dist/@types/utils/cosUpload.d.ts +0 -1
- package/dist/@types/utils/fsagent.d.ts +0 -1
- 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/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 +0 -1
- 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/archive.js +1 -1
- package/dist/ci/miniapp/checkBuildArgument.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/filterUnusedFile.js +1 -1
- package/dist/ci/utils/pack.js +1 -1
- package/dist/ci/utils/terminalQrcode.js +1 -1
- package/dist/ci/utils/tools.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/config/config.js +1 -1
- package/dist/config/dir.config.js +1 -0
- 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/index.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/common.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/reactiveCache.js +1 -1
- package/dist/modules/corecompiler/original/json/signaturejson.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/uglifyfilenames.js +1 -1
- package/dist/modules/corecompiler/original/validate/schemaValidate.js +1 -1
- package/dist/modules/corecompiler/original/webWorker/configs.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/config.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/func.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/minifywxml.js +1 -1
- package/dist/modules/corecompiler/processHandler.js +1 -1
- package/dist/modules/corecompiler/summer/graph/basegraph.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/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/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/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/nativecompiler/android/adb.js +1 -1
- package/dist/modules/nativecompiler/android/device.js +1 -1
- package/dist/modules/nativecompiler/ios/device.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 -0
- 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/services/accountcard/accountcard.js +1 -0
- package/dist/services/accountcard/accountcardService.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/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/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/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/node/root.js +1 -0
- package/dist/services/root/node/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/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/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/fs.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/helper_util.js +1 -1
- package/dist/utils/jsonParse.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/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/tools.js +1 -1
- package/dist/utils/usbProcess.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/unpack/version0.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkg/unpack/version10.js +1 -1
- package/dist/utils/zip.js +1 -1
- package/dist/vendor/vslibrary/bundled/base.bundled.js +2 -0
- package/package.json +5 -54
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IMiniappConnectType=exports.IMiniappPkgType=void 0,exports.packAllPackagesToWxapkg=packAllPackagesToWxapkg,exports.generateSubPkgAppInfoJson=generateSubPkgAppInfoJson;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),pack_1=tslib_1.__importDefault(require("../../../utils/wxapkg/pack")),tools_1=require("../../../utils/tools"),updatecontactandlaunch_1=require("./contactandlaunch/updatecontactandlaunch"),env_1=require("../../../utils/env");var IMiniappPkgType,IMiniappConnectType;async function packAllPackagesToWxapkg(e,t,a){const n=[],i=t.subpackages||t.subPackages,p=[];if(i){const o="__APP__",s=`${a}/${(0,tools_1.generateMD5)(o)}.wxapkg`,l=path_1.default.join(e,s),u=path_1.default.join(e,"app"),c=await(0,pack_1.default)(".",l,u,i.map(e=>path_1.default.join(".",e.root,"/**/*")));p.push(c),n.push({name:o,filePath:s,pkgType:4,md5:(0,tools_1.generateMD5)(c),size:c.byteLength,independent:!1,page_count:t.pages.length,alias:[],wxacode_lib_info_list:[],without_lib_md5:"",separated_plugin_list:[],md5_list:[],widget_list:[]});for(const t of i){const i=processSubpkgRootPath(t.root),o=`${a}/${(0,tools_1.generateMD5)(i)}.wxapkg`,s=path_1.default.join(e,o),l=await(0,pack_1.default)(t.root,s,u,[]);p.push(l),n.push({name:i,filePath:o,pkgType:4,md5:(0,tools_1.generateMD5)(l),size:l.byteLength,independent:!1,page_count:t.pages.length,alias:[],wxacode_lib_info_list:[],without_lib_md5:"",separated_plugin_list:[],md5_list:[],widget_list:[]})}}else{const i="__APP__",p=`${a}/${(0,tools_1.generateMD5)(i)}.wxapkg`,o=path_1.default.join(e,p),s=path_1.default.join(e,"app"),l=await(0,pack_1.default)(".",o,s);n.push({name:i,filePath:p,pkgType:0,md5:(0,tools_1.generateMD5)(l),size:l.byteLength,independent:!1,page_count:t.pages.length,alias:[],wxacode_lib_info_list:[],without_lib_md5:"",separated_plugin_list:[],md5_list:[],widget_list:[]})}const o=Buffer.concat(p);return{wholePkgMd5:(0,tools_1.generateMD5)(o),moduleListConfig:n}}async function generateSubPkgAppInfoJson(e){const{miniModuleId:t,nickName:a,pageOrientation:n,subpkgs:i,buildVersion:p,contact:o,cpfWxaAttrSyncResponse:s,miniappPkgType:l}=e,u=p||1,c=await(0,updatecontactandlaunch_1.updateLaunchBase64)();return{miniModuleId:t,nickname:a,device_orientation:n||"portrait",appVersion:u,pkgInfos:i.map(e=>{var a,n;return{miniModuleId:t,moduleName:e.name,pkgType:e.type,pkgMd5:e.md5,appVersion:u,versionType:e.versionType===IMiniappPkgType.Release?0:1,assetPath:e.file,signVersion:null!==(a=e.signVersion)&&void 0!==a?a:0,signFilePath:null!==(n=e.signFile)&&void 0!==n?n:e.file+".sign"}}),contactBase64:o,launchBase64:c,cpfWxaAttrSyncResponse:s,version:2,miniappPkgType:l,devtoolsPlatform:env_1.isWin?"Windows":"Mac"}}function processSubpkgRootPath(e){return e.startsWith("/")||(e="/"+e),e.endsWith("/")||(e+="/"),e}!function(e){e.Release="Release",e.Debug="Debug",e.HotReload="HotReload"}(IMiniappPkgType||(exports.IMiniappPkgType=IMiniappPkgType={})),function(e){e.USB="USB",e.LAN="LAN"}(IMiniappConnectType||(exports.IMiniappConnectType=IMiniappConnectType={}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.updateContactBase64ForSubPkgs=
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.updateContactBase64ForSubPkgs=updateContactBase64ForSubPkgs;const tslib_1=require("tslib"),originalcontactbase64_1=tslib_1.__importDefault(require("./originalcontactbase64")),protobuf=require("protobufjs");async function updateContactBase64ForSubPkgs(e){const{appid:t,version:a,nickName:n,brandIconURL:i,fullPkg:o,modList:r}=e,s=originalcontactbase64_1.default,p=Buffer.from(s,"base64"),{root:d}=protobuf.parse("\n package attrresponse;\n \n message WxaAttrSyncResponse\n {\n optional BaseResponse BaseResponse = 1;\n optional bytes LastAttrVersion = 2;\n repeated WxaAttrSyncResp_KeyValue UpdateInfoList = 3;\n optional string WxaUserName = 4;\n optional bytes RespBuffer = 5; \n }\n \n message BaseResponse {\n required int32 Ret = 1;\n required SKBuiltinString_t ErrMsg = 2;\n }\n \n message WxaAttrSyncResp_KeyValue\n {\n optional string Key = 1;\n optional string Value = 2;\n }\n \n message SKBuiltinString_t {\n optional string String = 1;\n }\n ",{keepCase:!0}),l=t,c=d.lookupType("attrresponse.WxaAttrSyncResponse"),u=c.decode(p);u.WxaUserName=l,modifyUpdateInfoListItem(u,"Signature",""),modifyUpdateInfoListItem(u,"VerifyInfo",""),modifyUpdateInfoListItem(u,"NickName",n),modifyUpdateInfoListItem(u,"QuanPin",""),modifyUpdateInfoListItem(u,"PYInitial",""),modifyUpdateInfoListItem(u,"UserName",l),modifyUpdateInfoListItem(u,"Alias",""),modifyUpdateInfoListItem(u,"BrandIconURL",i),modifyUpdateInfoListItem(u,"BigHeadImgUrl",i),modifyUpdateInfoListItem(u,"SmallHeadImgUrl",i),modifyUpdateInfoListItem(u,"WxaAppInfo",{Appid:t,Network:{},PluginInfo:{plugin_list:[]},TcbCdnDomain:{},CanPreFetchData:0}),modifyUpdateInfoListItem(u,"WxaAppVersionInfo",{AppVersion:a,UsePreloadRule:!0,module_list:r||[],widget_list:o?[o]:[],UseModule:!!(r&&r.length>0),EntranceModule:"__APP__",Last_Version_Categories:[],client_js_ext_info:{}}),modifyUpdateInfoListItem(u,"WxaAppDynamic",{NewCategories:[],NewSetting:{MaxLocalstorageSize:10,MaxCodeSize:2,MaxWebviewDepth:5,MaxBackgroundLifespan:300,MaxRequestConcurrent:10,MaxUploadConcurrent:10,MaxDownloadConcurrent:10,MaxFileStorageSize:200,ExpiresAtList:432e3,BackgroundNetworkInterruptedTimeout:300,CanKeepAliveByAudioPlay:1,LifeSpanBeforeSuspend:5,LifeSpanAfterSuspend:1800,MaxWebsocketConnect:5,ExpendedMaxWebviewDepth:10,ActualWebviewDepth:5,WebsocketSkipPortCheck:1,MaxSubpackageSubCodeSize:2,MaxSubpackageFullCodeSize:20,MaxWorkerConcurrent:1,ScanCodeEnableZZM:0,MaxPluginSdkReadmeSize:2,CanPreFetchData:0,CanPeriodFetchData:0,PeriodFetchData:12,TLSSkipHostnameCheck:0,NavigateMiniprogramLimit:999999,OpendataMaxLocalstorageSize:10,OpendataMaxFileStorageSize:10,MaxTempFileStorageSize:2048,OpenWxaIap:1,GuaranteeFlag:1,CanShowLoadingAdvert:0,MaxSubPackageLimit:100,PeriodFetchDataDay:7,OpenWxaWaitUpdateMaxMicSec:13e3,OpenWxaWaitUpdateMaxMicSecForWeakNet:13e3,MinTempFileStorageSize:2048,Uint32MaxLocalstorageSizeInMB:10,Uint32OpendataMaxLocalstorageSizeInMB:10,Uint32MaxFileStorageSizeInMB:200,Uint32OpendataMaxFileStorageSizeInMB:10,Uint32MaxTempFileStorageSizeInMB:4096,Uint32MinTempFileStorageSizeInMB:2048,OpenProductFlag:0,UsePackageConfirmSubDescScopeList:[],PreCgiCallByteBeforeLaunch:"",CanShowGameLoadingAdvert:0}});return c.encode(u).finish().toString("base64")}function modifyUpdateInfoListItem(e,t,a){const n=e.UpdateInfoList.find(e=>e.Key===t);if(n)if("object"==typeof a){const e=JSON.parse(n.Value);for(const t in a)e[t]=a[t];n.Value=JSON.stringify(e)}else n.Value=a}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.updateLaunchBase64=updateLaunchBase64,exports.updateContactBase64=updateContactBase64;const tslib_1=require("tslib"),originalcontactbase64_1=tslib_1.__importDefault(require("./originalcontactbase64")),originallaunchbase64_1=tslib_1.__importDefault(require("./originallaunchbase64")),protobuf=require("protobufjs");async function updateLaunchBase64(){const{root:e}=protobuf.parse("\n package launchresponse;\n\n message LaunchWxaAppResponse\n {\n required BaseResponse BaseResponse = 1;\n\n optional LaunchAction Launch = 2;\n optional CheckJsApiInfo CheckJsApi = 3;\n optional PublicLibUpdateInfo PublicLibUpdate = 5;\n optional ActionSheetInfo ActionSheet = 6;\n optional WxaOperationInfo Operation = 7;\n optional string appid = 8;\n optional string username = 9;\n optional string opConfig = 10; // 透传给基础库\n optional WxaRuntimeInfo runtime_info = 11;// 小程序sdk专用\n }\n\n message WxaRuntimeInfo\n {\n optional uint32 block_reason = 1;// 拦截原因,返回给宿主app\n optional bool can_show_start_wording = 2; // 控制小程序sdk是否展示启动wording\n }\n\n message WxaOperationInfo\n {\n optional string JsonInfo = 1; //运营的权限位都放到这个json里,透传给客户端\n }\n\n message PublicLibUpdateInfo\n {\n optional bool need_update = 1;\n optional string url = 2;\n optional string md5 = 3;\n optional uint32 version = 4;\n optional uint32 force_update = 5;\n optional string patch_url = 6;\n optional bool rely_update = 7;\n }\n\n message ActionSheetInfo\n {\n optional bool OpenComment = 1;\n optional bool ShouldPopEvaluate = 2; //关闭小程序时是否可以弹评价\n optional uint32 PopEvaluateLeastStayTime= 3; //弹评价最小停留时间\n optional bytes control_bytes = 5; //控制字段,control_bytes[0]菜单显示和封禁,0:显示 1:不显示 2:封禁\n }\n\n message BaseResponse {\n required int32 Ret = 1;\n required SKBuiltinString_t ErrMsg = 2;\n }\n\n message LaunchAction\n {\n optional uint32 ActionCode = 1;\n optional string OpenUrl = 2;\n optional bool NeedHistoryList = 3;\n optional string AlertMsg = 4;\n optional string AlertTitle = 5;\n }\n\n message SKBuiltinString_t {\n optional string String = 1;\n }\n\n message CheckJsApiInfo\n {\n optional bytes jsapi_control_bytes = 1;\n repeated bytes state_jsapi_bytes = 2;\n }\n ",{keepCase:!0}),n=originallaunchbase64_1.default,t=Buffer.from(n,"base64"),a=e.lookupType("launchresponse.LaunchWxaAppResponse"),o=a.decode(t);return a.encode(o).finish().toString("base64")}async function updateContactBase64(e){const{appid:n,version:t,nickName:a,brandIconURL:o,fullPkg:i}=e,s=originalcontactbase64_1.default,r=Buffer.from(s,"base64"),{root:p}=protobuf.parse("\n package attrresponse;\n\n message WxaAttrSyncResponse\n {\n optional BaseResponse BaseResponse = 1;\n optional bytes LastAttrVersion = 2;\n repeated WxaAttrSyncResp_KeyValue UpdateInfoList = 3;\n optional string WxaUserName = 4;\n optional bytes RespBuffer = 5; \n }\n\n message BaseResponse {\n required int32 Ret = 1;\n required SKBuiltinString_t ErrMsg = 2;\n }\n\n message WxaAttrSyncResp_KeyValue\n {\n optional string Key = 1;\n optional string Value = 2;\n }\n\n message SKBuiltinString_t {\n optional string String = 1;\n }\n ",{keepCase:!0}),l=n,d=p.lookupType("attrresponse.WxaAttrSyncResponse"),u=d.decode(r);u.WxaUserName=l,modifyUpdateInfoListItem(u,"Signature",""),modifyUpdateInfoListItem(u,"VerifyInfo",""),modifyUpdateInfoListItem(u,"NickName",a),modifyUpdateInfoListItem(u,"QuanPin",""),modifyUpdateInfoListItem(u,"PYInitial",""),modifyUpdateInfoListItem(u,"UserName",l),modifyUpdateInfoListItem(u,"Alias",""),modifyUpdateInfoListItem(u,"BrandIconURL",o),modifyUpdateInfoListItem(u,"BigHeadImgUrl",o),modifyUpdateInfoListItem(u,"SmallHeadImgUrl",o),modifyUpdateInfoListItem(u,"WxaAppInfo",{Appid:n,Network:{},PluginInfo:{plugin_list:[]},TcbCdnDomain:{},CanPreFetchData:0}),modifyUpdateInfoListItem(u,"WxaAppVersionInfo",{AppVersion:t,UsePreloadRule:!1,module_list:[],widget_list:[i],UseModule:!1,EntranceModule:"__FULL__",Last_Version_Categories:[],client_js_ext_info:{}}),modifyUpdateInfoListItem(u,"WxaAppDynamic",{NewCategories:[],NewSetting:{MaxLocalstorageSize:10,MaxCodeSize:2,MaxWebviewDepth:5,MaxBackgroundLifespan:300,MaxRequestConcurrent:10,MaxUploadConcurrent:10,MaxDownloadConcurrent:10,MaxFileStorageSize:200,ExpiresAtList:432e3,BackgroundNetworkInterruptedTimeout:300,CanKeepAliveByAudioPlay:1,LifeSpanBeforeSuspend:5,LifeSpanAfterSuspend:1800,MaxWebsocketConnect:5,ExpendedMaxWebviewDepth:10,ActualWebviewDepth:5,WebsocketSkipPortCheck:1,MaxSubpackageSubCodeSize:2,MaxSubpackageFullCodeSize:20,MaxWorkerConcurrent:1,ScanCodeEnableZZM:0,MaxPluginSdkReadmeSize:2,CanPreFetchData:0,CanPeriodFetchData:0,PeriodFetchData:12,TLSSkipHostnameCheck:0,NavigateMiniprogramLimit:999999,OpendataMaxLocalstorageSize:10,OpendataMaxFileStorageSize:10,MaxTempFileStorageSize:2048,OpenWxaIap:1,GuaranteeFlag:1,CanShowLoadingAdvert:0,MaxSubPackageLimit:100,PeriodFetchDataDay:7,OpenWxaWaitUpdateMaxMicSec:13e3,OpenWxaWaitUpdateMaxMicSecForWeakNet:13e3,MinTempFileStorageSize:2048,Uint32MaxLocalstorageSizeInMB:10,Uint32OpendataMaxLocalstorageSizeInMB:10,Uint32MaxFileStorageSizeInMB:200,Uint32OpendataMaxFileStorageSizeInMB:10,Uint32MaxTempFileStorageSizeInMB:4096,Uint32MinTempFileStorageSizeInMB:2048,OpenProductFlag:0,UsePackageConfirmSubDescScopeList:[],PreCgiCallByteBeforeLaunch:"",CanShowGameLoadingAdvert:0}});return d.encode(u).finish().toString("base64")}function modifyUpdateInfoListItem(e,n,t){const a=e.UpdateInfoList.find(e=>e.Key===n);if(a)if("object"==typeof t){const e=JSON.parse(a.Value);for(const n in t)e[n]=t[n];a.Value=JSON.stringify(e)}else a.Value=t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getAdbPath=getAdbPath,exports.tryRunAdbReverse=tryRunAdbReverse;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),fs_extra_1=tslib_1.__importDefault(require("fs-extra")),child_process_1=require("child_process"),env_1=require("../../../utils/env");function getAdbPath(){const e=(0,env_1.getProcessEnv)();let t;return e.ANDROID_HOME?(t=path_1.default.join(e.ANDROID_HOME,"platform-tools","adb"),fs_extra_1.default.existsSync(t)||(t="adb")):t="adb","adb"}function tryRunAdbReverse(e){try{const{packagerPort:t,device:r,recorder:s}=e,n=getAdbPath(),o=["reverse","tcp:"+t,"tcp:"+t];r&&o.unshift("-s",r),s.progress("Connecting to the development server..."),console.log(`Running command "${n} ${o.join(" ")}"`),(0,child_process_1.execFileSync)(n,o,{stdio:"inherit",env:(0,env_1.getProcessEnv)()})}catch(e){throw new Error('Failed to connect to development server using "adb reverse": '+e.message)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.tryLaunchEmulator=exports.getEmulators=void 0,exports.getDevices=getDevices,exports.getAvailableCPUs=getAvailableCPUs,exports.getCPU=getCPU,exports.tryInstantBuild=tryInstantBuild,exports.tryBuild=tryBuild,exports.tryInstantInstall=tryInstantInstall,exports.tryLaunchAppOnDevice=tryLaunchAppOnDevice;const tslib_1=require("tslib"),os=tslib_1.__importStar(require("os")),child_process_1=require("child_process"),env_1=require("../../../utils/env"),adb_1=require("./adb"),cp_1=require("../../../utils/cp");function getElumatorCommand(){const t=(0,env_1.getProcessEnv)();return t.ANDROID_HOME?t.ANDROID_HOME+"/emulator/emulator":"emulator"}const getEmulators=()=>{try{const t=getElumatorCommand();return(0,child_process_1.execSync)(t+" -list-avds",{env:(0,env_1.getProcessEnv)()}).toString().split(os.EOL).filter(t=>""!==t).map(t=>({name:t,type:"simulator",attach:!1}))}catch(t){return[]}};exports.getEmulators=getEmulators;const realLaunchEmulator=(t,e)=>new Promise(async(r,s)=>{var n,a;const o=getElumatorCommand();console.log(`Running command:${o} @${t}`),e.progress(`launch emulator ${t}...`);const c=await getDevices(),i=(0,child_process_1.spawn)(o,["@"+t],{detached:!0,stdio:["pipe","pipe","pipe","ipc"],env:(0,env_1.getProcessEnv)()});i.unref();let l="";null===(n=i.stdout)||void 0===n||n.on("data",t=>{e.progress(t.toString())}),null===(a=i.stderr)||void 0===a||a.on("data",t=>{const r=t.toString();l+=r,e.progress(r)});const u=setTimeout(()=>{d(),s(new Error("Could not start emulator within 30 seconds."))},3e4),p=setInterval(async()=>{const t=(await getDevices()).find(t=>c.every(e=>e.name!==t.name));t&&(d(),r(t))},1e3),d=()=>{clearTimeout(u),clearInterval(p)};i.on("exit",async()=>{if(d(),null==l?void 0:l.includes("Running multiple emulators with the same AVD")){const t=(await getDevices()).find(t=>"simulator"===t.type&&t.attach);r(t)}else s(new Error("Emulator exited before boot:"+l))}),i.on("error",t=>{d(),s(t.message)})}),tryLaunchEmulator=async(t,e)=>{if(!t){t=(0,exports.getEmulators)()[0].name}if(t)try{return{success:!0,device:await realLaunchEmulator(t,e)}}catch(t){return{success:!1,error:t.message}}return{success:!1,error:"No emulators found, please check `emulator -list-avds`"}};function parseDevicesResult(t){var e;if(!t)return[];const r=[],s=t.trim().split(/\r?\n/);for(const t of s){const s=t.split(/[ ,\t]+/).filter(t=>""!==t);"device"===s[1]&&((null===(e=s[0])||void 0===e?void 0:e.startsWith("emulator-"))?r.push({name:s[0],type:"simulator",attach:!0}):r.push({name:s[0],type:"device",attach:!0}))}return r}function getDevices(){return new Promise(t=>{const e=(0,adb_1.getAdbPath)();(0,child_process_1.exec)(`"${e}" devices -l`,{env:(0,env_1.getProcessEnv)()},(e,r)=>{const s=parseDevicesResult(r);e&&t([...(0,exports.getEmulators)()]),t([...(0,exports.getEmulators)(),...s])})})}function getAvailableCPUs(t){try{const e=(0,adb_1.getAdbPath)(),r=["-s",t,"shell","getprop"];let s=(0,child_process_1.execFileSync)(e,r.concat(["ro.product.cpu.abilist"]),{env:(0,env_1.getProcessEnv)()}).toString();return s&&0!==s.trim().length||(s=(0,child_process_1.execFileSync)(e,r.concat(["ro.product.cpu.abi"]),{env:(0,env_1.getProcessEnv)()}).toString()),(s||"").trim().split(",")}catch(t){return[]}}function getCPU(t){try{const e=(0,adb_1.getAdbPath)(),r=(0,child_process_1.execFileSync)(e,["-s",t,"shell","getprop","ro.product.cpu.abi"],{env:(0,env_1.getProcessEnv)()}).toString().trim();return r.length>0?r:null}catch(t){return null}}async function tryInstantBuild(t,e,r){const s=process.platform.startsWith("win")?"gradlew.bat":"./gradlew",n=["assemble"+e];await(0,cp_1.spawnSync)(s,n,{cwd:t.sourceDir},r)}async function tryBuild(t,e,r){const s=process.platform.startsWith("win")?"gradlew.bat":"./gradlew";await(0,cp_1.spawnSync)(s,e,{cwd:t},r)}async function tryInstantInstall(t,e,r){try{const s=process.platform.startsWith("win")?"gradlew.bat":"./gradlew",n=["install"+e];await(0,cp_1.spawnSync)(s,n,{cwd:t.sourceDir},r)}catch(t){throw createInstallError(t)}}async function tryLaunchAppOnDevice(t,e,r,s){const{mainActivity:n=""}=r;try{const r=["shell","am","start","-n",`${e}/${n}`];t?(r.unshift("-s",t),s.progress(`Starting the app on "${t}"...`)):s.progress("Starting the app...");const a=(0,adb_1.getAdbPath)();await(0,cp_1.spawnSync)(a,r,{stdio:"inherit"},s)}catch(t){throw new Error("Failed to start the app."+t.message)}}function createInstallError(t){const e=(t.stderr||"").toString();let r="Make sure you have the Android development environment set up";throw e.includes("No connected devices")?r="Make sure you have an Android emulator running or a device connected":(e.includes("licences have not been accepted")||e.includes("accept the SDK license"))&&(r="Please accept all necessary Android SDK licenses using Android SDK Manager: \n '$ANDROID_HOME/tools/bin/sdkmanager --licenses',\n "),new Error(`Failed to install the app. ${r}: ${e}.`)}exports.tryLaunchEmulator=tryLaunchEmulator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseXctraceIOSDevicesList=parseXctraceIOSDevicesList,exports.getDevices=getDevices,exports.findMatchingSimulator=findMatchingSimulator,exports.matchingDevice=matchingDevice,exports.formattedDeviceName=formattedDeviceName,exports.printFoundDevices=printFoundDevices;const tslib_1=require("tslib"),execa=tslib_1.__importStar(require("execa")),env_1=require("../../../utils/env"),miniappBuilder=tslib_1.__importStar(require("../../../utils/miniapp-builder"));function parseIOSDevicesList(e){const i=[];return e.split("\n").forEach(e=>{const t=e.match(/(.*?) (\(([0-9.]+)\) )?\[([0-9A-F-]+)\]( \(Simulator\))?/i);if(t){const[,e,,r,n,s]=t,c={name:e,udid:n};r?(c.version=r,c.type=s?"simulator":"device"):c.type="catalyst",i.push(c)}}),i}function parseXctraceIOSDevicesList(e){const i=[];let t=!1;return e.split("\n").forEach(e=>{"== Simulators =="===e&&(t=!0);const r=e.match(/^(.*?) (\(([0-9.]{3,})\) )?\(([0-9A-F-]{5,})\)$/i);if(r){const[,e,,n,s]=r,c={name:e,udid:s};n?(c.version=n,c.type=t?"simulator":"device"):c.type="catalyst",i.push(c)}}),i}async function getDevices(e){let i=[];const{recorder:t}=e||{};try{const e=await execa.default("xcrun",["xctrace","list","devices"],{env:(0,env_1.getProcessEnv)()});i=parseXctraceIOSDevicesList(""===e.stderr?e.stdout:e.stderr)}catch(e){try{i=parseIOSDevicesList(execa.sync("xcrun",["instruments","-s"],{env:(0,env_1.getProcessEnv)()}).stdout)}catch(e){}}let r=i.filter(e=>"device"===e.type);if(!r.length)try{r=await miniappBuilder.getIOSDevices(e||{}),r.forEach(e=>{i.find(i=>i.udid===e.udid)||i.push(e)})}catch(e){t?t.progress("get Devices error:"+e.message):console.error("get Devices error:",e)}return i.filter(e=>!!e.version)}function findMatchingSimulator(e,i){if(!e.devices)return null;const{devices:t}=e;let r,n,s=null;if(null==i?void 0:i.device){const e=i.device.match(/(.*)? (?:\((\d+\.\d+)?\))$/);void 0!==(null==e?void 0:e[2])?(r=e[2],s=e[1]):s=i.device}for(const e in t){const c=t[e];let a=e;if(a.startsWith("com.apple.CoreSimulator.SimRuntime.")&&(a=a.replace(/^com\.apple\.CoreSimulator\.SimRuntime\.([^-]+)-([^-]+)-([^-]+)$/g,"$1 $2.$3")),(a.includes("iOS")||a.includes("tvOS"))&&(!r||a.endsWith(r)))for(const e of c){if("(available)"!==e.availability&&"YES"!==e.isAvailable&&!0!==e.isAvailable)continue;const t="Booted"===e.state,r={udid:e.udid,name:e.name,booted:t,version:a};if(null==i?void 0:i.udid){if(e.udid===i.udid)return r}else{if(t&&null===s)return r;e.name!==s||n||(n=r)}}}return n}function matchingDevice(e,i,t){if(!0===i){const i=e.find(e=>"device"===e.type);return i?(t.progress(`Using first available device named "${i.name}" due to lack of name supplied.`),i):void t.progress("No iOS devices connected.")}const r=e.find(e=>e.name===i||formattedDeviceName(e)===i);if(!r)throw new Error(`Could not find a device named: "${String(i)} ${printFoundDevices(e)}}".`);return r}function formattedDeviceName(e){return e.version?`${e.name} (${e.version})`:e.name}function printFoundDevices(e){return["Available devices:",...e.map(e=>` - ${e.name} (${e.udid})`)].join("\n")}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getProjectConfig=getProjectConfig,exports.findAllPodfilePaths=findAllPodfilePaths;const tslib_1=require("tslib"),path=tslib_1.__importStar(require("path")),fs=tslib_1.__importStar(require("fs")),glob=tslib_1.__importStar(require("glob")),GLOB_EXCLUDE_PATTERN=["**/@(Pods|node_modules|Carthage)/**"];function getProjectConfig(e,t={}){const r=findXcodeProject(e);return r?Object.assign({sourceDir:e},r):null}function findXcodeProject(e){const t=fs.readdirSync(e);for(let e=t.sort().length-1;e>=0;e--){const r=t[e],o=path.extname(r);if(".xcworkspace"===o)return{name:r,isWorkspace:!0};if(".xcodeproj"===o)return{name:r,isWorkspace:!1}}return null}function findAllPodfilePaths(e){return glob.sync("**/Podfile",{cwd:e,ignore:GLOB_EXCLUDE_PATTERN})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _a,_b;process.env&&process.env.isDevtools&&require("../../utils/hackrequire/index"),Object.defineProperty(exports,"__esModule",{value:!0}),(null===(_a=process.env)||void 0===_a?void 0:_a.isDevtools)&&require("../../utils/hackrequire/index");const entryProcess_1=require("../../utils/subprocess/entryProcess"),
|
|
1
|
+
var _a,_b;process.env&&process.env.isDevtools&&require("../../utils/hackrequire/index"),Object.defineProperty(exports,"__esModule",{value:!0}),(null===(_a=process.env)||void 0===_a?void 0:_a.isDevtools)&&require("../../utils/hackrequire/index");const entryProcess_1=require("../../utils/subprocess/entryProcess"),processHandler_1=require("./processHandler");(0,entryProcess_1.runSubProcess)({initHandler:processHandler_1.initHandler,messageHandler:processHandler_1.messageHandler,timeout:(null===(_b=process.env)||void 0===_b?void 0:_b.timeout)||3e5});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.onMessage=void 0,exports.initHandler=initHandler,exports.destroy=destroy,exports.messageHandler=messageHandler;const debug_1=require("../../utils/debug"),progressRecorder_1=require("../../utils/progressRecorder"),nativeCompiler_1=require("./nativeCompiler");let nativeCompiler,inited=!1;async function processSend(e){await(0,debug_1.shouldRunInMainProcess)()?emiter.emit("message",e):process.send(e)}async function initHandler(e){const{projectInfo:i,passData:n}=e.data;if(inited)return;const{miniappDirPath:t,devtoolsVersion:s}=n;nativeCompiler=new nativeCompiler_1.NativeCompiler({projectInfo:i,miniappDirPath:t,devtoolsVersion:s}),inited=!0}async function destroy(){nativeCompiler=void 0,inited=!1}const emiter=function(){const e={};return{on:(i,n)=>{e.hasOwnProperty(i)||(e[i]=[]),e[i].push(n)},emit:(i,...n)=>{const t=e[i];if((null==t?void 0:t.length)>0)for(const e of t)try{e(...n)}catch(e){}}}}(),onMessage=async e=>{emiter.on("message",e)};async function messageHandler(e){if("event"!==e.type&&"request"===e.type){const{id:i,name:n,data:t}=e,s=i,a=new progressRecorder_1.Recorder((e,i,n)=>{processSend({type:"progress",id:e,taskId:s,status:i,message:n})});t.fullEnv&&(global.fullEnv=t.fullEnv);try{let e;const r=`${n}-${s}`;if("buildNative"===n)e=await a.run(r,async()=>await nativeCompiler.build(t,a));else if("runNative"===n)e=await a.run(r,async()=>await nativeCompiler.run(t,a));else if("buildNativePlugin"===n)e=await a.run(r,async()=>await nativeCompiler.buildPlugin(t,a));else if("packIOSCloudBuildMaterial"===n)e=await a.run(r,async()=>await nativeCompiler.packIOSCloudBuildMaterial(t,a));else if("initUSBConnectionProcess"===n)e=await a.run(r,async()=>await nativeCompiler.initUSBConnectionProcess(t,a));else{if("codesignIOSApp"!==n)throw new Error("unknown command "+n);e=await a.run(r,async()=>await nativeCompiler.codesignIOSApp(t,a))}processSend({type:"response",id:i,data:e})}catch(e){processSend({type:"response",id:i,data:null,error:{code:e.code||-1,message:e.message,stack:e.stack,path:e.path||""}})}}}exports.onMessage=onMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreCompileProject=void 0;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),events_1=tslib_1.__importDefault(require("events")),baseProject_1=require("../baseProject"),tools_1=require("../../utils/tools"),define_1=require("../../config/define");class PreCompileProject extends baseProject_1.BaseProject{constructor(t,e,i){var r,s,o;if(super(),this.event=new events_1.default,this.targetPlatform=define_1.PLATFORM["mini-weixin"],this.targetPlatformDefines={},this._fileBufferCache={},this.onFileChange=async(t,e)=>{if(e=(0,tools_1.normalizePath)(e).replace(/\/$/,"").replace(/^\//,""),"add"===t&&(this.cacheDirName(this._dirSet,path_1.default.posix.dirname(e)),this._fileSet.add(e)),"addDir"===t&&this.cacheDirName(this._dirSet,e),"unlink"===t&&(this.deleteDirOrFileOfSet(this._dirSet,this._fileSet,e),this._fileBufferCache[e]&&delete this._fileBufferCache[e]),"unlinkDir"===t&&this.deleteDirOrFileOfSet(this._dirSet,this._fileSet,e),"change"===t&&delete this._fileBufferCache[e],this.event.emit("fileChange",t,e),"change"===t&&e===path_1.default.posix.join(this.project.miniprogramRoot||"","app.json")){const t=Array.from(this._fileSet);this.updateFileAndDirs(),this.notifyRefreshFileOrDirs(t)}},this.project=t,this._projectPath=(0,tools_1.normalizePath)(t.projectPath),this._projectArchitecture=t.projectArchitecture,this._miniprogramRoot=t.miniprogramRoot||"",this._pluginRoot=t.pluginRoot,this._appid=t.appid,this._type=t.type?t.type:"miniProgram",this._privateKey=t.privateKey,this.ignores=t.ignores||[],null===(r=this.project.event)||void 0===r||r.on("fileChange",(t,e)=>{this.onFileChange(t,e)}),null===(s=this.project.event)||void 0===s||s.on("optionsChange",t=>{this.updateOptions(t)}),this.runEnv=i.runEnv,null===(o=this.project)||void 0===o?void 0:o.setting)this.setting=this.project.setting;else{const t=this.getProjectConfig();(null==t?void 0:t.setting)&&(this.setting=t.setting)}this.conditionCompiler=e,this.updateConditionCompileOptions({targetPlatform:i.targetPlatform||define_1.PLATFORM["mini-weixin"],targetPlatformDefines:i.targetPlatformDefines}),this.packOptions=t.packOptions||{ignore:[],include:[]}}async ready(){await this.wait(this.init.bind(this))}async init(){this.updateFileAndDirs()}shouldConditionalCompile(){var t;return!!(null===(t=this.project.setting)||void 0===t?void 0:t.condition)}updateOptions(t){this._appid=t.appid,this._attr=t.attr,this._type=this.getProjectType(t.attr,t.compileType),this._miniprogramRoot=t.miniprogramRoot,this._pluginRoot=t.pluginRoot,this._projectArchitecture=t.projectArchitecture,this.packOptions=t.packOptions||{ignore:[],include:[]}}updateConditionCompileOptions(t){const e=this.targetPlatform;if(this.targetPlatform=t.targetPlatform||define_1.PLATFORM["mini-weixin"],this.targetPlatformDefines=t.targetPlatformDefines||{},this.targetPlatform!==e){this._fileBufferCache={};const t=Array.from(this._fileSet);this.updateFileAndDirs(),this.notifyRefreshFileOrDirs(t),this.event.emit("precompileOptionsChange",{targetPlatform:this.targetPlatform,targetPlatformDefines:this.targetPlatformDefines})}}updateFileAndDirs(){var t,e;if(null===(t=this._fileSet)||void 0===t||t.clear(),null===(e=this._dirSet)||void 0===e||e.clear(),this.shouldConditionalCompile()){const t=this.conditionCompiler.filterResourceByPlatfrom({targetPlatform:this.targetPlatform});for(const e of t){const t=e.replace(/\\/g,path_1.default.posix.sep);this._fileSet.add(t),this.cacheDirName(this._dirSet,t)}}else{const{files:t,dirs:e}=this.project.getFilesAndDirs();this._fileSet=new Set(t),this._dirSet=new Set(e)}}get srcPath(){return this.project.srcPath||""}async attr(){return await this.project.attr()}async serialize(){const t=await super.serialize();return Object.assign(Object.assign({},t),{targetPlatform:this.targetPlatform,targetPlatformDefines:this.targetPlatformDefines})}getSrcFile(t="",e){return this.project.getFile(t,e)}getFile(t="",e){var i;const r=this.getTargetPath(t,e);if(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreCompileProject=void 0;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),events_1=tslib_1.__importDefault(require("events")),baseProject_1=require("../baseProject"),tools_1=require("../../utils/tools"),define_1=require("../../config/define");class PreCompileProject extends baseProject_1.BaseProject{constructor(t,e,i){var r,s,o;if(super(),this.event=new events_1.default,this.targetPlatform=define_1.PLATFORM["mini-weixin"],this.targetPlatformDefines={},this._fileBufferCache={},this.onFileChange=async(t,e)=>{if(e=(0,tools_1.normalizePath)(e).replace(/\/$/,"").replace(/^\//,""),"add"===t&&(this.cacheDirName(this._dirSet,path_1.default.posix.dirname(e)),this._fileSet.add(e)),"addDir"===t&&this.cacheDirName(this._dirSet,e),"unlink"===t&&(this.deleteDirOrFileOfSet(this._dirSet,this._fileSet,e),this._fileBufferCache[e]&&delete this._fileBufferCache[e]),"unlinkDir"===t&&this.deleteDirOrFileOfSet(this._dirSet,this._fileSet,e),"change"===t&&delete this._fileBufferCache[e],this.event.emit("fileChange",t,e),"change"===t&&e===path_1.default.posix.join(this.project.miniprogramRoot||"","app.json")){const t=Array.from(this._fileSet);this.updateFileAndDirs(),this.notifyRefreshFileOrDirs(t)}},this.project=t,this._projectPath=(0,tools_1.normalizePath)(t.projectPath),this._projectArchitecture=t.projectArchitecture,this._miniprogramRoot=t.miniprogramRoot||"",this._pluginRoot=t.pluginRoot,this._appid=t.appid,this._type=t.type?t.type:"miniProgram",this._privateKey=t.privateKey,this.ignores=t.ignores||[],null===(r=this.project.event)||void 0===r||r.on("fileChange",(t,e)=>{this.onFileChange(t,e)}),null===(s=this.project.event)||void 0===s||s.on("optionsChange",t=>{this.updateOptions(t)}),this.runEnv=i.runEnv,null===(o=this.project)||void 0===o?void 0:o.setting)this.setting=this.project.setting;else{const t=this.getProjectConfig();(null==t?void 0:t.setting)&&(this.setting=t.setting)}this.conditionCompiler=e,this.updateConditionCompileOptions({targetPlatform:i.targetPlatform||define_1.PLATFORM["mini-weixin"],targetPlatformDefines:i.targetPlatformDefines}),this.packOptions=t.packOptions||{ignore:[],include:[]}}async ready(){await this.wait(this.init.bind(this))}async init(){this.updateFileAndDirs()}shouldConditionalCompile(){var t;return!!(null===(t=this.project.setting)||void 0===t?void 0:t.condition)}updateOptions(t){this._appid=t.appid,this._attr=t.attr,this._type=this.getProjectType(t.attr,t.compileType),this._miniprogramRoot=t.miniprogramRoot,this._pluginRoot=t.pluginRoot,this._projectArchitecture=t.projectArchitecture,this.packOptions=t.packOptions||{ignore:[],include:[]}}updateConditionCompileOptions(t){const e=this.targetPlatform;if(this.targetPlatform=t.targetPlatform||define_1.PLATFORM["mini-weixin"],this.targetPlatformDefines=t.targetPlatformDefines||{},this.targetPlatform!==e){this._fileBufferCache={};const t=Array.from(this._fileSet);this.updateFileAndDirs(),this.notifyRefreshFileOrDirs(t),this.event.emit("precompileOptionsChange",{targetPlatform:this.targetPlatform,targetPlatformDefines:this.targetPlatformDefines})}}updateFileAndDirs(){var t,e;if(null===(t=this._fileSet)||void 0===t||t.clear(),null===(e=this._dirSet)||void 0===e||e.clear(),this.shouldConditionalCompile()){const t=this.conditionCompiler.filterResourceByPlatfrom({targetPlatform:this.targetPlatform});for(const e of t){const t=e.replace(/\\/g,path_1.default.posix.sep);this._fileSet.add(t),this.cacheDirName(this._dirSet,t)}}else{const{files:t,dirs:e}=this.project.getFilesAndDirs();this._fileSet=new Set(t),this._dirSet=new Set(e)}}get srcPath(){return this.project.srcPath||""}async attr(){return await this.project.attr()}async serialize(){const t=await super.serialize();return Object.assign(Object.assign({},t),{targetPlatform:this.targetPlatform,targetPlatformDefines:this.targetPlatformDefines})}getSrcFile(t="",e){return this.project.getFile(t,e)}getFile(t="",e){var i;const r=this.getTargetPath(t,e);if("condition"!==(null===(i=this._fileBufferCache[r])||void 0===i?void 0:i.type)&&this.shouldConditionalCompile())try{const t=this.conditionCompiler.compileFile(r,{targetPlatform:this.targetPlatform,targetPlatformDefines:this.targetPlatformDefines});return this._fileBufferCache[r]={content:t,type:"condition"},this._fileBufferCache[r].content}catch(t){}return this._fileBufferCache[r]||(this._fileBufferCache[r]={content:this.project.getFile(t,e),type:"raw"}),this._fileBufferCache[r].content}notifyRefreshFileOrDirs(t){const e=Array.from(this._fileSet);e.length!==t.length&&(e.forEach(e=>{t.includes(e)||this.event.emit("fileChange","add",e)}),t.forEach(t=>{e.includes(t)||this.event.emit("fileChange","unlink",t)}))}clearCache(){var t,e;this._fileBufferCache={},null===(e=(t=this.project).clearCache)||void 0===e||e.call(t)}}exports.PreCompileProject=PreCompileProject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ReactiveProject=void 0;const reactivity_1=require("@vue/reactivity"),lodash_1=require("lodash"),tools_1=require("../../utils/tools"),config_1=require("../../config/config"),baseProject_1=require("../baseProject");function isAttrEqual(t,e){return"object"==typeof t&&"object"==typeof e&&(!(!t||!e)&&(t.platform===e.platform&&t.appType===e.appType&&t.gameApp===e.gameApp&&t.isSandbox===e.isSandbox&&t.released===e.released&&(t.setting.MaxCodeSize===e.setting.MaxCodeSize&&t.setting.MaxSubpackageSubCodeSize===e.setting.MaxSubpackageSubCodeSize&&t.setting.MaxSubpackageFullCodeSize===e.setting.MaxSubpackageFullCodeSize&&t.setting.NavigateMiniprogramLimit===e.setting.NavigateMiniprogramLimit&&t.setting.MaxSubPackageLimit===e.setting.MaxSubPackageLimit&&t.setting.MinTabbarCount===e.setting.MinTabbarCount&&t.setting.MaxTabbarCount===e.setting.MaxTabbarCount&&t.setting.MaxCustomTabbarCount===e.setting.MaxCustomTabbarCount&&t.setting.MaxTabbarIconSize===e.setting.MaxTabbarIconSize)))}class ReactiveProject extends baseProject_1.BaseProject{constructor(t){var e;super(),this.fileBoxs=new Map,this.statBoxs=new Map,this.onFileChange=async(t,e)=>{if("change"===t){const t=this.fileBoxs.get(e);if(t){let i;try{i=this.project.getFile("",e)}catch(t){i=t}i instanceof Error||t.value instanceof Error?t.value=i:t.value&&0===i.compare(t.value)||(t.value=i)}}else if("unlink"===t){const t=this.fileBoxs.get(e);t&&(this.fileBoxs.delete(e),t.value=void 0);const i=this.statBoxs.get(e);if(i){const t=this.project.stat("",e);(0,lodash_1.isEqual)(t,i.value)||(i.value=t)}}else if("unlinkDir"===t){const t=e+"/";let i=Array.from(this.fileBoxs.keys());for(const e of i)if(e.startsWith(t)){const t=this.fileBoxs.get(e);this.fileBoxs.delete(e),t.value=void 0}i=Array.from(this.statBoxs.keys());for(const e of i)if(e.startsWith(t)){const t=this.statBoxs.get(e);void 0!==t.value&&(this.statBoxs.delete(e),t.value=void 0)}}else if("add"===t||"addDir"===t){const t=this.statBoxs.get(e);if(t){const i=this.project.stat("",e);(0,lodash_1.isEqual)(i,t.value)||(t.value=i)}}},this.project=t,null===(e=this.project.event)||void 0===e||e.on("fileChange",this.onFileChange),this._projectArchitecture=t.projectArchitecture,this.miniprogramRootBox=(0,reactivity_1.ref)(t.miniprogramRoot),this.pluginRootBox=(0,reactivity_1.ref)(t.pluginRoot),this.appidBox=(0,reactivity_1.ref)(t.appid),this.typeBox=(0,reactivity_1.ref)(t.type),this.attrBox=(0,reactivity_1.ref)(config_1.DefaultProjectAttr),this.init()}get appid(){return this.appidBox.value}get type(){return this.typeBox.value}get nameMappingFromDevtools(){return this.project.nameMappingFromDevtools}get projectPath(){return this.project.projectPath}get privateKey(){return this.project.privateKey}get miniprogramRoot(){return this.miniprogramRootBox.value}set miniprogramRoot(t){this.miniprogramRootBox.value=t,this.project.miniprogramRoot=t}get pluginRoot(){return this.pluginRootBox.value}set pluginRoot(t){this.pluginRootBox.value=t,this.project.pluginRoot=t}async init(){}updateFileAndDirs(){throw new Error("Method updateFileAndDirs not implemented.")}async updateProject(){this.appidBox.value!==this.project.appid&&(this.appidBox.value=this.project.appid),this.typeBox.value!==this.project.type&&(this.typeBox.value=this.project.type),this.miniprogramRootBox.value!==this.project.miniprogramRoot&&(this.miniprogramRootBox.value=this.project.miniprogramRoot),this.pluginRootBox.value!==this.project.pluginRoot&&(this.pluginRootBox.value=this.project.pluginRoot);const t=await this.project.attr();return isAttrEqual(t,this.attrBox.value)||(this.attrBox.value=t),new Promise(t=>{setTimeout(t,0)})}release(){(0,tools_1.devtoolsLog)("[reactiveCache] reactiveProject release")}async attr(){return this.attrSync()}getSrcFile(t,e){return this.project.getSrcFile(t,e)}getFileList(t="",e=""){return this.project.getFileList(t,e)}getFilesAndDirs(){return this.project.getFilesAndDirs()}getExtAppid(){return this.project.getExtAppid()}getFile(t,e){const i=this.getTargetPath(t,e),o=this.fileBoxs.get(i);if(o){if(o.value instanceof Error)throw o.value;return o.value}const r=this.project.getFile(t,e),a=(0,reactivity_1.ref)(r);return this.fileBoxs.set(i,a),a.value}stat(t,e){const i=this.getTargetPath(t,e),o=this.statBoxs.get(i);if(o)return o.value;const r=this.project.stat(t,e),a=(0,reactivity_1.ref)(r);return this.statBoxs.set(i,a),a.value}attrSync(){return this.attrBox.value}}exports.ReactiveProject=ReactiveProject;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ReactiveProject=void 0;const reactivity_1=require("@vue/reactivity"),lodash_1=require("lodash"),tools_1=require("../../utils/tools"),config_1=require("../../config/config"),baseProject_1=require("../baseProject");function isAttrEqual(t,e){return"object"==typeof t&&"object"==typeof e&&(!(!t||!e)&&(t.platform===e.platform&&t.appType===e.appType&&t.gameApp===e.gameApp&&t.isSandbox===e.isSandbox&&t.released===e.released&&(t.setting.MaxCodeSize===e.setting.MaxCodeSize&&t.setting.MaxSubpackageSubCodeSize===e.setting.MaxSubpackageSubCodeSize&&t.setting.MaxSubpackageFullCodeSize===e.setting.MaxSubpackageFullCodeSize&&t.setting.NavigateMiniprogramLimit===e.setting.NavigateMiniprogramLimit&&t.setting.MaxSubPackageLimit===e.setting.MaxSubPackageLimit&&t.setting.MinTabbarCount===e.setting.MinTabbarCount&&t.setting.MaxTabbarCount===e.setting.MaxTabbarCount&&t.setting.MaxCustomTabbarCount===e.setting.MaxCustomTabbarCount&&t.setting.MaxTabbarIconSize===e.setting.MaxTabbarIconSize)))}class ReactiveProject extends baseProject_1.BaseProject{constructor(t){var e;super(),this.fileBoxs=new Map,this.statBoxs=new Map,this.onFileChange=async(t,e)=>{if("change"===t){const t=this.fileBoxs.get(e);if(t){let i;try{i=this.project.getFile("",e)}catch(t){i=t}i instanceof Error||t.value instanceof Error?t.value=i:t.value&&0===i.compare(t.value)||(t.value=i)}}else if("unlink"===t){const t=this.fileBoxs.get(e);t&&(this.fileBoxs.delete(e),t.value=void 0);const i=this.statBoxs.get(e);if(i){const t=await this.project.stat("",e);(0,lodash_1.isEqual)(t,i.value)||(i.value=t)}}else if("unlinkDir"===t){const t=e+"/";let i=Array.from(this.fileBoxs.keys());for(const e of i)if(e.startsWith(t)){const t=this.fileBoxs.get(e);this.fileBoxs.delete(e),t.value=void 0}i=Array.from(this.statBoxs.keys());for(const e of i)if(e.startsWith(t)){const t=this.statBoxs.get(e);void 0!==t.value&&(this.statBoxs.delete(e),t.value=void 0)}}else if("add"===t||"addDir"===t){const t=this.statBoxs.get(e);if(t){const i=await this.project.stat("",e);(0,lodash_1.isEqual)(i,t.value)||(t.value=i)}}},this.project=t,null===(e=this.project.event)||void 0===e||e.on("fileChange",this.onFileChange),this._projectArchitecture=t.projectArchitecture,this.miniprogramRootBox=(0,reactivity_1.ref)(t.miniprogramRoot),this.pluginRootBox=(0,reactivity_1.ref)(t.pluginRoot),this.appidBox=(0,reactivity_1.ref)(t.appid),this.typeBox=(0,reactivity_1.ref)(t.type),this.attrBox=(0,reactivity_1.ref)(config_1.DefaultProjectAttr),this.init()}get appid(){return this.appidBox.value}get type(){return this.typeBox.value}get nameMappingFromDevtools(){return this.project.nameMappingFromDevtools}get projectPath(){return this.project.projectPath}get privateKey(){return this.project.privateKey}get miniprogramRoot(){return this.miniprogramRootBox.value}set miniprogramRoot(t){this.miniprogramRootBox.value=t,this.project.miniprogramRoot=t}get pluginRoot(){return this.pluginRootBox.value}set pluginRoot(t){this.pluginRootBox.value=t,this.project.pluginRoot=t}async init(){}updateFileAndDirs(){throw new Error("Method updateFileAndDirs not implemented.")}async updateProject(){this.appidBox.value!==this.project.appid&&(this.appidBox.value=this.project.appid),this.typeBox.value!==this.project.type&&(this.typeBox.value=this.project.type),this.miniprogramRootBox.value!==this.project.miniprogramRoot&&(this.miniprogramRootBox.value=this.project.miniprogramRoot),this.pluginRootBox.value!==this.project.pluginRoot&&(this.pluginRootBox.value=this.project.pluginRoot);const t=await this.project.attr();return isAttrEqual(t,this.attrBox.value)||(this.attrBox.value=t),new Promise(t=>{setTimeout(t,0)})}release(){(0,tools_1.devtoolsLog)("[reactiveCache] reactiveProject release")}async attr(){return this.attrSync()}getSrcFile(t,e){return this.project.getSrcFile(t,e)}getFileList(t="",e=""){return this.project.getFileList(t,e)}getFilesAndDirs(){return this.project.getFilesAndDirs()}getExtAppid(){return this.project.getExtAppid()}getFile(t,e){const i=this.getTargetPath(t,e),o=this.fileBoxs.get(i);if(o){if(o.value instanceof Error)throw o.value;return o.value}const r=this.project.getFile(t,e),a=(0,reactivity_1.ref)(r);return this.fileBoxs.set(i,a),a.value}stat(t,e){const i=this.getTargetPath(t,e),o=this.statBoxs.get(i);if(o)return o.value;const r=this.project.stat(t,e),a=(0,reactivity_1.ref)(r);return this.statBoxs.set(i,a),a.value}attrSync(){return this.attrBox.value}}exports.ReactiveProject=ReactiveProject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BaseProject=void 0;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),events_1=tslib_1.__importDefault(require("events")),fs_extra_1=tslib_1.__importDefault(require("fs-extra")),tools_1=require("../utils/tools"),waitable_1=tslib_1.__importDefault(require("../utils/waitable")),rootConfig={qcloudRoot:"腾讯云 wafer 方案目录",miniprogramRoot:"小程序代码的目录",srcMiniprogramRoot:"小程序源码的目录",pluginRoot:"插件目录",cloudfunctionRoot:"云函数目录",cloudfunctionTemplateRoot:"云函数本地调试模板目录",cloudcontainerRoot:"云容器目录",cloudbaseRoot:"cloudbaseRoot",jsserverRoot:"小游戏 jsserver 目录",testRoot:"自动化测试脚本录制的存放目录"};class BaseProject extends waitable_1.default{constructor(){super(...arguments),this._projectPath="",this._injectedPages=[],this._projectArchitecture="miniProgram",this._type="miniProgram",this._privateKey="",this.ignores=[],this.setting={},this._dirSet=new Set,this._fileSet=new Set,this.event=new events_1.default,this.normalizeRootPath=(t="")=>t&&"/"!==t?(t=(0,tools_1.normalizePath)(t+"/")).replace(/\.\.\//g,"").replace(/^\//,"").replace(/^\.\//,""):""}get projectPath(){return this._projectPath}get injectedPages(){return this._injectedPages}get projectArchitecture(){return this._projectArchitecture}get srcPath(){let t="";return"miniProgramPlugin"!==this._type&&"miniGamePlugin"!==this._type||(t=(0,tools_1.normalizePath)(path_1.default.join(this.projectPath,this.pluginRoot||""))),t=(0,tools_1.normalizePath)(path_1.default.join(this.projectPath,this.miniprogramRoot||"")),(this._projectPath.startsWith("//")||this._projectPath.startsWith("\\\\"))&&(t.startsWith("//")||(t="/"+t)),t}get pluginSrcPath(){return(0,tools_1.normalizePath)(path_1.default.join(this.projectPath,this.pluginRoot||""))}get type(){return this._type}set type(t){this._type=t}get appid(){return this._appid}set appid(t){this._appid=t}get privateKey(){return this._privateKey}set privateKey(t){this._privateKey=t}get miniprogramRoot(){return this._miniprogramRoot||""}set miniprogramRoot(t){this._miniprogramRoot=t}get pluginRoot(){return this._pluginRoot}set pluginRoot(t){this._pluginRoot=t}get nameMappingFromDevtools(){return this._nameMappingFromDevtools}set nameMappingFromDevtools(t){this._nameMappingFromDevtools=t}async attr(){return this._attr}async ready(){await this.wait()}getProjectType(t,e){let i="";return i=(null==t?void 0:t.gameApp)?"miniGamePlugin"===e?"miniGamePlugin":"miniGame":e,i}getProjectConfig(){let t={};const e=path_1.default.join(this.projectPath,"project.config.json");if(fs_extra_1.default.existsSync(e))try{t=fs_extra_1.default.readJsonSync(e)}catch(t){throw new Error("project.config.json not exist")}for(const e in rootConfig)"string"==typeof t[e]&&(t[e]=this.normalizeRootPath(t[e]));return t}async serialize(){const{files:t,dirs:e}=this.getFilesAndDirs();return{projectPath:this.projectPath,appid:this.appid,attr:await this.attr(),type:this.type,projectArchitecture:this.projectArchitecture,miniprogramRoot:this.miniprogramRoot,pluginRoot:this.pluginRoot,files:t,dirs:e,setting:this.setting}}updateFiles(){this.updateFileAndDirs(...arguments)}updateOptions(t){this._appid=t.appid,this._injectedPages=t.injectedPages||[],this._attr=t.attr,this._type=this.getProjectType(t.attr,t.compileType),this._miniprogramRoot=t.miniprogramRoot,this._pluginRoot=t.pluginRoot,this._projectArchitecture=t.projectArchitecture,this.packOptions=t.packOptions||{ignore:[],include:[]},this.event.emit("optionsChange",t)}cacheDirName(t,e){t.has(e)||(t.add(e),this.cacheDirName(t,path_1.default.posix.dirname(e)))}deleteDirOrFileOfSet(t,e,i){if(t.has(i)){t.delete(i);const r=i+"/",s=Array.from(t);for(const e of s)e.startsWith(r)&&t.delete(e);const o=Array.from(e);for(const t of o)t.startsWith(r)&&e.delete(t)}e.has(i)&&e.delete(i)}getTargetPath(t="",e=""){return(0,tools_1.normalizePath)((0,tools_1.joinPath)(t,e)).replace(/\/$/,"").replace(/^\//,"")}getFilesAndDirs(){return{files:Array.from(this._fileSet),dirs:Array.from(this._dirSet)}}exists(t="",e=""){const i=this.getTargetPath(t,e);if(!i.startsWith(t))return!1;if(this._fileSet.has(i)||this._dirSet.has(i))return!0;const r=(0,tools_1.normalizePath)((0,tools_1.joinPath)(this.projectPath,i));return fs_extra_1.default.existsSync(r)}stat(t="",e=""){if(!this.exists(t,e))return;const i=this.getTargetPath(t,e),r=path_1.default.join(this.projectPath,i);let s={};try{s=fs_extra_1.default.statSync(r)}catch(t){fs_extra_1.default.existsSync(r)||this.deleteDirOrFileOfSet(this._dirSet,this._fileSet,i)}if(this._fileSet.has(i)){return{isFile:!0,isDirectory:!1,size:this.getFileSize(t,e),mtimeMs:s.mtimeMs||""}}return this._dirSet.has(i)?{isFile:!1,isDirectory:!0,size:0,mtimeMs:s.mtimeMs}:void 0}getAllFileInfo(t=""){const e=this.getFileList(t),i={};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BaseProject=void 0;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),events_1=tslib_1.__importDefault(require("events")),fs_extra_1=tslib_1.__importDefault(require("fs-extra")),tools_1=require("../utils/tools"),waitable_1=tslib_1.__importDefault(require("../utils/waitable")),rootConfig={qcloudRoot:"腾讯云 wafer 方案目录",miniprogramRoot:"小程序代码的目录",srcMiniprogramRoot:"小程序源码的目录",pluginRoot:"插件目录",cloudfunctionRoot:"云函数目录",cloudfunctionTemplateRoot:"云函数本地调试模板目录",cloudcontainerRoot:"云容器目录",cloudbaseRoot:"cloudbaseRoot",jsserverRoot:"小游戏 jsserver 目录",testRoot:"自动化测试脚本录制的存放目录"};class BaseProject extends waitable_1.default{constructor(){super(...arguments),this._projectPath="",this._injectedPages=[],this._projectArchitecture="miniProgram",this._type="miniProgram",this._privateKey="",this.ignores=[],this.setting={},this._dirSet=new Set,this._fileSet=new Set,this.event=new events_1.default,this.normalizeRootPath=(t="")=>t&&"/"!==t?(t=(0,tools_1.normalizePath)(t+"/")).replace(/\.\.\//g,"").replace(/^\//,"").replace(/^\.\//,""):""}get projectPath(){return this._projectPath}get injectedPages(){return this._injectedPages}get projectArchitecture(){return this._projectArchitecture}get srcPath(){let t="";return"miniProgramPlugin"!==this._type&&"miniGamePlugin"!==this._type||(t=(0,tools_1.normalizePath)(path_1.default.join(this.projectPath,this.pluginRoot||""))),t=(0,tools_1.normalizePath)(path_1.default.join(this.projectPath,this.miniprogramRoot||"")),(this._projectPath.startsWith("//")||this._projectPath.startsWith("\\\\"))&&(t.startsWith("//")||(t="/"+t)),t}get pluginSrcPath(){return(0,tools_1.normalizePath)(path_1.default.join(this.projectPath,this.pluginRoot||""))}get type(){return this._type}set type(t){this._type=t}get appid(){return this._appid}set appid(t){this._appid=t}get privateKey(){return this._privateKey}set privateKey(t){this._privateKey=t}get miniprogramRoot(){return this._miniprogramRoot||""}set miniprogramRoot(t){this._miniprogramRoot=t}get pluginRoot(){return this._pluginRoot}set pluginRoot(t){this._pluginRoot=t}get nameMappingFromDevtools(){return this._nameMappingFromDevtools}set nameMappingFromDevtools(t){this._nameMappingFromDevtools=t}async attr(){return this._attr}async ready(){await this.wait()}getProjectType(t,e){let i="";return i=(null==t?void 0:t.gameApp)?"miniGamePlugin"===e?"miniGamePlugin":"miniGame":e,i}getProjectConfig(){let t={};const e=path_1.default.join(this.projectPath,"project.config.json");if(fs_extra_1.default.existsSync(e))try{t=fs_extra_1.default.readJsonSync(e)}catch(t){throw new Error("project.config.json not exist")}for(const e in rootConfig)"string"==typeof t[e]&&(t[e]=this.normalizeRootPath(t[e]));return t}async serialize(){const{files:t,dirs:e}=this.getFilesAndDirs();return{projectPath:this.projectPath,appid:this.appid,attr:await this.attr(),type:this.type,projectArchitecture:this.projectArchitecture,miniprogramRoot:this.miniprogramRoot,pluginRoot:this.pluginRoot,files:t,dirs:e,setting:this.setting}}updateFiles(){this.updateFileAndDirs(...arguments)}updateOptions(t){this._appid=t.appid,this._injectedPages=t.injectedPages||[],this._attr=t.attr,this._type=this.getProjectType(t.attr,t.compileType),this._miniprogramRoot=t.miniprogramRoot,this._pluginRoot=t.pluginRoot,this._projectArchitecture=t.projectArchitecture,this.packOptions=t.packOptions||{ignore:[],include:[]},this.event.emit("optionsChange",t)}cacheDirName(t,e){t.has(e)||(t.add(e),this.cacheDirName(t,path_1.default.posix.dirname(e)))}deleteDirOrFileOfSet(t,e,i){if(t.has(i)){t.delete(i);const r=i+"/",s=Array.from(t);for(const e of s)e.startsWith(r)&&t.delete(e);const o=Array.from(e);for(const t of o)t.startsWith(r)&&e.delete(t)}e.has(i)&&e.delete(i)}getTargetPath(t="",e=""){return(0,tools_1.normalizePath)((0,tools_1.joinPath)(t,e)).replace(/\/$/,"").replace(/^\//,"")}getFilesAndDirs(){return{files:Array.from(this._fileSet),dirs:Array.from(this._dirSet)}}exists(t="",e=""){const i=this.getTargetPath(t,e);if(!i.startsWith(t))return!1;if(this._fileSet.has(i)||this._dirSet.has(i))return!0;const r=(0,tools_1.normalizePath)((0,tools_1.joinPath)(this.projectPath,i));return fs_extra_1.default.existsSync(r)}async statAsync(t="",e=""){return this.stat(t,e)}stat(t="",e=""){if(!this.exists(t,e))return;const i=this.getTargetPath(t,e),r=path_1.default.join(this.projectPath,i);let s={};try{s=fs_extra_1.default.statSync(r)}catch(t){fs_extra_1.default.existsSync(r)||this.deleteDirOrFileOfSet(this._dirSet,this._fileSet,i)}if(this._fileSet.has(i)){return{isFile:!0,isDirectory:!1,size:this.getFileSize(t,e),mtimeMs:s.mtimeMs||""}}return this._dirSet.has(i)?{isFile:!1,isDirectory:!0,size:0,mtimeMs:s.mtimeMs}:void 0}async getAllFileInfo(t=""){const e=this.getFileList(t),i={};for(const t of e)i[t]=await this.stat("",t)||{};return i}getFileList(t="",e=""){return Array.from(this._fileSet).filter(i=>(!e||path_1.default.posix.extname(i)===e)&&!(t&&!i.startsWith(t)))}getSrcFile(t,e){t=t||"";const i=this.getTargetPath(t,e),r=(0,tools_1.normalizePath)((0,tools_1.joinPath)(this.projectPath,i));return fs_extra_1.default.readFileSync(r,null)}getFile(t,e){return this.getSrcFile(t,e)}getJson(t="",e=""){const i=this.getFile(t,e).toString("utf-8");try{return JSON.parse(i)}catch(i){throw new Error("JSON parse failed: "+this.getTargetPath(t,e))}}getFileSize(t="",e=""){const i=this.getFile(t,e);return i?i.byteLength:0}getExtAppid(){throw new Error("Method not implemented.")}async onFileChange(t,e){e=(0,tools_1.normalizePath)(e).replace(/\/$/,"").replace(/^\//,""),"add"===t&&(this.cacheDirName(this._dirSet,path_1.default.posix.dirname(e)),this._fileSet.add(e)),"addDir"===t&&this.cacheDirName(this._dirSet,e),"unlink"===t&&this.deleteDirOrFileOfSet(this._dirSet,this._fileSet,e),"unlinkDir"===t&&this.deleteDirOrFileOfSet(this._dirSet,this._fileSet,e),"change"===t&&this._fileSet.has(e),this.event.emit("fileChange",t,e)}clearCache(){}}exports.BaseProject=BaseProject;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IAccountCardService=void 0;const vsbase_1=require("../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.IAccountCardService=createDecorator("IAccountCardService");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppDirDevtoolsService=void 0;class AppDirDevtoolsService{constructor(){this._config={WeappCompileCache:"",WeappMiniApp:""}}async init(e){return this._config=e,e}async get(e){return this._config[e]}cleanDir(e){throw new Error("Method not implemented.")}}exports.AppDirDevtoolsService=AppDirDevtoolsService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IAppDirService=void 0;const vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.IAppDirService=createDecorator("IAppDirService");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppDirService=void 0;const appDirService_devtools_1=require("../common/appDirService.devtools");class AppDirService extends appDirService_devtools_1.AppDirDevtoolsService{}exports.AppDirService=AppDirService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppDirDevtoolsService=void 0;class AppDirDevtoolsService{init(){throw new Error("Method not implemented.")}get(e){throw new Error("Method not implemented.")}cleanDir(e){throw new Error("Method not implemented.")}}exports.AppDirDevtoolsService=AppDirDevtoolsService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppDirService=void 0;const appDirService_devtools_1=require("../common/appDirService.devtools");class AppDirService extends appDirService_devtools_1.AppDirDevtoolsService{}exports.AppDirService=AppDirService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IBuilder=void 0;const tslib_1=require("tslib"),vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();tslib_1.__exportStar(require("../../.."),exports),exports.IBuilder=createDecorator("IBuilder");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NWBuilder=void 0;const __1=require("../../..");class NWBuilder{async getCompiler(){throw new Error("nw no need")}getBabelHelperVersion(){return(0,__1.getBabelHelperVersion)()}getWorkletVersion(){return __1.workletVersion}getHelperContent(e,r){return(0,__1.getHelperContent)(e,r)}getHelperName(e,r){return(0,__1.getHelperName)(e,r)}isValidHelperFunc(e){return(0,__1.isValidHelperFunc)(e)}getHelperOutputPath(e){return(0,__1.getHelperOutputPath)(e)}getHelperDeps(e,r){return(0,__1.getHelperDeps)(e,r)}getPackOptionsHelper(){return __1.packOptionsHelper}}exports.NWBuilder=NWBuilder;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebideBuilder=void 0;const builder_1=require("../nw/builder");class WebideBuilder extends builder_1.NWBuilder{}exports.WebideBuilder=WebideBuilder;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.registerSingleton=registerSingleton,exports.getSingletonServiceDescriptors=getSingletonServiceDescriptors;const vsbase_1=require("./vsbase"),{SyncDescriptor:SyncDescriptor}=vsbase_1.vsbase.vs.platform.instantiation.common.descriptors.$get(),_registry=[];function registerSingleton(e,r,t,s=!0){_registry.push([e,new SyncDescriptor(r,[],t)])}function getSingletonServiceDescriptors(){return _registry}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EServiceEnviroment=void 0,exports.initServices=initServices;const vsbase_1=require("../common/vsbase"),nativeModule_1=require("../nativeModule/common/nativeModule"),createService_1=require("../root/common/createService"),appDirService_1=require("../app/common/appDirService");var EServiceEnviroment;let _env;function getRootFactory(){let e;if(_env===EServiceEnviroment.SERVER)e=require("../root/server/root").Root;else if(_env===EServiceEnviroment.ELECTRON)e=require("../root/electron/root").Root;else if(_env===EServiceEnviroment.NW)e=require("../root/nw/root").Root;else{if(_env!==EServiceEnviroment.NODE)throw new Error("[Builder Services] Not Define Env");e=require("../root/node/root").Root}return e}!function(e){e.ELECTRON="ELECTRON",e.SERVER="SERVER",e.NW="NW",e.NODE="NODE"}(EServiceEnviroment||(exports.EServiceEnviroment=EServiceEnviroment={}));let _Root=null;function getServiceFactory(){return function(e){var r;let o;return _Root||(_Root=getRootFactory()),null===(r=_Root.iis)||void 0===r||r.invokeFunction(r=>{o=r.get(e)}),o}}async function initServices(e,r,o){let t,i;o&&(0,vsbase_1.setGetVsBaseBundle)(o),_env=e,e===EServiceEnviroment.SERVER?(i=require("../root/server/root").Root,t=require("../root/server/rootService").getSingletonServiceDescriptors):e===EServiceEnviroment.ELECTRON?(i=require("../root/electron/root").Root,t=require("../root/electron/rootService").getSingletonServiceDescriptors):e===EServiceEnviroment.NW?(i=require("../root/nw/root").Root,t=require("../root/nw/rootService").getSingletonServiceDescriptors):e===EServiceEnviroment.NODE&&(i=require("../root/node/root").Root,t=require("../root/node/rootService").getSingletonServiceDescriptors);const n=(0,createService_1.createService)(t());i.initIisWithServices(n.instantiationService),i.iis.invokeFunction(async e=>{"NativeModule"in r&&(e.get(nativeModule_1.INativeModuleService).setWXMLParsePath(r.NativeModule.WXMLParsePath),e.get(nativeModule_1.INativeModuleService).setWXSSParsePath(r.NativeModule.WXSSParsePath),e.get(nativeModule_1.INativeModuleService).setGlassEaselLazyModulePath(r.NativeModule.GlassEaselLazyModulePath),e.get(appDirService_1.IAppDirService).init(r.AppDirService))})}exports.default=getServiceFactory();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.vslib=void 0,exports.setLoaderFn=setLoaderFn,exports.getLoader=getLoader,exports.getInfo=getInfo;const _initialTime=Date.now();var t_vs_lib_0,t_vs_lib_1,t_vs_lib_2,t_vs_lib_3,t_vs_lib_4,t_vs_lib_5,t_vs_lib_6,t_vs_lib_7,t_vs_lib_8,t_vs_lib_9,t_vs_lib_10,t_vs_lib_11,t_vs_lib_12,t_vs_lib_13,t_vs_lib_14,t_vs_lib_15,t_vs_lib_16,t_vs_lib_17,t_vs_lib_18,t_vs_lib_19,t_vs_lib_20,t_vs_lib_21,t_vs_lib_89,t_vs_lib_88,t_vs_lib_22,t_vs_lib_23,t_vs_lib_24,t_vs_lib_25,t_vs_lib_26,t_vs_lib_27,t_vs_lib_28,t_vs_lib_29,t_vs_lib_30,t_vs_lib_31,t_vs_lib_32,t_vs_lib_33,t_vs_lib_34,t_vs_lib_35,t_vs_lib_36,t_vs_lib_37,t_vs_lib_38,t_vs_lib_39,t_vs_lib_40,t_vs_lib_41,t_vs_lib_42,t_vs_lib_43,t_vs_lib_44,t_vs_lib_45,t_vs_lib_46,t_vs_lib_47,t_vs_lib_48,t_vs_lib_49,t_vs_lib_50,t_vs_lib_51,t_vs_lib_52,t_vs_lib_53,t_vs_lib_54,t_vs_lib_55,t_vs_lib_56,t_vs_lib_57,t_vs_lib_58,t_vs_lib_59,t_vs_lib_60,t_vs_lib_61,t_vs_lib_62,t_vs_lib_63,t_vs_lib_64,t_vs_lib_65,t_vs_lib_66,t_vs_lib_67,t_vs_lib_68,t_vs_lib_69,t_vs_lib_70,t_vs_lib_71,t_vs_lib_72,t_vs_lib_73,t_vs_lib_74,t_vs_lib_75,t_vs_lib_76,t_vs_lib_77,t_vs_lib_78,t_vs_lib_79,t_vs_lib_80,t_vs_lib_81,t_vs_lib_82,t_vs_lib_83,t_vs_lib_84,t_vs_lib_85,t_vs_lib_86,t_vs_lib_87,t_vs_lib_90,t_vs_lib_91,t_vs_lib_92,t_vs_lib_93,t_vs_lib_94,t_vs_lib_95,t_vs_lib_96,t_vs_lib_97,t_vs_lib_98,t_vs_lib_99,t_vs_lib_100,t_vs_lib_101,t_vs_lib_102,t_vs_lib_103,t_vs_lib_104,t_vs_lib_105,t_vs_lib_106,t_vs_lib_109,t_vs_lib_110,t_vs_lib_111,t_vs_lib_112,t_vs_lib_113,t_vs_lib_114,t_vs_lib_115,t_vs_lib_116,t_vs_lib_117,t_vs_lib_118,t_vs_lib_119,t_vs_lib_120,t_vs_lib_121,t_vs_lib_122,t_vs_lib_123,t_vs_lib_124,t_vs_lib_125,t_vs_lib_126,t_vs_lib_127,t_vs_lib_128,t_vs_lib_129,t_vs_lib_130,t_vs_lib_131,t_vs_lib_132,t_vs_lib_133,t_vs_lib_134,t_vs_lib_135,t_vs_lib_136,t_vs_lib_137,t_vs_lib_138,t_vs_lib_139,t_vs_lib_140,t_vs_lib_141,t_vs_lib_142,t_vs_lib_143,t_vs_lib_144,t_vs_lib_145,t_vs_lib_146,t_vs_lib_147,t_vs_lib_153,t_vs_lib_154,t_vs_lib_155,t_vs_lib_156,t_vs_lib_157,t_vs_lib_158,t_vs_lib_159,t_vs_lib_160,t_vs_lib_161,t_vs_lib_162,t_vs_lib_163,t_vs_lib_164,t_vs_lib_165,t_vs_lib_166,t_vs_lib_167,t_vs_lib_168,t_vs_lib_169,t_vs_lib_170,t_vs_lib_171,t_vs_lib_172,t_vs_lib_173,t_vs_lib_174,t_vs_lib_175,t_vs_lib_176,t_vs_lib_177,t_vs_lib_178,t_vs_lib_179,t_vs_lib_180,t_vs_lib_107,t_vs_lib_108,t_vs_lib_148,t_vs_lib_149,t_vs_lib_150,t_vs_lib_151,t_vs_lib_152,t_vs_lib_181,t_vs_lib_182,t_vs_lib_183,t_vs_lib_184,t_vs_lib_185,t_vs_lib_186,t_vs_lib_187,t_vs_lib_188,t_vs_lib_189,t_vs_lib_190,t_vs_lib_191,t_vs_lib_192,t_vs_lib_193,t_vs_lib_194,t_vs_lib_195,t_vs_lib_196,t_vs_lib_197,t_vs_lib_198,t_vs_lib_199,t_vs_lib_200,t_vs_lib_201,t_vs_lib_202,t_vs_lib_203,t_vs_lib_204,t_vs_lib_205,t_vs_lib_206,t_vs_lib_207,t_vs_lib_208,t_vs_lib_209,t_vs_lib_210,t_vs_lib_211,t_vs_lib_212,t_vs_lib_213,t_vs_lib_214,t_vs_lib_215,t_vs_lib_216,t_vs_lib_217,t_vs_lib_218,t_vs_lib_219,t_vs_lib_220,t_vs_lib_221,t_vs_lib_222,t_vs_lib_223,t_vs_lib_224,t_vs_lib_225,t_vs_lib_226,t_vs_lib_227,t_vs_lib_228,t_vs_lib_229,t_vs_lib_230,t_vs_lib_231,t_vs_lib_232,t_vs_lib_233,t_vs_lib_234,t_vs_lib_235,t_vs_lib_236,t_vs_lib_237,t_vs_lib_238,t_vs_lib_239,vslib;let loaderFn;function setLoaderFn(t){loaderFn=t}!function(t){let e;!function(t){let e,n;!function(t){let e,n,s,i,o;!function(t){let e,n,s,i,o,r,l,_,b,c,a,v,u,f,d,p,$,m,g,y,F,w,h,x;!function(t){t.$types=t_vs_lib_0,t.$get=function(){return loaderFn("vslib/vs/base/browser/broadcast")}}(e=t.broadcast||(t.broadcast={})),function(t){t.$types=t_vs_lib_1,t.$get=function(){return loaderFn("vslib/vs/base/browser/browser")}}(n=t.browser||(t.browser={})),function(t){t.$types=t_vs_lib_2,t.$get=function(){return loaderFn("vslib/vs/base/browser/canIUse")}}(s=t.canIUse||(t.canIUse={})),function(t){t.$types=t_vs_lib_3,t.$get=function(){return loaderFn("vslib/vs/base/browser/codicons")}}(i=t.codicons||(t.codicons={})),function(t){t.$types=t_vs_lib_4,t.$get=function(){return loaderFn("vslib/vs/base/browser/contextmenu")}}(o=t.contextmenu||(t.contextmenu={})),function(t){t.$types=t_vs_lib_5,t.$get=function(){return loaderFn("vslib/vs/base/browser/defaultWorkerFactory")}}(r=t.defaultWorkerFactory||(t.defaultWorkerFactory={})),function(t){t.$types=t_vs_lib_6,t.$get=function(){return loaderFn("vslib/vs/base/browser/deviceAccess")}}(l=t.deviceAccess||(t.deviceAccess={})),function(t){t.$types=t_vs_lib_7,t.$get=function(){return loaderFn("vslib/vs/base/browser/dnd")}}(_=t.dnd||(t.dnd={})),function(t){t.$types=t_vs_lib_8,t.$get=function(){return loaderFn("vslib/vs/base/browser/dom")}}(b=t.dom||(t.dom={})),function(t){t.$types=t_vs_lib_9,t.$get=function(){return loaderFn("vslib/vs/base/browser/event")}}(c=t.event||(t.event={})),function(t){t.$types=t_vs_lib_10,t.$get=function(){return loaderFn("vslib/vs/base/browser/fastDomNode")}}(a=t.fastDomNode||(t.fastDomNode={})),function(t){t.$types=t_vs_lib_11,t.$get=function(){return loaderFn("vslib/vs/base/browser/formattedTextRenderer")}}(v=t.formattedTextRenderer||(t.formattedTextRenderer={})),function(t){t.$types=t_vs_lib_12,t.$get=function(){return loaderFn("vslib/vs/base/browser/globalPointerMoveMonitor")}}(u=t.globalPointerMoveMonitor||(t.globalPointerMoveMonitor={})),function(t){t.$types=t_vs_lib_13,t.$get=function(){return loaderFn("vslib/vs/base/browser/hash")}}(f=t.hash||(t.hash={})),function(t){t.$types=t_vs_lib_14,t.$get=function(){return loaderFn("vslib/vs/base/browser/history")}}(d=t.history||(t.history={})),function(t){t.$types=t_vs_lib_15,t.$get=function(){return loaderFn("vslib/vs/base/browser/iframe")}}(p=t.iframe||(t.iframe={})),function(t){t.$types=t_vs_lib_16,t.$get=function(){return loaderFn("vslib/vs/base/browser/indexedDB")}}($=t.indexedDB||(t.indexedDB={})),function(t){t.$types=t_vs_lib_17,t.$get=function(){return loaderFn("vslib/vs/base/browser/keyboardEvent")}}(m=t.keyboardEvent||(t.keyboardEvent={})),function(t){t.$types=t_vs_lib_18,t.$get=function(){return loaderFn("vslib/vs/base/browser/markdownRenderer")}}(g=t.markdownRenderer||(t.markdownRenderer={})),function(t){t.$types=t_vs_lib_19,t.$get=function(){return loaderFn("vslib/vs/base/browser/mouseEvent")}}(y=t.mouseEvent||(t.mouseEvent={})),function(t){t.$types=t_vs_lib_20,t.$get=function(){return loaderFn("vslib/vs/base/browser/performance")}}(F=t.performance||(t.performance={})),function(t){t.$types=t_vs_lib_21,t.$get=function(){return loaderFn("vslib/vs/base/browser/touch")}}(w=t.touch||(t.touch={})),function(t){t.$types=t_vs_lib_89,t.$get=function(){return loaderFn("vslib/vs/base/browser/vsdom")}}(h=t.vsdom||(t.vsdom={})),function(t){let e,n,s,i,o,r,l,_,b,c,a,v,u,f,d,p,$,m,g,y,F,w,h,x,T,k,L,I,C,S,j;!function(t){t.$types=t_vs_lib_88,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/widget")}}(e=t.widget||(t.widget={})),function(t){let e,n;!function(t){t.$types=t_vs_lib_22,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/actionbar/actionbar")}}(e=t.actionbar||(t.actionbar={})),function(t){t.$types=t_vs_lib_23,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/actionbar/actionViewItems")}}(n=t.actionViewItems||(t.actionViewItems={}))}(n=t.actionbar||(t.actionbar={})),function(t){let e;!function(t){t.$types=t_vs_lib_24,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/aria/aria")}}(e=t.aria||(t.aria={}))}(s=t.aria||(t.aria={})),function(t){let e;!function(t){t.$types=t_vs_lib_25,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget")}}(e=t.breadcrumbsWidget||(t.breadcrumbsWidget={}))}(i=t.breadcrumbs||(t.breadcrumbs={})),function(t){let e;!function(t){t.$types=t_vs_lib_26,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/button/button")}}(e=t.button||(t.button={}))}(o=t.button||(t.button={})),function(t){let e;!function(t){t.$types=t_vs_lib_27,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/centered/centeredViewLayout")}}(e=t.centeredViewLayout||(t.centeredViewLayout={}))}(r=t.centered||(t.centered={})),function(t){let e;!function(t){t.$types=t_vs_lib_28,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/codicons/codiconStyles")}}(e=t.codiconStyles||(t.codiconStyles={}))}(l=t.codicons||(t.codicons={})),function(t){let e;!function(t){t.$types=t_vs_lib_29,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/contextview/contextview")}}(e=t.contextview||(t.contextview={}))}(_=t.contextview||(t.contextview={})),function(t){let e;!function(t){t.$types=t_vs_lib_30,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/countBadge/countBadge")}}(e=t.countBadge||(t.countBadge={}))}(b=t.countBadge||(t.countBadge={})),function(t){let e;!function(t){t.$types=t_vs_lib_31,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/dialog/dialog")}}(e=t.dialog||(t.dialog={}))}(c=t.dialog||(t.dialog={})),function(t){let e,n;!function(t){t.$types=t_vs_lib_32,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/dropdown/dropdown")}}(e=t.dropdown||(t.dropdown={})),function(t){t.$types=t_vs_lib_33,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/dropdown/dropdownActionViewItem")}}(n=t.dropdownActionViewItem||(t.dropdownActionViewItem={}))}(a=t.dropdown||(t.dropdown={})),function(t){let e,n,s;!function(t){t.$types=t_vs_lib_34,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/findinput/findInput")}}(e=t.findInput||(t.findInput={})),function(t){t.$types=t_vs_lib_35,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/findinput/findInputToggles")}}(n=t.findInputToggles||(t.findInputToggles={})),function(t){t.$types=t_vs_lib_36,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/findinput/replaceInput")}}(s=t.replaceInput||(t.replaceInput={}))}(v=t.findinput||(t.findinput={})),function(t){let e,n;!function(t){t.$types=t_vs_lib_37,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/grid/grid")}}(e=t.grid||(t.grid={})),function(t){t.$types=t_vs_lib_38,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/grid/gridview")}}(n=t.gridview||(t.gridview={}))}(u=t.grid||(t.grid={})),function(t){let e;!function(t){t.$types=t_vs_lib_39,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/highlightedlabel/highlightedLabel")}}(e=t.highlightedLabel||(t.highlightedLabel={}))}(f=t.highlightedlabel||(t.highlightedlabel={})),function(t){let e;!function(t){t.$types=t_vs_lib_40,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/hover/hoverWidget")}}(e=t.hoverWidget||(t.hoverWidget={}))}(d=t.hover||(t.hover={})),function(t){let e,n,s,i,o;!function(t){t.$types=t_vs_lib_41,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/iconLabel/iconHoverDelegate")}}(e=t.iconHoverDelegate||(t.iconHoverDelegate={})),function(t){t.$types=t_vs_lib_42,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/iconLabel/iconLabel")}}(n=t.iconLabel||(t.iconLabel={})),function(t){t.$types=t_vs_lib_43,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/iconLabel/iconLabelHover")}}(s=t.iconLabelHover||(t.iconLabelHover={})),function(t){t.$types=t_vs_lib_44,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/iconLabel/iconLabels")}}(i=t.iconLabels||(t.iconLabels={})),function(t){t.$types=t_vs_lib_45,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/iconLabel/simpleIconLabel")}}(o=t.simpleIconLabel||(t.simpleIconLabel={}))}(p=t.iconLabel||(t.iconLabel={})),function(t){let e;!function(t){t.$types=t_vs_lib_46,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/inputbox/inputBox")}}(e=t.inputBox||(t.inputBox={}))}($=t.inputbox||(t.inputbox={})),function(t){let e;!function(t){t.$types=t_vs_lib_47,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/keybindingLabel/keybindingLabel")}}(e=t.keybindingLabel||(t.keybindingLabel={}))}(m=t.keybindingLabel||(t.keybindingLabel={})),function(t){let e,n,s,i,o,r,l;!function(t){t.$types=t_vs_lib_48,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/list/list")}}(e=t.list||(t.list={})),function(t){t.$types=t_vs_lib_49,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/list/listPaging")}}(n=t.listPaging||(t.listPaging={})),function(t){t.$types=t_vs_lib_50,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/list/listView")}}(s=t.listView||(t.listView={})),function(t){t.$types=t_vs_lib_51,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/list/listWidget")}}(i=t.listWidget||(t.listWidget={})),function(t){t.$types=t_vs_lib_52,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/list/rangeMap")}}(o=t.rangeMap||(t.rangeMap={})),function(t){t.$types=t_vs_lib_53,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/list/rowCache")}}(r=t.rowCache||(t.rowCache={})),function(t){t.$types=t_vs_lib_54,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/list/splice")}}(l=t.splice||(t.splice={}))}(g=t.list||(t.list={})),function(t){let e,n;!function(t){t.$types=t_vs_lib_55,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/menu/menu")}}(e=t.menu||(t.menu={})),function(t){t.$types=t_vs_lib_56,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/menu/menubar")}}(n=t.menubar||(t.menubar={}))}(y=t.menu||(t.menu={})),function(t){let e;!function(t){t.$types=t_vs_lib_57,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/mouseCursor/mouseCursor")}}(e=t.mouseCursor||(t.mouseCursor={}))}(F=t.mouseCursor||(t.mouseCursor={})),function(t){let e;!function(t){t.$types=t_vs_lib_58,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/progressbar/progressbar")}}(e=t.progressbar||(t.progressbar={}))}(w=t.progressbar||(t.progressbar={})),function(t){let e;!function(t){t.$types=t_vs_lib_59,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/resizable/resizable")}}(e=t.resizable||(t.resizable={}))}(h=t.resizable||(t.resizable={})),function(t){let e;!function(t){t.$types=t_vs_lib_60,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/sash/sash")}}(e=t.sash||(t.sash={}))}(x=t.sash||(t.sash={})),function(t){let e,n,s,i,o,r,l,_;!function(t){t.$types=t_vs_lib_61,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/scrollbar/abstractScrollbar")}}(e=t.abstractScrollbar||(t.abstractScrollbar={})),function(t){t.$types=t_vs_lib_62,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/scrollbar/horizontalScrollbar")}}(n=t.horizontalScrollbar||(t.horizontalScrollbar={})),function(t){t.$types=t_vs_lib_63,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/scrollbar/scrollableElement")}}(s=t.scrollableElement||(t.scrollableElement={})),function(t){t.$types=t_vs_lib_64,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/scrollbar/scrollableElementOptions")}}(i=t.scrollableElementOptions||(t.scrollableElementOptions={})),function(t){t.$types=t_vs_lib_65,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/scrollbar/scrollbarArrow")}}(o=t.scrollbarArrow||(t.scrollbarArrow={})),function(t){t.$types=t_vs_lib_66,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/scrollbar/scrollbarState")}}(r=t.scrollbarState||(t.scrollbarState={})),function(t){t.$types=t_vs_lib_67,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/scrollbar/scrollbarVisibilityController")}}(l=t.scrollbarVisibilityController||(t.scrollbarVisibilityController={})),function(t){t.$types=t_vs_lib_68,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/scrollbar/verticalScrollbar")}}(_=t.verticalScrollbar||(t.verticalScrollbar={}))}(T=t.scrollbar||(t.scrollbar={})),function(t){let e,n,s;!function(t){t.$types=t_vs_lib_69,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/selectBox/selectBox")}}(e=t.selectBox||(t.selectBox={})),function(t){t.$types=t_vs_lib_70,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/selectBox/selectBoxCustom")}}(n=t.selectBoxCustom||(t.selectBoxCustom={})),function(t){t.$types=t_vs_lib_71,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/selectBox/selectBoxNative")}}(s=t.selectBoxNative||(t.selectBoxNative={}))}(k=t.selectBox||(t.selectBox={})),function(t){let e,n;!function(t){t.$types=t_vs_lib_72,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/splitview/paneview")}}(e=t.paneview||(t.paneview={})),function(t){t.$types=t_vs_lib_73,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/splitview/splitview")}}(n=t.splitview||(t.splitview={}))}(L=t.splitview||(t.splitview={})),function(t){let e,n;!function(t){t.$types=t_vs_lib_74,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/table/table")}}(e=t.table||(t.table={})),function(t){t.$types=t_vs_lib_75,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/table/tableWidget")}}(n=t.tableWidget||(t.tableWidget={}))}(I=t.table||(t.table={})),function(t){let e;!function(t){t.$types=t_vs_lib_76,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/toggle/toggle")}}(e=t.toggle||(t.toggle={}))}(C=t.toggle||(t.toggle={})),function(t){let e;!function(t){t.$types=t_vs_lib_77,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/toolbar/toolbar")}}(e=t.toolbar||(t.toolbar={}))}(S=t.toolbar||(t.toolbar={})),function(t){let e,n,s,i,o,r,l,_,b,c;!function(t){t.$types=t_vs_lib_78,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/abstractTree")}}(e=t.abstractTree||(t.abstractTree={})),function(t){t.$types=t_vs_lib_79,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/asyncDataTree")}}(n=t.asyncDataTree||(t.asyncDataTree={})),function(t){t.$types=t_vs_lib_80,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/compressedObjectTreeModel")}}(s=t.compressedObjectTreeModel||(t.compressedObjectTreeModel={})),function(t){t.$types=t_vs_lib_81,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/dataTree")}}(i=t.dataTree||(t.dataTree={})),function(t){t.$types=t_vs_lib_82,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/indexTree")}}(o=t.indexTree||(t.indexTree={})),function(t){t.$types=t_vs_lib_83,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/indexTreeModel")}}(r=t.indexTreeModel||(t.indexTreeModel={})),function(t){t.$types=t_vs_lib_84,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/objectTree")}}(l=t.objectTree||(t.objectTree={})),function(t){t.$types=t_vs_lib_85,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/objectTreeModel")}}(_=t.objectTreeModel||(t.objectTreeModel={})),function(t){t.$types=t_vs_lib_86,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/tree")}}(b=t.tree||(t.tree={})),function(t){t.$types=t_vs_lib_87,t.$get=function(){return loaderFn("vslib/vs/base/browser/ui/tree/treeDefaults")}}(c=t.treeDefaults||(t.treeDefaults={}))}(j=t.tree||(t.tree={}))}(x=t.ui||(t.ui={}))}(e=t.browser||(t.browser={})),function(t){let e,n,s,i,o,r,l,_,b,c,a,v,u,f,d,p,$,m,g,y,F,w,h,x,T,k,L,I,C,S,j,M,z,B,E,q,V,W,D,A,O,P,H,N,R,G,U,J,K,Q,X,Y,Z,tt,et,nt,st,it,ot,rt,lt,_t,bt,ct,at,vt,ut,ft,dt,pt,$t,mt,gt,yt,Ft,wt,ht,xt,Tt,kt,Lt,It,Ct,St,jt,Mt,zt;!function(t){t.$types=t_vs_lib_90,t.$get=function(){return loaderFn("vslib/vs/base/common/actions")}}(e=t.actions||(t.actions={})),function(t){t.$types=t_vs_lib_91,t.$get=function(){return loaderFn("vslib/vs/base/common/amd")}}(n=t.amd||(t.amd={})),function(t){t.$types=t_vs_lib_92,t.$get=function(){return loaderFn("vslib/vs/base/common/arrays")}}(s=t.arrays||(t.arrays={})),function(t){t.$types=t_vs_lib_93,t.$get=function(){return loaderFn("vslib/vs/base/common/assert")}}(i=t.assert||(t.assert={})),function(t){t.$types=t_vs_lib_94,t.$get=function(){return loaderFn("vslib/vs/base/common/async")}}(o=t.async||(t.async={})),function(t){t.$types=t_vs_lib_95,t.$get=function(){return loaderFn("vslib/vs/base/common/buffer")}}(r=t.buffer||(t.buffer={})),function(t){t.$types=t_vs_lib_96,t.$get=function(){return loaderFn("vslib/vs/base/common/cache")}}(l=t.cache||(t.cache={})),function(t){t.$types=t_vs_lib_97,t.$get=function(){return loaderFn("vslib/vs/base/common/cancellation")}}(_=t.cancellation||(t.cancellation={})),function(t){t.$types=t_vs_lib_98,t.$get=function(){return loaderFn("vslib/vs/base/common/charCode")}}(b=t.charCode||(t.charCode={})),function(t){t.$types=t_vs_lib_99,t.$get=function(){return loaderFn("vslib/vs/base/common/codicons")}}(c=t.codicons||(t.codicons={})),function(t){t.$types=t_vs_lib_100,t.$get=function(){return loaderFn("vslib/vs/base/common/collections")}}(a=t.collections||(t.collections={})),function(t){t.$types=t_vs_lib_101,t.$get=function(){return loaderFn("vslib/vs/base/common/color")}}(v=t.color||(t.color={})),function(t){t.$types=t_vs_lib_102,t.$get=function(){return loaderFn("vslib/vs/base/common/comparers")}}(u=t.comparers||(t.comparers={})),function(t){t.$types=t_vs_lib_103,t.$get=function(){return loaderFn("vslib/vs/base/common/console")}}(f=t.console||(t.console={})),function(t){t.$types=t_vs_lib_104,t.$get=function(){return loaderFn("vslib/vs/base/common/dataTransfer")}}(d=t.dataTransfer||(t.dataTransfer={})),function(t){t.$types=t_vs_lib_105,t.$get=function(){return loaderFn("vslib/vs/base/common/date")}}(p=t.date||(t.date={})),function(t){t.$types=t_vs_lib_106,t.$get=function(){return loaderFn("vslib/vs/base/common/decorators")}}($=t.decorators||(t.decorators={})),function(t){t.$types=t_vs_lib_109,t.$get=function(){return loaderFn("vslib/vs/base/common/errorMessage")}}(m=t.errorMessage||(t.errorMessage={})),function(t){t.$types=t_vs_lib_110,t.$get=function(){return loaderFn("vslib/vs/base/common/errors")}}(g=t.errors||(t.errors={})),function(t){t.$types=t_vs_lib_111,t.$get=function(){return loaderFn("vslib/vs/base/common/event")}}(y=t.event||(t.event={})),function(t){t.$types=t_vs_lib_112,t.$get=function(){return loaderFn("vslib/vs/base/common/extpath")}}(F=t.extpath||(t.extpath={})),function(t){t.$types=t_vs_lib_113,t.$get=function(){return loaderFn("vslib/vs/base/common/filters")}}(w=t.filters||(t.filters={})),function(t){t.$types=t_vs_lib_114,t.$get=function(){return loaderFn("vslib/vs/base/common/functional")}}(h=t.functional||(t.functional={})),function(t){t.$types=t_vs_lib_115,t.$get=function(){return loaderFn("vslib/vs/base/common/fuzzyScorer")}}(x=t.fuzzyScorer||(t.fuzzyScorer={})),function(t){t.$types=t_vs_lib_116,t.$get=function(){return loaderFn("vslib/vs/base/common/glob")}}(T=t.glob||(t.glob={})),function(t){t.$types=t_vs_lib_117,t.$get=function(){return loaderFn("vslib/vs/base/common/hash")}}(k=t.hash||(t.hash={})),function(t){t.$types=t_vs_lib_118,t.$get=function(){return loaderFn("vslib/vs/base/common/history")}}(L=t.history||(t.history={})),function(t){t.$types=t_vs_lib_119,t.$get=function(){return loaderFn("vslib/vs/base/common/htmlContent")}}(I=t.htmlContent||(t.htmlContent={})),function(t){t.$types=t_vs_lib_120,t.$get=function(){return loaderFn("vslib/vs/base/common/iconLabels")}}(C=t.iconLabels||(t.iconLabels={})),function(t){t.$types=t_vs_lib_121,t.$get=function(){return loaderFn("vslib/vs/base/common/idGenerator")}}(S=t.idGenerator||(t.idGenerator={})),function(t){t.$types=t_vs_lib_122,t.$get=function(){return loaderFn("vslib/vs/base/common/ime")}}(j=t.ime||(t.ime={})),function(t){t.$types=t_vs_lib_123,t.$get=function(){return loaderFn("vslib/vs/base/common/iterator")}}(M=t.iterator||(t.iterator={})),function(t){t.$types=t_vs_lib_124,t.$get=function(){return loaderFn("vslib/vs/base/common/json")}}(z=t.json||(t.json={})),function(t){t.$types=t_vs_lib_125,t.$get=function(){return loaderFn("vslib/vs/base/common/jsonEdit")}}(B=t.jsonEdit||(t.jsonEdit={})),function(t){t.$types=t_vs_lib_126,t.$get=function(){return loaderFn("vslib/vs/base/common/jsonErrorMessages")}}(E=t.jsonErrorMessages||(t.jsonErrorMessages={})),function(t){t.$types=t_vs_lib_127,t.$get=function(){return loaderFn("vslib/vs/base/common/jsonFormatter")}}(q=t.jsonFormatter||(t.jsonFormatter={})),function(t){t.$types=t_vs_lib_128,t.$get=function(){return loaderFn("vslib/vs/base/common/jsonSchema")}}(V=t.jsonSchema||(t.jsonSchema={})),function(t){t.$types=t_vs_lib_129,t.$get=function(){return loaderFn("vslib/vs/base/common/keybindingLabels")}}(W=t.keybindingLabels||(t.keybindingLabels={})),function(t){t.$types=t_vs_lib_130,t.$get=function(){return loaderFn("vslib/vs/base/common/keybindingParser")}}(D=t.keybindingParser||(t.keybindingParser={})),function(t){t.$types=t_vs_lib_131,t.$get=function(){return loaderFn("vslib/vs/base/common/keybindings")}}(A=t.keybindings||(t.keybindings={})),function(t){t.$types=t_vs_lib_132,t.$get=function(){return loaderFn("vslib/vs/base/common/keyCodes")}}(O=t.keyCodes||(t.keyCodes={})),function(t){t.$types=t_vs_lib_133,t.$get=function(){return loaderFn("vslib/vs/base/common/labels")}}(P=t.labels||(t.labels={})),function(t){t.$types=t_vs_lib_134,t.$get=function(){return loaderFn("vslib/vs/base/common/lazy")}}(H=t.lazy||(t.lazy={})),function(t){t.$types=t_vs_lib_135,t.$get=function(){return loaderFn("vslib/vs/base/common/lifecycle")}}(N=t.lifecycle||(t.lifecycle={})),function(t){t.$types=t_vs_lib_136,t.$get=function(){return loaderFn("vslib/vs/base/common/linkedList")}}(R=t.linkedList||(t.linkedList={})),function(t){t.$types=t_vs_lib_137,t.$get=function(){return loaderFn("vslib/vs/base/common/linkedText")}}(G=t.linkedText||(t.linkedText={})),function(t){t.$types=t_vs_lib_138,t.$get=function(){return loaderFn("vslib/vs/base/common/map")}}(U=t.map||(t.map={})),function(t){t.$types=t_vs_lib_139,t.$get=function(){return loaderFn("vslib/vs/base/common/marshalling")}}(J=t.marshalling||(t.marshalling={})),function(t){t.$types=t_vs_lib_140,t.$get=function(){return loaderFn("vslib/vs/base/common/marshallingIds")}}(K=t.marshallingIds||(t.marshallingIds={})),function(t){t.$types=t_vs_lib_141,t.$get=function(){return loaderFn("vslib/vs/base/common/mime")}}(Q=t.mime||(t.mime={})),function(t){t.$types=t_vs_lib_142,t.$get=function(){return loaderFn("vslib/vs/base/common/navigator")}}(X=t.navigator||(t.navigator={})),function(t){t.$types=t_vs_lib_143,t.$get=function(){return loaderFn("vslib/vs/base/common/network")}}(Y=t.network||(t.network={})),function(t){t.$types=t_vs_lib_144,t.$get=function(){return loaderFn("vslib/vs/base/common/normalization")}}(Z=t.normalization||(t.normalization={})),function(t){t.$types=t_vs_lib_145,t.$get=function(){return loaderFn("vslib/vs/base/common/numbers")}}(tt=t.numbers||(t.numbers={})),function(t){t.$types=t_vs_lib_146,t.$get=function(){return loaderFn("vslib/vs/base/common/objects")}}(et=t.objects||(t.objects={})),function(t){t.$types=t_vs_lib_147,t.$get=function(){return loaderFn("vslib/vs/base/common/observable")}}(nt=t.observable||(t.observable={})),function(t){t.$types=t_vs_lib_153,t.$get=function(){return loaderFn("vslib/vs/base/common/observableValue")}}(st=t.observableValue||(t.observableValue={})),function(t){t.$types=t_vs_lib_154,t.$get=function(){return loaderFn("vslib/vs/base/common/paging")}}(it=t.paging||(t.paging={})),function(t){t.$types=t_vs_lib_155,t.$get=function(){return loaderFn("vslib/vs/base/common/parsers")}}(ot=t.parsers||(t.parsers={})),function(t){t.$types=t_vs_lib_156,t.$get=function(){return loaderFn("vslib/vs/base/common/path")}}(rt=t.path||(t.path={})),function(t){t.$types=t_vs_lib_157,t.$get=function(){return loaderFn("vslib/vs/base/common/platform")}}(lt=t.platform||(t.platform={})),function(t){t.$types=t_vs_lib_158,t.$get=function(){return loaderFn("vslib/vs/base/common/ports")}}(_t=t.ports||(t.ports={})),function(t){t.$types=t_vs_lib_159,t.$get=function(){return loaderFn("vslib/vs/base/common/process")}}(bt=t.process||(t.process={})),function(t){t.$types=t_vs_lib_160,t.$get=function(){return loaderFn("vslib/vs/base/common/processes")}}(ct=t.processes||(t.processes={})),function(t){t.$types=t_vs_lib_161,t.$get=function(){return loaderFn("vslib/vs/base/common/product")}}(at=t.product||(t.product={})),function(t){t.$types=t_vs_lib_162,t.$get=function(){return loaderFn("vslib/vs/base/common/range")}}(vt=t.range||(t.range={})),function(t){t.$types=t_vs_lib_163,t.$get=function(){return loaderFn("vslib/vs/base/common/resources")}}(ut=t.resources||(t.resources={})),function(t){t.$types=t_vs_lib_164,t.$get=function(){return loaderFn("vslib/vs/base/common/resourceTree")}}(ft=t.resourceTree||(t.resourceTree={})),function(t){t.$types=t_vs_lib_165,t.$get=function(){return loaderFn("vslib/vs/base/common/scrollable")}}(dt=t.scrollable||(t.scrollable={})),function(t){t.$types=t_vs_lib_166,t.$get=function(){return loaderFn("vslib/vs/base/common/search")}}(pt=t.search||(t.search={})),function(t){t.$types=t_vs_lib_167,t.$get=function(){return loaderFn("vslib/vs/base/common/sequence")}}($t=t.sequence||(t.sequence={})),function(t){t.$types=t_vs_lib_168,t.$get=function(){return loaderFn("vslib/vs/base/common/severity")}}(mt=t.severity||(t.severity={})),function(t){t.$types=t_vs_lib_169,t.$get=function(){return loaderFn("vslib/vs/base/common/skipList")}}(gt=t.skipList||(t.skipList={})),function(t){t.$types=t_vs_lib_170,t.$get=function(){return loaderFn("vslib/vs/base/common/stopwatch")}}(yt=t.stopwatch||(t.stopwatch={})),function(t){t.$types=t_vs_lib_171,t.$get=function(){return loaderFn("vslib/vs/base/common/stream")}}(Ft=t.stream||(t.stream={})),function(t){t.$types=t_vs_lib_172,t.$get=function(){return loaderFn("vslib/vs/base/common/strings")}}(wt=t.strings||(t.strings={})),function(t){t.$types=t_vs_lib_173,t.$get=function(){return loaderFn("vslib/vs/base/common/symbols")}}(ht=t.symbols||(t.symbols={})),function(t){t.$types=t_vs_lib_174,t.$get=function(){return loaderFn("vslib/vs/base/common/ternarySearchTree")}}(xt=t.ternarySearchTree||(t.ternarySearchTree={})),function(t){t.$types=t_vs_lib_175,t.$get=function(){return loaderFn("vslib/vs/base/common/themables")}}(Tt=t.themables||(t.themables={})),function(t){t.$types=t_vs_lib_176,t.$get=function(){return loaderFn("vslib/vs/base/common/types")}}(kt=t.types||(t.types={})),function(t){t.$types=t_vs_lib_177,t.$get=function(){return loaderFn("vslib/vs/base/common/uint")}}(Lt=t.uint||(t.uint={})),function(t){t.$types=t_vs_lib_178,t.$get=function(){return loaderFn("vslib/vs/base/common/uri")}}(It=t.uri||(t.uri={})),function(t){t.$types=t_vs_lib_179,t.$get=function(){return loaderFn("vslib/vs/base/common/uriIpc")}}(Ct=t.uriIpc||(t.uriIpc={})),function(t){t.$types=t_vs_lib_180,t.$get=function(){return loaderFn("vslib/vs/base/common/uuid")}}(St=t.uuid||(t.uuid={})),function(t){let e,n;!function(t){t.$types=t_vs_lib_107,t.$get=function(){return loaderFn("vslib/vs/base/common/diff/diff")}}(e=t.diff||(t.diff={})),function(t){t.$types=t_vs_lib_108,t.$get=function(){return loaderFn("vslib/vs/base/common/diff/diffChange")}}(n=t.diffChange||(t.diffChange={}))}(jt=t.diff||(t.diff={})),function(t){let e,n,s,i,o;!function(t){t.$types=t_vs_lib_148,t.$get=function(){return loaderFn("vslib/vs/base/common/observableImpl/autorun")}}(e=t.autorun||(t.autorun={})),function(t){t.$types=t_vs_lib_149,t.$get=function(){return loaderFn("vslib/vs/base/common/observableImpl/base")}}(n=t.base||(t.base={})),function(t){t.$types=t_vs_lib_150,t.$get=function(){return loaderFn("vslib/vs/base/common/observableImpl/derived")}}(s=t.derived||(t.derived={})),function(t){t.$types=t_vs_lib_151,t.$get=function(){return loaderFn("vslib/vs/base/common/observableImpl/logging")}}(i=t.logging||(t.logging={})),function(t){t.$types=t_vs_lib_152,t.$get=function(){return loaderFn("vslib/vs/base/common/observableImpl/utils")}}(o=t.utils||(t.utils={}))}(Mt=t.observableImpl||(t.observableImpl={})),function(t){let e;!function(t){t.$types=t_vs_lib_181,t.$get=function(){return loaderFn("vslib/vs/base/common/worker/simpleWorker")}}(e=t.simpleWorker||(t.simpleWorker={}))}(zt=t.worker||(t.worker={}))}(n=t.common||(t.common={})),function(t){let e,n,s,i,o,r,l,_,b,c,a,v,u,f;!function(t){t.$types=t_vs_lib_182,t.$get=function(){return loaderFn("vslib/vs/base/node/crypto")}}(e=t.crypto||(t.crypto={})),function(t){t.$types=t_vs_lib_183,t.$get=function(){return loaderFn("vslib/vs/base/node/extpath")}}(n=t.extpath||(t.extpath={})),function(t){t.$types=t_vs_lib_184,t.$get=function(){return loaderFn("vslib/vs/base/node/id")}}(s=t.id||(t.id={})),function(t){t.$types=t_vs_lib_185,t.$get=function(){return loaderFn("vslib/vs/base/node/macAddress")}}(i=t.macAddress||(t.macAddress={})),function(t){t.$types=t_vs_lib_186,t.$get=function(){return loaderFn("vslib/vs/base/node/paths")}}(o=t.paths||(t.paths={})),function(t){t.$types=t_vs_lib_187,t.$get=function(){return loaderFn("vslib/vs/base/node/pfs")}}(r=t.pfs||(t.pfs={})),function(t){t.$types=t_vs_lib_188,t.$get=function(){return loaderFn("vslib/vs/base/node/ports")}}(l=t.ports||(t.ports={})),function(t){t.$types=t_vs_lib_189,t.$get=function(){return loaderFn("vslib/vs/base/node/powershell")}}(_=t.powershell||(t.powershell={})),function(t){t.$types=t_vs_lib_190,t.$get=function(){return loaderFn("vslib/vs/base/node/processes")}}(b=t.processes||(t.processes={})),function(t){t.$types=t_vs_lib_191,t.$get=function(){return loaderFn("vslib/vs/base/node/ps")}}(c=t.ps||(t.ps={})),function(t){t.$types=t_vs_lib_192,t.$get=function(){return loaderFn("vslib/vs/base/node/shell")}}(a=t.shell||(t.shell={})),function(t){t.$types=t_vs_lib_193,t.$get=function(){return loaderFn("vslib/vs/base/node/terminalEncoding")}}(v=t.terminalEncoding||(t.terminalEncoding={})),function(t){t.$types=t_vs_lib_194,t.$get=function(){return loaderFn("vslib/vs/base/node/unc")}}(u=t.unc||(t.unc={})),function(t){t.$types=t_vs_lib_195,t.$get=function(){return loaderFn("vslib/vs/base/node/zip")}}(f=t.zip||(t.zip={}))}(s=t.node||(t.node={})),function(t){let e,n,s,i,o,r;!function(t){let e,n,s;!function(t){let e;!function(t){t.$types=t_vs_lib_196,t.$get=function(){return loaderFn("vslib/vs/base/parts/contextmenu/common/contextmenu")}}(e=t.contextmenu||(t.contextmenu={}))}(e=t.common||(t.common={})),function(t){let e;!function(t){t.$types=t_vs_lib_197,t.$get=function(){return loaderFn("vslib/vs/base/parts/contextmenu/nw-main/contextmenu")}}(e=t.contextmenu||(t.contextmenu={}))}(n=t.nw_main||(t.nw_main={})),function(t){let e;!function(t){t.$types=t_vs_lib_198,t.$get=function(){return loaderFn("vslib/vs/base/parts/contextmenu/nw-sandbox/contextmenu")}}(e=t.contextmenu||(t.contextmenu={}))}(s=t.nw_sandbox||(t.nw_sandbox={}))}(e=t.contextmenu||(t.contextmenu={})),function(t){let e,n,s,i,o;!function(t){let e;!function(t){let e;!function(t){t.$types=t_vs_lib_199,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/browser/ipc.mp")}}(e=t.mp||(t.mp={}))}(e=t.ipc||(t.ipc={}))}(e=t.browser||(t.browser={})),function(t){let e;!function(t){t.$types=t_vs_lib_200,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/common/ipc")}}(e=t.ipc||(t.ipc={})),function(t){let e;!function(t){t.$types=t_vs_lib_201,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/common/ipc.electron")}}(e=t.electron||(t.electron={}))}(e=t.ipc||(t.ipc={})),function(t){let e;!function(t){t.$types=t_vs_lib_202,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/common/ipc.mp")}}(e=t.mp||(t.mp={}))}(e=t.ipc||(t.ipc={})),function(t){let e;!function(t){t.$types=t_vs_lib_203,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/common/ipc.net")}}(e=t.net||(t.net={}))}(e=t.ipc||(t.ipc={}))}(n=t.common||(t.common={})),function(t){let e;!function(t){let e;!function(t){t.$types=t_vs_lib_204,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/node/ipc.cp")}}(e=t.cp||(t.cp={}))}(e=t.ipc||(t.ipc={})),function(t){t.$types=t_vs_lib_205,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/node/ipc")}}(e=t.ipc||(t.ipc={})),function(t){let e;!function(t){t.$types=t_vs_lib_206,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/node/ipc.mp")}}(e=t.mp||(t.mp={}))}(e=t.ipc||(t.ipc={})),function(t){let e;!function(t){t.$types=t_vs_lib_207,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/node/ipc.net")}}(e=t.net||(t.net={}))}(e=t.ipc||(t.ipc={}))}(s=t.node||(t.node={})),function(t){let e,n;!function(t){let e;!function(t){t.$types=t_vs_lib_208,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/nw-main/ipc.electron")}}(e=t.electron||(t.electron={}))}(e=t.ipc||(t.ipc={})),function(t){let e;!function(t){t.$types=t_vs_lib_209,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/nw-main/ipc.mp")}}(e=t.mp||(t.mp={}))}(e=t.ipc||(t.ipc={})),function(t){t.$types=t_vs_lib_210,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/nw-main/ipcMain")}}(n=t.ipcMain||(t.ipcMain={}))}(i=t.nw_main||(t.nw_main={})),function(t){let e;!function(t){let e;!function(t){t.$types=t_vs_lib_211,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/nw-sandbox/ipc.electron")}}(e=t.electron||(t.electron={}))}(e=t.ipc||(t.ipc={})),function(t){let e;!function(t){t.$types=t_vs_lib_212,t.$get=function(){return loaderFn("vslib/vs/base/parts/ipc/nw-sandbox/ipc.mp")}}(e=t.mp||(t.mp={}))}(e=t.ipc||(t.ipc={}))}(o=t.nw_sandbox||(t.nw_sandbox={}))}(n=t.ipc||(t.ipc={})),function(t){let e;!function(t){let e;!function(t){t.$types=t_vs_lib_213,t.$get=function(){return loaderFn("vslib/vs/base/parts/quickopen/common/quickOpenScorer")}}(e=t.quickOpenScorer||(t.quickOpenScorer={}))}(e=t.common||(t.common={}))}(s=t.quickopen||(t.quickopen={})),function(t){let e,n;!function(t){let e;!function(t){t.$types=t_vs_lib_214,t.$get=function(){return loaderFn("vslib/vs/base/parts/request/browser/request")}}(e=t.request||(t.request={}))}(e=t.browser||(t.browser={})),function(t){let e;!function(t){t.$types=t_vs_lib_215,t.$get=function(){return loaderFn("vslib/vs/base/parts/request/common/request")}}(e=t.request||(t.request={}))}(n=t.common||(t.common={}))}(i=t.request||(t.request={})),function(t){let e,n,s;!function(t){let e,n;!function(t){t.$types=t_vs_lib_216,t.$get=function(){return loaderFn("vslib/vs/base/parts/sandbox/common/electronTypes")}}(e=t.electronTypes||(t.electronTypes={})),function(t){t.$types=t_vs_lib_217,t.$get=function(){return loaderFn("vslib/vs/base/parts/sandbox/common/sandboxTypes")}}(n=t.sandboxTypes||(t.sandboxTypes={}))}(e=t.common||(t.common={})),function(t){let e;!function(t){t.$types=t_vs_lib_218,t.$get=function(){return loaderFn("vslib/vs/base/parts/sandbox/node/electronTypes")}}(e=t.electronTypes||(t.electronTypes={}))}(n=t.node||(t.node={})),function(t){let e,n;!function(t){t.$types=t_vs_lib_219,t.$get=function(){return loaderFn("vslib/vs/base/parts/sandbox/nw-sandbox/electronTypes")}}(e=t.electronTypes||(t.electronTypes={})),function(t){t.$types=t_vs_lib_220,t.$get=function(){return loaderFn("vslib/vs/base/parts/sandbox/nw-sandbox/globals")}}(n=t.globals||(t.globals={}))}(s=t.nw_sandbox||(t.nw_sandbox={}))}(o=t.sandbox||(t.sandbox={})),function(t){let e,n;!function(t){let e;!function(t){t.$types=t_vs_lib_221,t.$get=function(){return loaderFn("vslib/vs/base/parts/storage/common/storage")}}(e=t.storage||(t.storage={}))}(e=t.common||(t.common={})),function(t){let e;!function(t){t.$types=t_vs_lib_222,t.$get=function(){return loaderFn("vslib/vs/base/parts/storage/node/storage")}}(e=t.storage||(t.storage={}))}(n=t.node||(t.node={}))}(r=t.storage||(t.storage={}))}(i=t.parts||(t.parts={})),function(t){let e,n,s,i,o,r,l,_,b,c,a;!function(t){t.$types=t_vs_lib_223,t.$get=function(){return loaderFn("vslib/vs/base/ui/arrayext")}}(e=t.arrayext||(t.arrayext={})),function(t){t.$types=t_vs_lib_224,t.$get=function(){return loaderFn("vslib/vs/base/ui/dom")}}(n=t.dom||(t.dom={})),function(t){t.$types=t_vs_lib_225,t.$get=function(){return loaderFn("vslib/vs/base/ui/idlevalue")}}(s=t.idlevalue||(t.idlevalue={})),function(t){t.$types=t_vs_lib_226,t.$get=function(){return loaderFn("vslib/vs/base/ui/reactwidget")}}(i=t.reactwidget||(t.reactwidget={})),function(t){t.$types=t_vs_lib_227,t.$get=function(){return loaderFn("vslib/vs/base/ui/renderable")}}(o=t.renderable||(t.renderable={})),function(t){t.$types=t_vs_lib_228,t.$get=function(){return loaderFn("vslib/vs/base/ui/renderer")}}(r=t.renderer||(t.renderer={})),function(t){t.$types=t_vs_lib_229,t.$get=function(){return loaderFn("vslib/vs/base/ui/resize")}}(l=t.resize||(t.resize={})),function(t){t.$types=t_vs_lib_230,t.$get=function(){return loaderFn("vslib/vs/base/ui/utils")}}(_=t.utils||(t.utils={})),function(t){t.$types=t_vs_lib_231,t.$get=function(){return loaderFn("vslib/vs/base/ui/vd")}}(b=t.vd||(t.vd={})),function(t){t.$types=t_vs_lib_232,t.$get=function(){return loaderFn("vslib/vs/base/ui/vdwidget")}}(c=t.vdwidget||(t.vdwidget={})),function(t){t.$types=t_vs_lib_233,t.$get=function(){return loaderFn("vslib/vs/base/ui/view")}}(a=t.view||(t.view={}))}(o=t.ui||(t.ui={}))}(e=t.base||(t.base={})),function(t){let e;!function(t){let e;!function(t){let e,n,s,i,o,r;!function(t){t.$types=t_vs_lib_234,t.$get=function(){return loaderFn("vslib/vs/platform/instantiation/common/descriptors")}}(e=t.descriptors||(t.descriptors={})),function(t){t.$types=t_vs_lib_235,t.$get=function(){return loaderFn("vslib/vs/platform/instantiation/common/extensions")}}(n=t.extensions||(t.extensions={})),function(t){t.$types=t_vs_lib_236,t.$get=function(){return loaderFn("vslib/vs/platform/instantiation/common/graph")}}(s=t.graph||(t.graph={})),function(t){t.$types=t_vs_lib_237,t.$get=function(){return loaderFn("vslib/vs/platform/instantiation/common/instantiation")}}(i=t.instantiation||(t.instantiation={})),function(t){t.$types=t_vs_lib_238,t.$get=function(){return loaderFn("vslib/vs/platform/instantiation/common/instantiationService")}}(o=t.instantiationService||(t.instantiationService={})),function(t){t.$types=t_vs_lib_239,t.$get=function(){return loaderFn("vslib/vs/platform/instantiation/common/serviceCollection")}}(r=t.serviceCollection||(t.serviceCollection={}))}(e=t.common||(t.common={}))}(e=t.instantiation||(t.instantiation={}))}(n=t.platform||(t.platform={}))}(e=t.vs||(t.vs={}))}(vslib||(exports.vslib=vslib={}));const _loadTime=Date.now()-_initialTime,_lastCommit="026ac3ef6125da28d40a5c9f7a5f931faadbb0f3";function getLoader(){return loaderFn}function getInfo(){return{loadTime:_loadTime,lastCommit:_lastCommit}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.vsbase=void 0,exports.setGetVsBaseBundle=setGetVsBaseBundle;const librarybase_1=require("./librarybase");let _getvsBase,_vsBase;Object.defineProperty(exports,"vsbase",{enumerable:!0,get:function(){return librarybase_1.vslib}});const getLocalVsBaseBundle=()=>{if(!_vsBase)try{_vsBase=require("../../vendor/vslibrary/bundled/base.bundled.js")}catch(e){}return _vsBase};function setGetVsBaseBundle(e){_getvsBase=e}(0,librarybase_1.setLoaderFn)(e=>getLocalVsBaseBundle().editorbase.getLoad()(e));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ICompilewxmlService=void 0;const vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.ICompilewxmlService=createDecorator("ICompilewxmlService");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ElectronCompilewxmlService=void 0;const compileUtils_1=require("../node/compileUtils");async function compileUseWCCElectronNode(e){const{files:o,configSplit:l,cwd:n,configContent:i,isCut:c,genfuncName:t,hasWxs:s=!0,isPlugin:r,lazyloadConfig:a,replaceContent:m={}}=e,p=Date.now(),C=require("wcc-electron").wcc,u=await C({files:o,debugWXS:s,debug:!0,genfuncname:t,isPlugin:r,isCut:c,wxmlCompileConfig:i,wxmlCompileConfigSplit:l,replaceContent:m,cwd:n,lazyloadConfig:a});if(console.warn("[wcc-node] compile cost:",Date.now()-p),!a)return{code:u,name:t};const{generateFunctionContent:g,generateFunctionName:w}=u;return{pages:g,names:w}}class ElectronCompilewxmlService{compileWxml(e){return e.isMiniAppProject||Object.keys(e.replaceContent).length>0?compileUseWCCElectronNode(e):(0,compileUtils_1.compileUseWCC)(e)}async compileWxmlToGlassEasel(e){return await(0,compileUtils_1.compileWxmlToGlassEasel)(e)}}exports.ElectronCompilewxmlService=ElectronCompilewxmlService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileUseWCC=compileUseWCC,exports.compileWxmlToGlassEasel=compileWxmlToGlassEasel;const tslib_1=require("tslib"),getservice_1=tslib_1.__importDefault(require("../../common/getservice")),nativeModule_1=require("../../nativeModule/common/nativeModule"),genTempFileService_1=require("../../genTempFile/common/genTempFileService"),common_1=require("../../../utils/node/common"),tools_1=require("../../../utils/tools"),fs=require("fs"),path=require("path"),{spawn:spawn}=require("child_process");async function compileUseWCC(e){const{isCut:t,configContent:a,configSplit:n,files:s,genfuncName:i,cwd:o,hasWxs:l,lazyloadConfig:r,isPlugin:c}=e,u=Date.now();let m=["-d","--split",n,t?"-xc":"-cc",a];l&&m.unshift("-ds"),r&&(m=m.concat([t?"-lla":"-llw",r])),m=c?m.concat(s).concat(["-p","-gn",i]):m.concat(s).concat(["-gn",i]);const p=await(0,getservice_1.default)(genTempFileService_1.IGenTempFile).genPath(),g=(0,common_1.shouldUseConfigFile)(m);g&&fs.writeFileSync(p,m.join("\n"));const d=(0,getservice_1.default)(nativeModule_1.INativeModuleService),f=await d.getWXMLParsePath(),_=spawn(f,g?["--config-path",(0,tools_1.normalizePath)(p)]:m,{cwd:o}),w=[],h=[];return _.stdout.on("data",e=>{w.push(e)}),_.stderr.on("data",e=>{h.push(e)}),new Promise((e,t)=>{_.on("close",a=>{if(g&&fs.unlinkSync(p),console.warn("[wcc bindary] compile cost:",Date.now()-u),0===a){const a=Buffer.concat(w).toString();if(!r)return e({code:a,name:i});try{const{generateFunctionContent:t,generateFunctionName:n}=JSON.parse(a);return e({pages:t,names:n})}catch(e){return t(new Error("lazyload parse wxml fail: "+e))}}return t(new Error(Buffer.concat(h).toString()))})})}async function compileWxmlToGlassEasel(e){const t=(0,getservice_1.default)(nativeModule_1.INativeModuleService),a=await t.getWXMLParsePath(),n=(0,getservice_1.default)(genTempFileService_1.IGenTempFile).genPath(),s=path.join(await t.getGlassEaselLazyModulePath(),"glass_easel_template_compiler.js"),i=require("./compileglasseasel.js");return await i({taskName:"compileglasseasel",dataStr:JSON.stringify({wxmlParserPath:a,tempCompileConfigFilePath:n,wxmlAndWxsFiles:e.wxmlAndWxsFiles,glassEaselTemplateCompilerPath:s}),useBackup:!1})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NWCompilewxmlService=void 0;const compileUtils_1=require("../node/compileUtils");async function compileUseWCCNode(e){const{files:i,configSplit:o,cwd:l,configContent:n,isCut:c,genfuncName:t,hasWxs:s=!0,isPlugin:a,lazyloadConfig:m,replaceContent:p={}}=e,r=Date.now(),C=require("wcc").wcc,u=await C({files:i,debugWXS:s,debug:!0,genfuncname:t,isPlugin:a,isCut:c,wxmlCompileConfig:n,wxmlCompileConfigSplit:o,replaceContent:p,cwd:l,lazyloadConfig:m});if(console.warn("[wcc-node] compile cost:",Date.now()-r),!m)return{code:u,name:t};const{generateFunctionContent:g,generateFunctionName:w}=u;return{pages:g,names:w}}class NWCompilewxmlService{compileWxml(e){return e.isMiniAppProject||Object.keys(e.replaceContent).length>0?compileUseWCCNode(e):(0,compileUtils_1.compileUseWCC)(e)}async compileWxmlToGlassEasel(e){return await(0,compileUtils_1.compileWxmlToGlassEasel)(e)}}exports.NWCompilewxmlService=NWCompilewxmlService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebideCompilewxmlService=void 0;const runWcc_1=require("./pageFrameWasm/wcc/runWcc");async function compileUseWCC(e){const{files:n,configSplit:c,cwd:i,configContent:o,isCut:t,genfuncName:r,hasWxs:l=!0,isPlugin:s,lazyloadConfig:a,replaceContent:m={}}=e;let u;try{u=await(0,runWcc_1.runWcc)({files:n,debugWXS:l,debug:!0,genfuncName:r,isPlugin:s,isCut:t,configContent:o,configSplit:c,replaceContent:m,cwd:i,lazyloadConfig:a})}catch(e){throw e}if("true"!==(null==u?void 0:u.success))throw new Error(u.errmsg);if(u=u.content,!a)return{code:u,name:r};const{generateFunctionContent:p,generateFunctionName:g}=u;return{pages:p,names:g}}class WebideCompilewxmlService{compileWxml(e){return compileUseWCC(e)}async compileWxmlToGlassEasel(e){throw new Error("compileWxmlToGlassEasel is not implemented yet")}}exports.WebideCompilewxmlService=WebideCompilewxmlService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(){var e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r=e(t),i=0;i<r.length;i++)"default"!==r[i]&&__createBinding(n,t,r[i]);return __setModuleDefault(n,t),n}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.runWcc=runWcc,exports.testWcc=testWcc;const common_1=require("../../../../../utils/web/common"),wasmSpliter="_split_<><><>_split_";let ModuleWcc=null,wxmlCompileFunc=null;async function runWcc(e){if(!ModuleWcc){const e=await Promise.resolve().then(()=>__importStar(require("./wcc.wasm"))),t=await Promise.resolve().then(()=>__importStar(require("./wcc")));ModuleWcc=await t.default({wasmBinary:e.default})}wxmlCompileFunc||(wxmlCompileFunc=ModuleWcc.wxml_compile);const{files:t,configSplit:n,configContent:r,isCut:i,genfuncName:o,hasWxs:c=!0,isPlugin:l,lazyloadConfig:u,replaceContent:a={}}=e,s=t.map(e=>a[e]),m=wxmlCompileFunc(wasmSpliter,t.join(wasmSpliter),s.join(wasmSpliter),t.length,o,0,1,c?1:0,0,l?1:0,0,0,i?1:0,u?1:0,0,u,r,n);return(0,common_1.splitQuoteFromWASM)(m)}async function testWcc(){}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ICompilewxssService=void 0;const vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.ICompilewxssService=createDecorator("ICompilewxssService");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ElectronCompilewxssService=void 0;const compileUtils_1=require("../node/compileUtils"),cp=require("child_process");async function compileUseWCSCElectron(e){const c=Date.now(),s=require("wcc-electron").wcsc,o=await s(Object.assign(Object.assign({},e),{debug:!0}));return console.warn("[wcsc-node] compile cost:",Date.now()-c),o}class ElectronCompilewxssService{compileWxss(e){return e.isMiniAppProject||Object.keys(e.replaceContent).length>0?compileUseWCSCElectron(e):(0,compileUtils_1.compileUseWCSC)(e)}}exports.ElectronCompilewxssService=ElectronCompilewxssService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileUseWCSC=compileUseWCSC;const tslib_1=require("tslib"),nativeModule_1=require("../../nativeModule/common/nativeModule"),getservice_1=tslib_1.__importDefault(require("../../common/getservice")),genTempFileService_1=require("../../genTempFile/common/genTempFileService"),common_1=require("../../../utils/node/common"),tools_1=require("../../../utils/tools"),fs=require("fs"),cp=require("child_process");async function compileUseWCSC(e){const{files:t,pageCount:o,lazyload:i,cwd:n,subPackage:r=""}=e;if(!o)return{common:"",pageWxss:{}};const s=["-db","-pc",""+o].concat(t);r&&(s.push("--subpackage"),s.push(r.replace(/\/$/,""))),i&&s.push("-ll");const c=await(0,getservice_1.default)(genTempFileService_1.IGenTempFile).genPath(),l=(0,common_1.shouldUseConfigFile)(s);l&&fs.writeFileSync(c,s.join("\n"));const u=await(0,getservice_1.default)(nativeModule_1.INativeModuleService).getWXSSParsePath(),a=cp.spawn(u,l?["--config-path",(0,tools_1.normalizePath)(c)]:s,{cwd:n}),p=[],m=[];return a.stdout.on("data",e=>{p.push(e)}),a.stderr.on("data",e=>{m.push(e)}),new Promise((e,t)=>{a.on("close",o=>{if(l&&fs.unlinkSync(c),0===o){const t=Buffer.concat(p).toString();let o={};if(i)o=JSON.parse(t);else{const e=t.split("=");for(let t=0,i=e.length;t<i&&e[t+1];t+=2)o[e[t]]=e[t+1]}return e(o)}return t(new Error(Buffer.concat(m).toString()))})})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NWCompilewxssService=void 0;const compileUtils_1=require("../node/compileUtils"),cp=require("child_process");async function compileUseWCSCNode(e){const s=Date.now(),c=require("wcc").wcsc,i=await c(Object.assign(Object.assign({},e),{debug:!0}));return console.warn("[wcsc-node] compile cost:",Date.now()-s),i}class NWCompilewxssService{compileWxss(e){return e.isMiniAppProject||Object.keys(e.replaceContent).length>0?compileUseWCSCNode(e):(0,compileUtils_1.compileUseWCSC)(e)}}exports.NWCompilewxssService=NWCompilewxssService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebideCompilewxssService=void 0;const runWcsc_1=require("./pageFrameWasm/wcsc/runWcsc");async function compileUseWCSC(e){const{files:s,pageCount:c,cwd:i,lazyload:r,subPackage:o,replaceContent:t,isMiniAppProject:a}=e;let n;try{n=await(0,runWcsc_1.runWcsc)({files:s,pageCount:c,cwd:i,lazyload:r,subPackage:o,replaceContent:t,isMiniAppProject:a})}catch(e){throw e}return n}class WebideCompilewxssService{compileWxss(e){return compileUseWCSC(e)}}exports.WebideCompilewxssService=WebideCompilewxssService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.runWcscWasm=runWcscWasm,exports.runWcsc=runWcsc;const tslib_1=require("tslib"),common_1=require("../../../../../utils/web/common"),fs_1=tslib_1.__importDefault(require("fs")),path_1=tslib_1.__importDefault(require("path")),wasmSpliter="_split_<><><>_split_";let ModuleWcsc=null,wxssCompileFunc=null;async function runWcscWasm(e){if(!ModuleWcsc){const e=await Promise.resolve().then(()=>tslib_1.__importStar(require("./wcsc.wasm"))),t=await Promise.resolve().then(()=>tslib_1.__importStar(require("./wcsc")));ModuleWcsc=await t.default({wasmBinary:e.default})}wxssCompileFunc||(wxssCompileFunc=ModuleWcsc.wxss_compile);const{files:t,pageCount:s,lazyload:r,subPackage:o}=e,c=e.contents||[],l=[wasmSpliter,t.join(wasmSpliter),c.join(wasmSpliter),t.length,"",s,0,r?1:0,o?1:0,o||""],n=wxssCompileFunc(...l);return(0,common_1.splitQuoteFromWASM)(n)}function tranWcscResultToObject(e){const t=e.split("="),s={};for(let e=0,r=t.length;e<r&&t[e+1];e+=2)s[t[e]]=t[e+1];return s}async function runWcsc(e){var t;if(!e)throw Error("options is required");if("string"!=typeof e.subPackage&&delete e.subPackage,"boolean"!=typeof e.lazyload&&delete e.lazyload,!(null===(t=(e=Object.assign({files:[],contents:[],pageCount:0,cwd:"",replaceContent:{},debug:!1,classPrefix:"",lazyload:!1},e)).contents)||void 0===t?void 0:t.length)){const t=e.files.map(t=>"string"==typeof e.replaceContent[t]?e.replaceContent[t]:fs_1.default.readFileSync(path_1.default.resolve(e.cwd,t),"utf8"));e.contents=await Promise.all(t)||[]}let s;try{s=await runWcscWasm(e)}catch(e){throw new Error(e)}if("true"!==s.success){const e="[wcc-node] compile error: "+s.errmsg;throw new Error(e)}s=s.content;return e.lazyload?s:tranWcscResultToObject(s)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IConsoleDisplayService=void 0;const vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.IConsoleDisplayService=createDecorator("IConsoleDisplayService");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NWConsoleDisplayService=void 0;class NWConsoleDisplayService{setDisplay(e){this._display=e}display(e){var s;return null===(s=null==this?void 0:this._display)||void 0===s?void 0:s.call(this,e)}}exports.NWConsoleDisplayService=NWConsoleDisplayService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IFileUtilsManagerService=void 0;const vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.IFileUtilsManagerService=createDecorator("IFileUtilsManagerService");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NWFileUtilsManagerService=void 0;class NWFileUtilsManagerService{setProjectFileUtils(e){this._projectFileUtils=e}async projectFileUtils(e,i){var t;return await(null===(t=null==this?void 0:this._projectFileUtils)||void 0===t?void 0:t.call(this,e,i))}}exports.NWFileUtilsManagerService=NWFileUtilsManagerService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IFileService=void 0;const vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.IFileService=createDecorator("IFileService");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.devtoolsGenTempFile=void 0;const tslib_1=require("tslib"),fs=tslib_1.__importStar(require("fs")),path=tslib_1.__importStar(require("path")),appDirService_1=require("../../app/common/appDirService"),getservice_1=tslib_1.__importDefault(require("../../common/getservice")),common_1=require("../../../utils/common"),os=require("os");class devtoolsGenTempFile{async genPath(){if(fs.existsSync(os.tmpdir()))return path.join(os.tmpdir(),(0,common_1.random)());const e=await(0,getservice_1.default)(appDirService_1.IAppDirService).get("WeappCompileCache");return path.join(e,(0,common_1.random)())}}exports.devtoolsGenTempFile=devtoolsGenTempFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.nodeGenTempFile=void 0;const genTempFile_1=require("../../../utils/genTempFile");class nodeGenTempFile{async genPath(){return(0,genTempFile_1.genTempFile)().name}}exports.nodeGenTempFile=nodeGenTempFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IGenTempFile=void 0;const vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.IGenTempFile=createDecorator("IGenTempFile");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GenTempFileService=void 0;const genTempFile_devtools_1=require("../common/genTempFile.devtools");class GenTempFileService extends genTempFile_devtools_1.devtoolsGenTempFile{}exports.GenTempFileService=GenTempFileService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GenTempFileService=void 0;const genTempFile_node_1=require("../common/genTempFile.node");class GenTempFileService extends genTempFile_node_1.nodeGenTempFile{}exports.GenTempFileService=GenTempFileService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GenTempFileService=void 0;const genTempFile_devtools_1=require("../common/genTempFile.devtools");class GenTempFileService extends genTempFile_devtools_1.devtoolsGenTempFile{}exports.GenTempFileService=GenTempFileService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IGlobalService=void 0;const vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.IGlobalService=createDecorator("IGlobalService");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NWGlobalService=void 0;class NWGlobalService{setShowBuildLog2(i){this._showBuildLog2=i}setIsDev(i){this._isDev=i}setGetAppVersion(i){this._getAppVersion=i}async isDev(){var i;return await(null===(i=null==this?void 0:this._isDev)||void 0===i?void 0:i.call(this))}async getAppVersion(){var i;return await(null===(i=this._getAppVersion)||void 0===i?void 0:i.call(this))}async showBuildLog2(i,e,s,l=""){var o;return null===(o=null==this?void 0:this._showBuildLog2)||void 0===o?void 0:o.call(this,i,e,s,l)}}exports.NWGlobalService=NWGlobalService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IInitializeCheck=exports.EInitializeSteps=exports.EInitializeStepsStatus=void 0;const vsbase_1=require("../../common/vsbase"),{createDecorator:createDecorator}=vsbase_1.vsbase.vs.platform.instantiation.common.instantiation.$get();var EInitializeStepsStatus,EInitializeSteps;!function(e){e.initializing="initializing",e.ready="ready",e.failed="failed"}(EInitializeStepsStatus||(exports.EInitializeStepsStatus=EInitializeStepsStatus={})),function(e){e.BackendMessagecenterDone="BackendMessagecenterDone",e.RuntimeMessagecenterDone="RuntimeMessagecenterDone",e.EditorMessagecenterDone="EditorMessagecenterDone",e.BackendHasWorker="BackendHasWorker",e.BackendSummerWorkerLoaded="BackendSummerWorkerLoaded",e.BackendTaskWorkerLoaded="BackendTaskWorkerLoaded",e.BackendWCC="BackendWCC",e.BackendWCSC="BackendWCSC",e.DefaultCompileInFirstTime="DefaultCompileInFirstTime",e.RuntimeServiceWorker="RuntimeServiceWorker"}(EInitializeSteps||(exports.EInitializeSteps=EInitializeSteps={})),exports.IInitializeCheck=createDecorator("IInitializeCheck");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InitializeCheck=void 0;class InitializeCheck{notifiedStatus(e,i){}}exports.InitializeCheck=InitializeCheck;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|