miniprogram-ci 1.9.26 → 2.0.0
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 -166
- package/README.md +10 -5
- package/bin/.DS_Store +0 -0
- package/bin/miniprogram-ci.js +1 -1
- package/dist/@types/ci/checkCodeQuality.d.ts +2 -2
- package/dist/@types/ci/cloud/cloudapi.d.ts +7 -0
- package/dist/@types/ci/cloud/createTimeTrigger.d.ts +13 -0
- package/dist/@types/ci/cloud/uploadContainer.d.ts +71 -0
- package/dist/@types/ci/cloud/uploadFile.d.ts +9 -0
- package/dist/@types/ci/cloud/uploadFunction.d.ts +13 -0
- package/dist/@types/ci/cloud/utils.d.ts +17 -0
- package/dist/@types/ci/code-analyse.d.ts +1 -1
- package/dist/@types/ci/getcompiler.d.ts +5 -0
- package/dist/@types/ci/index.d.ts +39 -0
- package/dist/@types/ci/project.d.ts +1 -47
- package/dist/@types/ci/utils/codeDenpendencyQualityChecker.d.ts +1 -1
- package/dist/@types/ci/utils/tools.d.ts +5 -0
- package/dist/@types/cli/cmdForDonutH5.d.ts +22 -0
- package/dist/@types/common/cloud-api/src/apis/tcb/tcb.apis.d.ts +180 -0
- package/dist/@types/common/cloud-api/src/transaction/contracts/account.contracts.d.ts +2 -0
- package/dist/@types/common/cloud-api/src/transaction/contracts/contracts.d.ts +9 -0
- package/dist/@types/common/cloud-api/src/transaction/contracts/lowcode.contracts.d.ts +3 -0
- package/dist/@types/common/cloud-api/src/transaction/contracts/tcb.contracts.d.ts +183 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/account.validations.d.ts +2 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/common.validations.d.ts +118 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/lowcode.validations.d.ts +3 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/tcb.validations.d.ts +188 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/validations.d.ts +8 -0
- package/dist/@types/common/code-analyse/index.d.ts +371 -0
- package/dist/@types/config/compiletype.config.d.ts +17 -0
- package/dist/@types/config/config.d.ts +93 -0
- package/dist/@types/config/define.d.ts +5 -0
- package/dist/@types/config/url.config.d.ts +25 -0
- package/dist/@types/index.d.ts +27 -38
- package/dist/@types/modules/corecompiler/baseCompiler.d.ts +132 -0
- package/dist/@types/modules/corecompiler/original/analyse/partial.d.ts +25 -0
- package/dist/@types/modules/corecompiler/original/compile/common.d.ts +17 -0
- package/dist/@types/modules/corecompiler/original/compile/game.d.ts +5 -0
- package/dist/@types/modules/corecompiler/original/compile/gamePlugin.d.ts +8 -0
- package/dist/@types/modules/corecompiler/original/compile/handler/js.d.ts +15 -0
- package/dist/@types/modules/corecompiler/original/compile/handler/mpjson.d.ts +10 -0
- package/dist/@types/modules/corecompiler/original/compile/handler/wxml.d.ts +9 -0
- package/dist/@types/modules/corecompiler/original/compile/handler/wxss.d.ts +10 -0
- package/dist/@types/modules/corecompiler/original/compile/index.d.ts +5 -0
- package/dist/@types/modules/corecompiler/original/compile/miniprogram.d.ts +5 -0
- package/dist/@types/modules/corecompiler/original/compile/miniprogramPlugin.d.ts +8 -0
- package/dist/@types/modules/corecompiler/original/index.d.ts +51 -0
- package/dist/@types/modules/corecompiler/original/js/index.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/js/minifyjs.d.ts +16 -0
- package/dist/@types/modules/corecompiler/original/js/minifyjsAfterWrap.d.ts +12 -0
- package/dist/@types/modules/corecompiler/original/json/app/appJSON.d.ts +6 -0
- package/dist/@types/modules/corecompiler/original/json/app/checkAppFields.d.ts +43 -0
- package/dist/@types/modules/corecompiler/original/json/app/extJSON.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/json/app/index.d.ts +4 -0
- package/dist/@types/modules/corecompiler/original/json/common.d.ts +19 -0
- package/dist/@types/modules/corecompiler/original/json/game.d.ts +4 -0
- package/dist/@types/modules/corecompiler/original/json/page/checkPageJSON.d.ts +6 -0
- package/dist/@types/modules/corecompiler/original/json/page/getPageJSON.d.ts +14 -0
- package/dist/@types/modules/corecompiler/original/json/plugin/plugin.d.ts +12 -0
- package/dist/@types/modules/corecompiler/original/json/plugin/pluginPage.d.ts +9 -0
- package/dist/@types/modules/corecompiler/original/json/projectconfig.d.ts +2 -0
- package/dist/@types/modules/corecompiler/original/json/reactiveCache.d.ts +24 -0
- package/dist/@types/modules/corecompiler/original/json/signaturejson.d.ts +21 -0
- package/dist/@types/modules/corecompiler/original/json/sitemap.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/json/theme.d.ts +18 -0
- package/dist/@types/modules/corecompiler/original/npm/packnpm.d.ts +13 -0
- package/dist/@types/modules/corecompiler/original/protect/uglifyfilenames.d.ts +9 -0
- package/dist/@types/modules/corecompiler/original/utils/env.d.ts +7 -0
- package/dist/@types/modules/corecompiler/original/validate/appjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/extjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/gamejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/gamepluginjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/pagejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/pluginjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/pluginpagejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/projectconfig.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/schemaValidate.d.ts +8 -0
- package/dist/@types/modules/corecompiler/original/validate/signaturejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/sitemapjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/workerThread/childprocessManager.d.ts +16 -0
- package/dist/@types/modules/corecompiler/original/workerThread/index.d.ts +4 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/compilejs.d.ts +43 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/compilewxss.d.ts +21 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/index.d.ts +2 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/minifywxml.d.ts +46 -0
- package/dist/@types/modules/corecompiler/original/workerThread/workerManager.d.ts +19 -0
- package/dist/@types/modules/corecompiler/originalCompiler.d.ts +106 -0
- package/dist/@types/modules/corecompiler/summer/graph/appconf.d.ts +36 -0
- package/dist/@types/modules/corecompiler/summer/graph/appgraph.d.ts +24 -0
- package/dist/@types/modules/corecompiler/summer/graph/baseconf.d.ts +16 -0
- package/dist/@types/modules/corecompiler/summer/graph/basegraph.d.ts +88 -0
- package/dist/@types/modules/corecompiler/summer/graph/gameconf.d.ts +20 -0
- package/dist/@types/modules/corecompiler/summer/graph/gamegraph.d.ts +24 -0
- package/dist/@types/modules/corecompiler/summer/graph/gamepluginconf.d.ts +11 -0
- package/dist/@types/modules/corecompiler/summer/graph/gameplugingraph.d.ts +23 -0
- package/dist/@types/modules/corecompiler/summer/graph/pluginconf.d.ts +21 -0
- package/dist/@types/modules/corecompiler/summer/graph/plugingraph.d.ts +23 -0
- package/dist/@types/modules/corecompiler/summer/graph/util.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/index.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/initPlugin.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/module.d.ts +44 -0
- package/dist/@types/modules/corecompiler/summer/persistCache.d.ts +13 -0
- package/dist/@types/modules/corecompiler/summer/pluginDriver.d.ts +45 -0
- package/dist/@types/modules/corecompiler/summer/pluginconfig.d.ts +4 -0
- package/dist/@types/modules/corecompiler/summer/plugins/base/es6module.d.ts +21 -0
- package/dist/@types/modules/corecompiler/summer/plugins/base/javascript.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/plugins/base/swc.d.ts +6 -0
- package/dist/@types/modules/corecompiler/summer/plugins/base/wxss.d.ts +6 -0
- package/dist/@types/modules/corecompiler/summer/plugins/enhance.d.ts +4 -0
- package/dist/@types/modules/corecompiler/summer/plugins/less.d.ts +5 -0
- package/dist/@types/modules/corecompiler/summer/plugins/minifywxml.d.ts +5 -0
- package/dist/@types/modules/corecompiler/summer/plugins/sass.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/plugins/terser.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/plugins/typescript.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/plugins/worklet.d.ts +4 -0
- package/dist/@types/modules/corecompiler/summer/resolver.d.ts +29 -0
- package/dist/@types/modules/corecompiler/summer/summer.d.ts +40 -0
- package/dist/@types/modules/corecompiler/summer/utils/ensureArray.d.ts +1 -0
- package/dist/@types/modules/corecompiler/summer/utils/inputsourcemap.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/worker.d.ts +16 -0
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +121 -0
- package/dist/@types/modules/createSummer.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/app/app.d.ts +74 -0
- package/dist/@types/modules/fullcompiler/app/contactandlaunch/originalcontactbase64.d.ts +2 -0
- package/dist/@types/modules/fullcompiler/app/contactandlaunch/originallaunchbase64.d.ts +2 -0
- package/dist/@types/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.d.ts +2 -0
- package/dist/@types/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +4 -0
- package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +9 -0
- package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +32 -0
- package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +7 -0
- package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +13 -0
- package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +48 -0
- package/dist/@types/modules/fullcompiler/filerules.d.ts +5 -0
- package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/index.d.ts +28 -0
- package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +13 -0
- package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +21 -0
- package/dist/@types/modules/fullcompiler/trans/wcc/index.d.ts +2 -0
- package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +14 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +14 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +9 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/handleError.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +41 -0
- package/dist/@types/modules/fullcompiler/utils/index.d.ts +4 -0
- package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +23 -0
- package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +40 -0
- package/dist/@types/modules/fullcompiler/utils/tools.d.ts +15 -0
- package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +1 -0
- package/dist/@types/modules/index.d.ts +52 -0
- package/dist/@types/modules/nativecompiler/android/adb.d.ts +7 -0
- package/dist/@types/modules/nativecompiler/android/device.d.ts +15 -0
- package/dist/@types/modules/nativecompiler/android/index.d.ts +17 -0
- package/dist/@types/modules/nativecompiler/android/projectconfig.d.ts +11 -0
- package/dist/@types/modules/nativecompiler/index.d.ts +32 -0
- package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +56 -0
- package/dist/@types/modules/nativecompiler/ios/device.d.ts +24 -0
- package/dist/@types/modules/nativecompiler/ios/index.d.ts +52 -0
- package/dist/@types/modules/nativecompiler/ios/projectconfig.d.ts +3 -0
- package/dist/@types/modules/nativecompiler/nativeCompiler.d.ts +40 -0
- package/dist/@types/modules/nativecompiler/nativeEntryProcess.d.ts +1 -0
- package/dist/@types/modules/precompiler/conditioncompile/compiler/base.d.ts +27 -0
- package/dist/@types/modules/precompiler/conditioncompile/compiler/json.d.ts +10 -0
- package/dist/@types/modules/precompiler/conditioncompile/compiler/macro.d.ts +44 -0
- package/dist/@types/modules/precompiler/conditioncompile/compiler/plant.d.ts +10 -0
- package/dist/@types/modules/precompiler/conditioncompile/define.d.ts +18 -0
- package/dist/@types/modules/precompiler/conditioncompile/index.d.ts +24 -0
- package/dist/@types/modules/precompiler/index.d.ts +10 -0
- package/dist/@types/project/advance/precompileProject.d.ts +35 -0
- package/dist/@types/project/advance/reactiveProject.d.ts +39 -0
- package/dist/@types/project/baseProject.d.ts +74 -0
- package/dist/@types/project/ciProject.d.ts +25 -0
- package/dist/@types/project/ciProjectWithMockBuffer.d.ts +11 -0
- package/dist/@types/project/devtoolsProject.d.ts +11 -0
- package/dist/@types/project/summerCPProject.d.ts +14 -0
- package/dist/@types/project/webProject.d.ts +10 -0
- package/dist/@types/types/ci.d.ts +182 -0
- package/dist/@types/types/core.d.ts +129 -0
- package/dist/@types/types/devtools.d.ts +220 -0
- package/dist/@types/types/index.d.ts +5 -169
- package/dist/@types/types/miniapp/index.d.ts +246 -0
- package/dist/@types/types/miniprogram-json/app.d.ts +26 -11
- package/dist/@types/types/miniprogram-json/index.d.ts +1 -0
- package/dist/@types/types/miniprogram-json/page.d.ts +5 -1
- package/dist/@types/types/miniprogram-json/plugin.d.ts +6 -1
- package/dist/@types/types/miniprogram-json/projectconfig.d.ts +6 -9
- package/dist/@types/types/summer.d.ts +161 -0
- package/dist/@types/utils/babel_helper.d.ts +7 -4
- package/dist/@types/utils/babel_plugin_worklet.d.ts +0 -1
- package/dist/@types/utils/codesign.d.ts +19 -0
- package/dist/@types/utils/common.d.ts +2 -4
- package/dist/@types/utils/cp.d.ts +3 -0
- package/dist/@types/utils/customError.d.ts +22 -0
- package/dist/@types/utils/download.d.ts +1 -0
- package/dist/@types/utils/env.d.ts +2 -0
- package/dist/@types/utils/expression.d.ts +61 -0
- package/dist/@types/utils/filerules.d.ts +0 -0
- package/dist/@types/utils/fs.d.ts +3 -3
- package/dist/@types/utils/fsagent.d.ts +9 -9
- package/dist/@types/utils/generateIpa.d.ts +2 -0
- package/dist/@types/utils/helper_util.d.ts +11 -0
- package/dist/@types/utils/interruptibletask.d.ts +4 -4
- package/dist/@types/utils/jsonlint.d.ts +2 -2
- package/dist/@types/utils/locales/locales.d.ts +18 -0
- package/dist/@types/utils/locales/zh.d.ts +18 -0
- package/dist/@types/utils/log.d.ts +13 -19
- package/dist/@types/utils/messageHub.d.ts +17 -0
- package/dist/@types/utils/miniapp-builder.d.ts +68 -0
- package/dist/@types/utils/miniappJson.d.ts +151 -0
- package/dist/@types/utils/packOptionsHelper.d.ts +17 -0
- package/dist/@types/utils/progressRecorder.d.ts +14 -0
- package/dist/@types/utils/request.d.ts +4 -4
- package/dist/@types/utils/signature.d.ts +13 -0
- package/dist/@types/utils/singletontask.d.ts +29 -0
- package/dist/@types/utils/subprocess/entryProcess.d.ts +7 -0
- package/dist/@types/utils/subprocess/processManager.d.ts +25 -0
- package/dist/@types/utils/swc_config.d.ts +3 -0
- package/dist/@types/utils/swc_helper.d.ts +11 -0
- package/dist/@types/utils/taskmanager.d.ts +22 -0
- package/dist/@types/utils/taskqueue.d.ts +0 -0
- package/dist/@types/utils/taskstatus.d.ts +2 -2
- package/dist/@types/utils/tools.d.ts +16 -1
- package/dist/@types/utils/waitable.d.ts +12 -0
- package/dist/@types/utils/wxapkg/pack.d.ts +7 -0
- package/dist/@types/utils/zip.d.ts +3 -0
- package/dist/ci/checkCodeQuality.js +1 -3
- package/dist/ci/cloud/cloudapi.js +1 -0
- package/dist/ci/cloud/createTimeTrigger.js +1 -0
- package/dist/ci/cloud/uploadContainer.js +1 -0
- package/dist/ci/cloud/uploadFile.js +1 -0
- package/dist/ci/cloud/uploadFunction.js +1 -0
- package/dist/ci/cloud/utils.js +1 -0
- package/dist/ci/code-analyse.js +1 -3
- package/dist/ci/cos-upload.js +1 -3
- package/dist/ci/getCompiledResult.js +1 -3
- package/dist/ci/getDevSourceMap.js +1 -3
- package/dist/ci/getLatestVersion.js +1 -3
- package/dist/ci/getcompiler.js +1 -0
- package/dist/ci/index.js +1 -0
- package/dist/ci/jsserver.js +1 -3
- package/dist/ci/preview.js +1 -3
- package/dist/ci/project.js +1 -3
- package/dist/ci/projectattr.js +1 -3
- package/dist/ci/upload.js +1 -3
- package/dist/ci/utils/codeDenpendencyQualityChecker.js +1 -3
- package/dist/ci/utils/filterUnusedFile.js +1 -3
- package/dist/ci/utils/pack.js +1 -3
- package/dist/ci/utils/packfile.js +1 -3
- package/dist/ci/utils/qualitycheckoption.js +1 -3
- package/dist/ci/utils/terminalQrcode.js +1 -3
- package/dist/ci/utils/tools.js +1 -0
- package/dist/cli/index.js +1 -0
- package/dist/common/cloud-api/index.js +279 -0
- package/dist/common/cloud-api/src/apis/apis.js +1 -0
- package/dist/common/cloud-api/src/apis/cdn/cdn.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/cdn/index.js +1 -0
- package/dist/common/cloud-api/src/apis/flexdb/flexdb.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/flexdb/index.js +1 -0
- package/dist/common/cloud-api/src/apis/scf/index.js +1 -0
- package/dist/common/cloud-api/src/apis/scf/scf.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/ssl/index.js +1 -0
- package/dist/common/cloud-api/src/apis/ssl/ssl.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/tcb/general.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/tcb/index.js +1 -0
- package/dist/common/cloud-api/src/apis/tcb/tcb.apis.js +1 -0
- package/dist/common/cloud-api/src/index.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/account.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/cdn.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/factory.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/flexdb.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/lowcode.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/scf.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/ssl.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/tcb.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/transactor.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/account.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/cdn.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/common.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/flexdb.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/lowcode.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/scf.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/ssl.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/tcb.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/validations.js +1 -0
- package/dist/common/cloud-api/src/utils/common.js +1 -0
- package/dist/common/cloud-api/src/utils/validator.js +1 -0
- package/dist/common/code-analyse/index.js +2 -0
- package/dist/config/compiletype.config.js +1 -0
- package/dist/config/config.js +1 -0
- package/dist/config/define.js +1 -0
- package/dist/config/url.config.js +1 -0
- package/dist/index.js +1 -3
- package/dist/manifest.json +2 -2
- package/dist/modules/corecompiler/baseCompiler.js +1 -0
- package/dist/modules/corecompiler/original/analyse/partial.js +1 -0
- package/dist/modules/corecompiler/original/compile/common.js +1 -0
- package/dist/modules/corecompiler/original/compile/game.js +1 -0
- package/dist/modules/corecompiler/original/compile/gamePlugin.js +1 -0
- package/dist/modules/corecompiler/original/compile/handler/js.js +1 -0
- package/dist/modules/corecompiler/original/compile/handler/mpjson.js +1 -0
- package/dist/modules/corecompiler/original/compile/handler/wxml.js +1 -0
- package/dist/modules/corecompiler/original/compile/handler/wxss.js +1 -0
- package/dist/modules/corecompiler/original/compile/index.js +1 -0
- package/dist/modules/corecompiler/original/compile/miniprogram.js +1 -0
- package/dist/modules/corecompiler/original/compile/miniprogramPlugin.js +1 -0
- package/dist/modules/corecompiler/original/index.js +1 -0
- package/dist/modules/corecompiler/original/js/enhance.js +1 -0
- package/dist/modules/corecompiler/original/js/es6Transform.js +1 -0
- package/dist/modules/corecompiler/original/js/index.js +1 -0
- package/dist/modules/corecompiler/original/js/minifyjs.js +1 -0
- package/dist/modules/corecompiler/original/js/minifyjsAfterWrap.js +1 -0
- package/dist/modules/corecompiler/original/js/workletCompile.js +1 -0
- package/dist/modules/corecompiler/original/json/app/appJSON.js +1 -0
- package/dist/modules/corecompiler/original/json/app/checkAppFields.js +1 -0
- package/dist/modules/corecompiler/original/json/app/extJSON.js +1 -0
- package/dist/modules/corecompiler/original/json/app/index.js +1 -0
- package/dist/modules/corecompiler/original/json/common.js +1 -0
- package/dist/modules/corecompiler/original/json/game.js +1 -0
- package/dist/modules/corecompiler/original/json/page/checkPageJSON.js +1 -0
- package/dist/modules/corecompiler/original/json/page/getPageJSON.js +1 -0
- package/dist/modules/corecompiler/original/json/plugin/plugin.js +1 -0
- package/dist/modules/corecompiler/original/json/plugin/pluginPage.js +1 -0
- package/dist/modules/corecompiler/original/json/projectconfig.js +1 -0
- package/dist/modules/corecompiler/original/json/reactiveCache.js +1 -0
- package/dist/modules/corecompiler/original/json/signaturejson.js +1 -0
- package/dist/modules/corecompiler/original/json/sitemap.js +1 -0
- package/dist/modules/corecompiler/original/json/theme.js +1 -0
- package/dist/modules/corecompiler/original/npm/filterdeps.js +1 -0
- package/dist/modules/corecompiler/original/npm/packnpm.js +1 -0
- package/dist/modules/corecompiler/original/protect/fileFlatter.js +1 -0
- package/dist/modules/corecompiler/original/protect/uglifyfilenames.js +1 -0
- package/dist/modules/corecompiler/original/utils/env.js +1 -0
- package/dist/modules/corecompiler/original/utils/logger.js +1 -0
- package/dist/modules/corecompiler/original/validate/appjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/extjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/gamejson.js +1 -0
- package/dist/modules/corecompiler/original/validate/gamepluginjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/pagejson.js +1 -0
- package/dist/modules/corecompiler/original/validate/pluginjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/pluginpagejson.js +1 -0
- package/dist/modules/corecompiler/original/validate/projectconfig.js +1 -0
- package/dist/modules/corecompiler/original/validate/schemaValidate.js +1 -0
- package/dist/modules/corecompiler/original/validate/signaturejson.js +1 -0
- package/dist/modules/corecompiler/original/validate/sitemapjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/validate.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/childprocess.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/childprocessManager.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/fork.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/index.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/task/compilejs.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/task/compilewxss.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/task/minifywxml.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/worker.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/workerManager.js +1 -0
- package/dist/modules/corecompiler/originalCompiler.js +1 -0
- package/dist/modules/corecompiler/summer/graph/appconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/appgraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/baseconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/basegraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/gameconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/gamegraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/gamepluginconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/gameplugingraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/pluginconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/plugingraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/util.js +1 -0
- package/dist/modules/corecompiler/summer/index.js +1 -0
- package/dist/modules/corecompiler/summer/initPlugin.js +1 -0
- package/dist/modules/corecompiler/summer/module.js +1 -0
- package/dist/modules/corecompiler/summer/persistCache.js +1 -0
- package/dist/modules/corecompiler/summer/pluginDriver.js +1 -0
- package/dist/modules/corecompiler/summer/pluginconfig.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/base/es6module.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/base/javascript.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/base/swc.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/base/wxss.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/enhance.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/index.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/less.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/minifywxml.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/sass.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/terser.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/typescript.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/worklet.js +1 -0
- package/dist/modules/corecompiler/summer/resolver.js +1 -0
- package/dist/modules/corecompiler/summer/summer.js +1 -0
- package/dist/modules/corecompiler/summer/utils/async.js +1 -0
- package/dist/modules/corecompiler/summer/utils/ensureArray.js +1 -0
- package/dist/modules/corecompiler/summer/utils/inputsourcemap.js +1 -0
- package/dist/modules/corecompiler/summer/worker.js +1 -0
- package/dist/modules/corecompiler/summerCompiler.js +1 -0
- package/dist/modules/corecompiler/summerEntryProcess.js +1 -0
- package/dist/modules/createSummer.js +1 -0
- package/dist/modules/fullcompiler/app/app.js +1 -0
- package/dist/modules/fullcompiler/app/contactandlaunch/originalcontactbase64.js +1 -0
- package/dist/modules/fullcompiler/app/contactandlaunch/originallaunchbase64.js +1 -0
- package/dist/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.js +1 -0
- package/dist/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.js +1 -0
- package/dist/modules/fullcompiler/appservice/appservice.config.js +1 -0
- package/dist/modules/fullcompiler/appservice/generatecode.utils.js +1 -0
- package/dist/modules/fullcompiler/appservice/getappservice.js +1 -0
- package/dist/modules/fullcompiler/appservice/getcompiledjs.js +1 -0
- package/dist/modules/fullcompiler/appservice/getjsfile.js +1 -0
- package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +1 -0
- package/dist/modules/fullcompiler/appservice/getsubpackage.js +1 -0
- package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +1 -0
- package/dist/modules/fullcompiler/appservice/getwxappcode.js +1 -0
- package/dist/modules/fullcompiler/config/apperrcode.config.js +1 -0
- package/dist/modules/fullcompiler/filerules.js +1 -0
- package/dist/modules/fullcompiler/getallrawfiles.js +1 -0
- package/dist/modules/fullcompiler/getallwmltohtmlmap.js +1 -0
- package/dist/modules/fullcompiler/index.js +1 -0
- package/dist/modules/fullcompiler/pageframe/getsubpackage.js +1 -0
- package/dist/modules/fullcompiler/pageframe/getwxappcode.js +1 -0
- package/dist/modules/fullcompiler/pageframe/index.js +1 -0
- package/dist/modules/fullcompiler/trans/transwxmltojs.js +1 -0
- package/dist/modules/fullcompiler/trans/transwxsstojs.js +1 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/index.js +1 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/addonVersion.js +19 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/index.js +4 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/util.js +1134 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/wcc.js +94 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/wcsc.js +93 -0
- package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +1 -0
- package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/appjson.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +1 -0
- package/dist/modules/fullcompiler/utils/filewriter/index.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/handleError.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +1 -0
- package/dist/modules/fullcompiler/utils/index.js +1 -0
- package/dist/modules/fullcompiler/utils/taskmanager.js +1 -0
- package/dist/modules/fullcompiler/utils/theme/index.js +1 -0
- package/dist/modules/fullcompiler/utils/tools.js +1 -0
- package/dist/modules/fullcompiler/utils/transformsourcemap.js +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/nativecompiler/android/adb.js +1 -0
- package/dist/modules/nativecompiler/android/device.js +1 -0
- package/dist/modules/nativecompiler/android/index.js +1 -0
- package/dist/modules/nativecompiler/android/projectconfig.js +1 -0
- package/dist/modules/nativecompiler/index.js +1 -0
- package/dist/modules/nativecompiler/ios/buildCloud.js +1 -0
- package/dist/modules/nativecompiler/ios/device.js +1 -0
- package/dist/modules/nativecompiler/ios/index.js +1 -0
- package/dist/modules/nativecompiler/ios/projectconfig.js +1 -0
- package/dist/modules/nativecompiler/nativeCompiler.js +1 -0
- package/dist/modules/nativecompiler/nativeEntryProcess.js +1 -0
- package/dist/modules/precompiler/conditioncompile/compiler/base.js +1 -0
- package/dist/modules/precompiler/conditioncompile/compiler/json.js +1 -0
- package/dist/modules/precompiler/conditioncompile/compiler/macro.js +1 -0
- package/dist/modules/precompiler/conditioncompile/compiler/plant.js +1 -0
- package/dist/modules/precompiler/conditioncompile/define.js +1 -0
- package/dist/modules/precompiler/conditioncompile/index.js +1 -0
- package/dist/modules/precompiler/index.js +1 -0
- package/dist/project/advance/precompileProject.js +1 -0
- package/dist/project/advance/reactiveProject.js +1 -0
- package/dist/project/baseProject.js +1 -0
- package/dist/project/ciProject.js +1 -0
- package/dist/project/ciProjectWithMockBuffer.js +1 -0
- package/dist/project/devtoolsProject.js +1 -0
- package/dist/project/summerCPProject.js +1 -0
- package/dist/project/webProject.js +1 -0
- package/dist/schema/dist/app.js +2221 -0
- package/dist/schema/dist/ext.js +1088 -0
- package/dist/schema/dist/game.js +211 -0
- package/dist/schema/dist/page.js +516 -0
- package/dist/schema/dist/plugin.js +53 -0
- package/dist/schema/dist/pluginpage.js +14 -0
- package/dist/schema/dist/projectconfig.js +655 -0
- package/dist/schema/dist/projectprivateconfig.js +371 -0
- package/dist/schema/dist/sitemap.js +53 -0
- package/dist/schema/dist/theme.js +20 -0
- package/dist/static/images/donut-icon1024x1024.png +0 -0
- package/dist/static/images/donut-icon120x120.png +0 -0
- package/dist/static/images/donut-icon152x152.png +0 -0
- package/dist/static/images/donut-icon167x167.png +0 -0
- package/dist/static/scripts/assetsCar/Assets.xcassets/AppIcon.appiconset/Contents.json +119 -0
- package/dist/static/scripts/assetsCar/Assets.xcassets/Contents.json +6 -0
- package/dist/static/scripts/assetsCar/Assets.xcassets/disconnect.imageset/Contents.json +21 -0
- package/dist/static/scripts/assetsCar/Assets.xcassets/disconnect.imageset/disconnect.png +0 -0
- package/dist/static/scripts/assetsCar/createAssetsCar +9 -0
- package/dist/static/scripts/checkXcodeEnv +18 -0
- package/dist/static/scripts/resignIpa +269 -0
- package/dist/types/ci.js +1 -0
- package/dist/types/core.js +1 -0
- package/dist/types/devtools.js +1 -0
- package/dist/types/index.js +1 -3
- package/dist/types/miniapp/index.js +1 -0
- package/dist/types/miniprogram-json/app.js +1 -3
- package/dist/types/miniprogram-json/base.js +1 -3
- package/dist/types/miniprogram-json/ext.js +1 -3
- package/dist/types/miniprogram-json/game.js +1 -3
- package/dist/types/miniprogram-json/index.js +1 -3
- package/dist/types/miniprogram-json/page.js +1 -3
- package/dist/types/miniprogram-json/plugin.js +1 -3
- package/dist/types/miniprogram-json/projectconfig.js +1 -3
- package/dist/types/miniprogram-json/sitemap.js +1 -3
- package/dist/types/miniprogram-json/theme.js +1 -3
- package/dist/types/summer.js +1 -0
- package/dist/utils/babel_helper.js +1 -3
- package/dist/utils/babel_plugin_worklet.js +1 -3
- package/dist/utils/babel_transform_plugin.js +1 -3
- package/dist/utils/cache.js +1 -3
- package/dist/utils/codesign.js +1 -0
- package/dist/utils/common.js +1 -3
- package/dist/utils/cp.js +1 -0
- package/dist/utils/customError.js +1 -0
- package/dist/utils/download.js +1 -0
- package/dist/utils/env.js +1 -0
- package/dist/utils/error.js +1 -3
- package/dist/utils/expression.js +1 -0
- package/dist/utils/filerules.js +1 -0
- package/dist/utils/fs.js +1 -3
- package/dist/utils/fsagent.js +1 -3
- package/dist/utils/generateIpa.js +1 -0
- package/dist/utils/glob.js +1 -3
- package/dist/utils/hackrequire/fs.js +1 -1
- package/dist/utils/hackrequire/module.js +1 -1
- package/dist/utils/helper_util.js +1 -0
- package/dist/utils/interruptibletask.js +1 -3
- package/dist/utils/jsonParse.js +1 -3
- package/dist/utils/jsonlint.js +1 -3
- package/dist/utils/locales/en.js +1 -3
- package/dist/utils/locales/fomatable_string.js +1 -3
- package/dist/utils/locales/locales.js +1 -3
- package/dist/utils/locales/zh.js +1 -3
- package/dist/utils/log.js +1 -3
- package/dist/utils/messageHub.js +1 -0
- package/dist/utils/miniapp-builder.js +1 -0
- package/dist/utils/miniappJson.js +1 -0
- package/dist/utils/packOptionsHelper.js +1 -0
- package/dist/utils/progressRecorder.js +1 -0
- package/dist/utils/report.js +1 -3
- package/dist/utils/request.js +1 -3
- package/dist/utils/sign.js +1 -3
- package/dist/utils/signature.js +1 -0
- package/dist/utils/singletontask.js +1 -0
- package/dist/utils/subprocess/entryProcess.js +1 -0
- package/dist/utils/subprocess/processManager.js +1 -0
- package/dist/utils/swc_config.js +1 -0
- package/dist/utils/swc_helper.js +1 -0
- package/dist/utils/taskmanager.js +1 -0
- package/dist/utils/taskqueue.js +1 -0
- package/dist/utils/taskstatus.js +1 -3
- package/dist/utils/tools.js +1 -3
- package/dist/utils/waitable.js +1 -0
- package/dist/utils/white_ext_list.js +1 -3
- package/dist/utils/wxapkg/pack.js +1 -0
- package/dist/utils/wxvpkgreader/wxvpkg/unpack/version0.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkg/unpack/version10.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkgreader.js +1 -1
- package/dist/utils/zip.js +1 -0
- package/dist/vendor/ios-deploy/ios-deploy +0 -0
- package/dist/vendor/swc_runtime/_apply_decorated_descriptor.js +1 -0
- package/dist/vendor/swc_runtime/_apply_decs_2203_r.js +1 -0
- package/dist/vendor/swc_runtime/_array_like_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_array_with_holes.js +1 -0
- package/dist/vendor/swc_runtime/_array_without_holes.js +1 -0
- package/dist/vendor/swc_runtime/_assert_this_initialized.js +1 -0
- package/dist/vendor/swc_runtime/_async_generator.js +1 -0
- package/dist/vendor/swc_runtime/_async_generator_delegate.js +1 -0
- package/dist/vendor/swc_runtime/_async_iterator.js +1 -0
- package/dist/vendor/swc_runtime/_async_to_generator.js +1 -0
- package/dist/vendor/swc_runtime/_await_async_generator.js +1 -0
- package/dist/vendor/swc_runtime/_await_value.js +1 -0
- package/dist/vendor/swc_runtime/_check_private_redeclaration.js +1 -0
- package/dist/vendor/swc_runtime/_class_apply_descriptor_destructure.js +1 -0
- package/dist/vendor/swc_runtime/_class_apply_descriptor_get.js +1 -0
- package/dist/vendor/swc_runtime/_class_apply_descriptor_set.js +1 -0
- package/dist/vendor/swc_runtime/_class_apply_descriptor_update.js +1 -0
- package/dist/vendor/swc_runtime/_class_call_check.js +1 -0
- package/dist/vendor/swc_runtime/_class_check_private_static_access.js +1 -0
- package/dist/vendor/swc_runtime/_class_check_private_static_field_descriptor.js +1 -0
- package/dist/vendor/swc_runtime/_class_extract_field_descriptor.js +1 -0
- package/dist/vendor/swc_runtime/_class_name_tdz_error.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_destructure.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_get.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_init.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_loose_base.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_loose_key.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_set.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_update.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_method_get.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_method_init.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_method_set.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_field_destructure.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_field_spec_get.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_field_spec_set.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_field_update.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_method_get.js +1 -0
- package/dist/vendor/swc_runtime/_construct.js +1 -0
- package/dist/vendor/swc_runtime/_create_class.js +1 -0
- package/dist/vendor/swc_runtime/_create_for_of_iterator_helper_loose.js +1 -0
- package/dist/vendor/swc_runtime/_create_super.js +1 -0
- package/dist/vendor/swc_runtime/_decorate.js +1 -0
- package/dist/vendor/swc_runtime/_defaults.js +1 -0
- package/dist/vendor/swc_runtime/_define_enumerable_properties.js +1 -0
- package/dist/vendor/swc_runtime/_define_property.js +1 -0
- package/dist/vendor/swc_runtime/_dispose.js +1 -0
- package/dist/vendor/swc_runtime/_export_star.js +1 -0
- package/dist/vendor/swc_runtime/_extends.js +1 -0
- package/dist/vendor/swc_runtime/_get.js +1 -0
- package/dist/vendor/swc_runtime/_get_prototype_of.js +1 -0
- package/dist/vendor/swc_runtime/_identity.js +1 -0
- package/dist/vendor/swc_runtime/_inherits.js +1 -0
- package/dist/vendor/swc_runtime/_inherits_loose.js +1 -0
- package/dist/vendor/swc_runtime/_initializer_define_property.js +1 -0
- package/dist/vendor/swc_runtime/_initializer_warning_helper.js +1 -0
- package/dist/vendor/swc_runtime/_instanceof.js +1 -0
- package/dist/vendor/swc_runtime/_interop_require_default.js +1 -0
- package/dist/vendor/swc_runtime/_interop_require_wildcard.js +1 -0
- package/dist/vendor/swc_runtime/_is_native_function.js +1 -0
- package/dist/vendor/swc_runtime/_is_native_reflect_construct.js +1 -0
- package/dist/vendor/swc_runtime/_iterable_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_iterable_to_array_limit.js +1 -0
- package/dist/vendor/swc_runtime/_iterable_to_array_limit_loose.js +1 -0
- package/dist/vendor/swc_runtime/_jsx.js +1 -0
- package/dist/vendor/swc_runtime/_new_arrow_check.js +1 -0
- package/dist/vendor/swc_runtime/_non_iterable_rest.js +1 -0
- package/dist/vendor/swc_runtime/_non_iterable_spread.js +1 -0
- package/dist/vendor/swc_runtime/_object_destructuring_empty.js +1 -0
- package/dist/vendor/swc_runtime/_object_spread.js +1 -0
- package/dist/vendor/swc_runtime/_object_spread_props.js +1 -0
- package/dist/vendor/swc_runtime/_object_without_properties.js +1 -0
- package/dist/vendor/swc_runtime/_object_without_properties_loose.js +1 -0
- package/dist/vendor/swc_runtime/_possible_constructor_return.js +1 -0
- package/dist/vendor/swc_runtime/_read_only_error.js +1 -0
- package/dist/vendor/swc_runtime/_set.js +1 -0
- package/dist/vendor/swc_runtime/_set_prototype_of.js +1 -0
- package/dist/vendor/swc_runtime/_skip_first_generator_next.js +1 -0
- package/dist/vendor/swc_runtime/_sliced_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_sliced_to_array_loose.js +1 -0
- package/dist/vendor/swc_runtime/_super_prop_base.js +1 -0
- package/dist/vendor/swc_runtime/_tagged_template_literal.js +1 -0
- package/dist/vendor/swc_runtime/_tagged_template_literal_loose.js +1 -0
- package/dist/vendor/swc_runtime/_throw.js +1 -0
- package/dist/vendor/swc_runtime/_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_to_consumable_array.js +1 -0
- package/dist/vendor/swc_runtime/_to_primitive.js +1 -0
- package/dist/vendor/swc_runtime/_to_property_key.js +1 -0
- package/dist/vendor/swc_runtime/_ts_decorate.js +1 -0
- package/dist/vendor/swc_runtime/_ts_generator.js +1 -0
- package/dist/vendor/swc_runtime/_ts_metadata.js +1 -0
- package/dist/vendor/swc_runtime/_ts_param.js +1 -0
- package/dist/vendor/swc_runtime/_ts_values.js +1 -0
- package/dist/vendor/swc_runtime/_type_of.js +1 -0
- package/dist/vendor/swc_runtime/_unsupported_iterable_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_update.js +1 -0
- package/dist/vendor/swc_runtime/_using.js +1 -0
- package/dist/vendor/swc_runtime/_wrap_async_generator.js +1 -0
- package/dist/vendor/swc_runtime/_wrap_native_super.js +1 -0
- package/dist/vendor/swc_runtime/_write_only_error.js +1 -0
- package/dist/vendor/swc_runtime/index.js +1 -0
- package/package.json +46 -10
- package/dist/@types/cloud/cloudapi.d.ts +0 -7
- package/dist/@types/cloud/createTimeTrigger.d.ts +0 -13
- package/dist/@types/cloud/uploadContainer.d.ts +0 -71
- package/dist/@types/cloud/uploadFile.d.ts +0 -9
- package/dist/@types/cloud/uploadFunction.d.ts +0 -13
- package/dist/@types/cloud/utils.d.ts +0 -17
- package/dist/@types/config.d.ts +0 -78
- package/dist/@types/core/analyse/partial.d.ts +0 -25
- package/dist/@types/core/compile/common.d.ts +0 -17
- package/dist/@types/core/compile/game.d.ts +0 -5
- package/dist/@types/core/compile/game_plugin.d.ts +0 -8
- package/dist/@types/core/compile/handler/js.d.ts +0 -15
- package/dist/@types/core/compile/handler/mpjson.d.ts +0 -10
- package/dist/@types/core/compile/handler/wxml.d.ts +0 -9
- package/dist/@types/core/compile/handler/wxss.d.ts +0 -10
- package/dist/@types/core/compile/index.d.ts +0 -5
- package/dist/@types/core/compile/mini_program.d.ts +0 -5
- package/dist/@types/core/compile/mini_program_plugin.d.ts +0 -8
- package/dist/@types/core/js/index.d.ts +0 -3
- package/dist/@types/core/js/minifyjs.d.ts +0 -16
- package/dist/@types/core/js/minifyjs_after_wrap.d.ts +0 -12
- package/dist/@types/core/json/app/checkAppFields.d.ts +0 -42
- package/dist/@types/core/json/app/getAppJSON.d.ts +0 -10
- package/dist/@types/core/json/app/getExtJSON.d.ts +0 -5
- package/dist/@types/core/json/app/index.d.ts +0 -5
- package/dist/@types/core/json/common.d.ts +0 -20
- package/dist/@types/core/json/game.d.ts +0 -6
- package/dist/@types/core/json/page/checkPageJSON.d.ts +0 -6
- package/dist/@types/core/json/page/getPageJSON.d.ts +0 -10
- package/dist/@types/core/json/plugin/plugin.d.ts +0 -14
- package/dist/@types/core/json/plugin/plugin_page.d.ts +0 -9
- package/dist/@types/core/json/projectWithMockBuffer.d.ts +0 -14
- package/dist/@types/core/json/projectconfig.d.ts +0 -3
- package/dist/@types/core/json/reactiveCache.d.ts +0 -63
- package/dist/@types/core/json/signaturejson.d.ts +0 -21
- package/dist/@types/core/json/sitemap.d.ts +0 -5
- package/dist/@types/core/json/theme.d.ts +0 -20
- package/dist/@types/core/npm/packnpm.d.ts +0 -17
- package/dist/@types/core/protect/uglifyfilenames.d.ts +0 -9
- package/dist/@types/core/utils/env.d.ts +0 -6
- package/dist/@types/core/validate/appjson.d.ts +0 -3
- package/dist/@types/core/validate/extjson.d.ts +0 -3
- package/dist/@types/core/validate/gamejson.d.ts +0 -3
- package/dist/@types/core/validate/gamepluginjson.d.ts +0 -3
- package/dist/@types/core/validate/pagejson.d.ts +0 -3
- package/dist/@types/core/validate/pluginjson.d.ts +0 -3
- package/dist/@types/core/validate/pluginpagejson.d.ts +0 -3
- package/dist/@types/core/validate/projectconfig.d.ts +0 -3
- package/dist/@types/core/validate/schemaValidate.d.ts +0 -7
- package/dist/@types/core/validate/signaturejson.d.ts +0 -3
- package/dist/@types/core/validate/sitemapjson.d.ts +0 -3
- package/dist/@types/core/worker_thread/childprocess_manager.d.ts +0 -16
- package/dist/@types/core/worker_thread/index.d.ts +0 -4
- package/dist/@types/core/worker_thread/task/compilejs.d.ts +0 -43
- package/dist/@types/core/worker_thread/task/compilewxss.d.ts +0 -21
- package/dist/@types/core/worker_thread/task/index.d.ts +0 -28
- package/dist/@types/core/worker_thread/task/minifywxml.d.ts +0 -46
- package/dist/@types/core/worker_thread/worker_manager.d.ts +0 -19
- package/dist/@types/core.d.ts +0 -26
- package/dist/@types/summer/ci.d.ts +0 -3
- package/dist/@types/summer/devtool.d.ts +0 -254
- package/dist/@types/summer/error.d.ts +0 -22
- package/dist/@types/summer/graph/appconf.d.ts +0 -25
- package/dist/@types/summer/graph/appgraph.d.ts +0 -25
- package/dist/@types/summer/graph/basegraph.d.ts +0 -64
- package/dist/@types/summer/graph/pluginconf.d.ts +0 -19
- package/dist/@types/summer/graph/plugingraph.d.ts +0 -22
- package/dist/@types/summer/index.d.ts +0 -1
- package/dist/@types/summer/initPlugin.d.ts +0 -2
- package/dist/@types/summer/module.d.ts +0 -42
- package/dist/@types/summer/persist_cache.d.ts +0 -12
- package/dist/@types/summer/plugin_driver.d.ts +0 -45
- package/dist/@types/summer/plugins/base/es6module.d.ts +0 -18
- package/dist/@types/summer/plugins/base/javascript.d.ts +0 -3
- package/dist/@types/summer/plugins/base/wxss.d.ts +0 -6
- package/dist/@types/summer/plugins/enhance.d.ts +0 -4
- package/dist/@types/summer/plugins/less.d.ts +0 -5
- package/dist/@types/summer/plugins/minifywxml.d.ts +0 -5
- package/dist/@types/summer/plugins/sass.d.ts +0 -3
- package/dist/@types/summer/plugins/terser.d.ts +0 -2
- package/dist/@types/summer/plugins/typescript.d.ts +0 -2
- package/dist/@types/summer/plugins/worklet.d.ts +0 -4
- package/dist/@types/summer/project.d.ts +0 -47
- package/dist/@types/summer/recorder.d.ts +0 -12
- package/dist/@types/summer/resolver.d.ts +0 -28
- package/dist/@types/summer/summer.d.ts +0 -32
- package/dist/@types/summer/types.d.ts +0 -164
- package/dist/@types/summer/utils/ensureArray.d.ts +0 -1
- package/dist/@types/summer/worker.d.ts +0 -16
- package/dist/@types/utils/url_config.d.ts +0 -19
- package/dist/@types/vendor/cloud-api/src/apis/tcb/tcb.apis.d.ts +0 -162
- package/dist/@types/vendor/cloud-api/src/transaction/contracts/contracts.d.ts +0 -7
- package/dist/@types/vendor/cloud-api/src/transaction/contracts/tcb.contracts.d.ts +0 -165
- package/dist/@types/vendor/cloud-api/src/transaction/validations/common.validations.d.ts +0 -106
- package/dist/@types/vendor/cloud-api/src/transaction/validations/tcb.validations.d.ts +0 -170
- package/dist/@types/vendor/cloud-api/src/transaction/validations/validations.d.ts +0 -6
- package/dist/@types/vendor/code-analyse/index.d.ts +0 -374
- package/dist/cli.js +0 -3
- package/dist/cloud/cloudapi.js +0 -3
- package/dist/cloud/createTimeTrigger.js +0 -3
- package/dist/cloud/uploadContainer.js +0 -3
- package/dist/cloud/uploadFile.js +0 -3
- package/dist/cloud/uploadFunction.js +0 -3
- package/dist/cloud/utils.js +0 -3
- package/dist/config.js +0 -3
- package/dist/core/analyse/partial.js +0 -3
- package/dist/core/compile/common.js +0 -3
- package/dist/core/compile/game.js +0 -3
- package/dist/core/compile/game_plugin.js +0 -3
- package/dist/core/compile/handler/js.js +0 -3
- package/dist/core/compile/handler/mpjson.js +0 -3
- package/dist/core/compile/handler/wxml.js +0 -3
- package/dist/core/compile/handler/wxss.js +0 -3
- package/dist/core/compile/index.js +0 -3
- package/dist/core/compile/mini_program.js +0 -3
- package/dist/core/compile/mini_program_plugin.js +0 -3
- package/dist/core/js/enhance.js +0 -1
- package/dist/core/js/es6_transform.js +0 -1
- package/dist/core/js/index.js +0 -1
- package/dist/core/js/minifyjs.js +0 -1
- package/dist/core/js/minifyjs_after_wrap.js +0 -1
- package/dist/core/js/workletCompile.js +0 -1
- package/dist/core/json/app/checkAppFields.js +0 -3
- package/dist/core/json/app/getAppJSON.js +0 -3
- package/dist/core/json/app/getExtJSON.js +0 -3
- package/dist/core/json/app/index.js +0 -3
- package/dist/core/json/common.js +0 -3
- package/dist/core/json/game.js +0 -3
- package/dist/core/json/page/checkPageJSON.js +0 -3
- package/dist/core/json/page/getPageJSON.js +0 -3
- package/dist/core/json/plugin/plugin.js +0 -3
- package/dist/core/json/plugin/plugin_page.js +0 -3
- package/dist/core/json/projectWithMockBuffer.js +0 -3
- package/dist/core/json/projectconfig.js +0 -3
- package/dist/core/json/reactiveCache.js +0 -3
- package/dist/core/json/signaturejson.js +0 -3
- package/dist/core/json/sitemap.js +0 -3
- package/dist/core/json/theme.js +0 -3
- package/dist/core/npm/filterdeps.js +0 -3
- package/dist/core/npm/packnpm.js +0 -3
- package/dist/core/protect/file_flatter.js +0 -3
- package/dist/core/protect/uglifyfilenames.js +0 -3
- package/dist/core/utils/env.js +0 -3
- package/dist/core/utils/logger.js +0 -3
- package/dist/core/validate/appjson.js +0 -1
- package/dist/core/validate/extjson.js +0 -1
- package/dist/core/validate/gamejson.js +0 -1
- package/dist/core/validate/gamepluginjson.js +0 -1
- package/dist/core/validate/pagejson.js +0 -1
- package/dist/core/validate/pluginjson.js +0 -1
- package/dist/core/validate/pluginpagejson.js +0 -1
- package/dist/core/validate/projectconfig.js +0 -1
- package/dist/core/validate/schemaValidate.js +0 -1
- package/dist/core/validate/signaturejson.js +0 -1
- package/dist/core/validate/sitemapjson.js +0 -1
- package/dist/core/validate/validate.js +0 -1
- package/dist/core/worker_thread/childprocess.js +0 -1
- package/dist/core/worker_thread/childprocess_manager.js +0 -1
- package/dist/core/worker_thread/fork.js +0 -1
- package/dist/core/worker_thread/index.js +0 -1
- package/dist/core/worker_thread/task/compilejs.js +0 -1
- package/dist/core/worker_thread/task/compilewxss.js +0 -1
- package/dist/core/worker_thread/task/minifywxml.js +0 -1
- package/dist/core/worker_thread/worker.js +0 -1
- package/dist/core/worker_thread/worker_manager.js +0 -1
- package/dist/core.js +0 -3
- package/dist/summer/ci.js +0 -3
- package/dist/summer/devtool.js +0 -3
- package/dist/summer/entry_process.js +0 -1
- package/dist/summer/error.js +0 -3
- package/dist/summer/graph/appconf.js +0 -3
- package/dist/summer/graph/appgraph.js +0 -3
- package/dist/summer/graph/basegraph.js +0 -3
- package/dist/summer/graph/pluginconf.js +0 -3
- package/dist/summer/graph/plugingraph.js +0 -3
- package/dist/summer/index.js +0 -3
- package/dist/summer/initPlugin.js +0 -3
- package/dist/summer/module.js +0 -3
- package/dist/summer/persist_cache.js +0 -3
- package/dist/summer/plugin_driver.js +0 -3
- package/dist/summer/plugins/base/es6module.js +0 -1
- package/dist/summer/plugins/base/javascript.js +0 -1
- package/dist/summer/plugins/base/wxss.js +0 -1
- package/dist/summer/plugins/enhance.js +0 -1
- package/dist/summer/plugins/index.js +0 -1
- package/dist/summer/plugins/less.js +0 -1
- package/dist/summer/plugins/minifywxml.js +0 -1
- package/dist/summer/plugins/sass.js +0 -1
- package/dist/summer/plugins/terser.js +0 -1
- package/dist/summer/plugins/typescript.js +0 -1
- package/dist/summer/plugins/worklet.js +0 -1
- package/dist/summer/project.js +0 -3
- package/dist/summer/recorder.js +0 -3
- package/dist/summer/resolver.js +0 -3
- package/dist/summer/summer.js +0 -3
- package/dist/summer/types.js +0 -3
- package/dist/summer/utils/async.js +0 -3
- package/dist/summer/utils/ensureArray.js +0 -3
- package/dist/summer/worker.js +0 -3
- package/dist/utils/url_config.js +0 -3
- package/dist/vendor/cloud-api/index.js +0 -2
- package/dist/vendor/cloud-api/src/apis/apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/cdn/cdn.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/cdn/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/flexdb/flexdb.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/flexdb/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/scf/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/scf/scf.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/ssl/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/ssl/ssl.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/tcb/general.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/tcb/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/tcb/tcb.apis.js +0 -3
- package/dist/vendor/cloud-api/src/index.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/cdn.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/factory.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/flexdb.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/scf.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/ssl.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/tcb.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/transactor.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/cdn.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/common.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/flexdb.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/scf.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/ssl.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/tcb.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/validations.js +0 -3
- package/dist/vendor/cloud-api/src/utils/common.js +0 -3
- package/dist/vendor/cloud-api/src/utils/validator.js +0 -3
- package/dist/vendor/code-analyse/index.js +0 -2
- package/dist/vendor/schema/dist/app.js +0 -618
- package/dist/vendor/schema/dist/ext.js +0 -862
- package/dist/vendor/schema/dist/game.js +0 -211
- package/dist/vendor/schema/dist/page.js +0 -313
- package/dist/vendor/schema/dist/plugin.js +0 -41
- package/dist/vendor/schema/dist/pluginpage.js +0 -14
- package/dist/vendor/schema/dist/projectconfig.js +0 -474
- package/dist/vendor/schema/dist/projectprivateconfig.js +0 -358
- package/dist/vendor/schema/dist/sitemap.js +0 -53
- package/dist/vendor/schema/dist/theme.js +0 -20
- /package/dist/@types/{cli.d.ts → cli/index.d.ts} +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/cdn/cdn.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/cdn/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/flexdb/flexdb.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/flexdb/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/scf/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/scf/scf.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/ssl/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/ssl/ssl.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/tcb/general.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/tcb/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/cdn.contracts.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/factory.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/flexdb.contracts.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/scf.contracts.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/ssl.contracts.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/transactor.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/validations/cdn.validations.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/validations/flexdb.validations.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/validations/scf.validations.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/validations/ssl.validations.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/utils/common.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/utils/validator.d.ts +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/js/enhance.d.ts +0 -0
- /package/dist/@types/{core/js/es6_transform.d.ts → modules/corecompiler/original/js/es6Transform.d.ts} +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/js/generateMap.d.ts +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/js/workletCompile.d.ts +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/npm/filterdeps.d.ts +0 -0
- /package/dist/@types/{core/protect/file_flatter.d.ts → modules/corecompiler/original/protect/fileFlatter.d.ts} +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/utils/logger.d.ts +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/validate/validate.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/childprocess.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/config.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/fork.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/task/call_func.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/task/func.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/worker.d.ts +0 -0
- /package/dist/@types/{summer → modules/corecompiler/summer}/plugins/index.d.ts +0 -0
- /package/dist/@types/{summer → modules/corecompiler/summer}/utils/async.d.ts +0 -0
- /package/dist/@types/{summer/entry_process.d.ts → modules/corecompiler/summerEntryProcess.d.ts} +0 -0
- /package/dist/{schema → @types/schema}/dist/index.d.ts +0 -0
- /package/dist/{core → modules/corecompiler/original}/js/generateMap.js +0 -0
- /package/dist/{core/worker_thread → modules/corecompiler/original/workerThread}/config.js +0 -0
- /package/dist/{core/worker_thread → modules/corecompiler/original/workerThread}/task/call_func.js +0 -0
- /package/dist/{core/worker_thread → modules/corecompiler/original/workerThread}/task/func.js +0 -0
- /package/dist/{core/worker_thread → modules/corecompiler/original/workerThread}/task/index.js +0 -0
- /package/dist/{vendor/schema → schema}/dist/index.js +0 -0
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { PluginDriver } from '../plugin_driver';
|
|
2
|
-
import { ModuleJSON, SummerPlugin } from '../types';
|
|
3
|
-
import Module from '../module';
|
|
4
|
-
import { SummerCompiler } from '../summer';
|
|
5
|
-
import { CodeFile, CodeFiles, IAppConf, ICompileResult, IPackageCodeOptions, IPluginConf } from '../devtool';
|
|
6
|
-
import { ResolveFileInfo, Resolver } from '../resolver';
|
|
7
|
-
import { Project } from '../project';
|
|
8
|
-
import { Recorder } from '../recorder';
|
|
9
|
-
import PersistCache from '../persist_cache';
|
|
10
|
-
type GraphType = 'miniprogram' | 'plugin' | 'other';
|
|
11
|
-
export type FileInfo = ResolveFileInfo & {
|
|
12
|
-
independentRoot: string;
|
|
13
|
-
isBabelIgnore: boolean;
|
|
14
|
-
};
|
|
15
|
-
export interface IGraphOptions {
|
|
16
|
-
type: GraphType;
|
|
17
|
-
root: string;
|
|
18
|
-
persistCache: PersistCache;
|
|
19
|
-
plugins: SummerPlugin[];
|
|
20
|
-
compiler: SummerCompiler;
|
|
21
|
-
}
|
|
22
|
-
export declare abstract class BaseGraph {
|
|
23
|
-
pluginDriver: PluginDriver;
|
|
24
|
-
modulesByPath: Map<string, Module>;
|
|
25
|
-
root: string;
|
|
26
|
-
rootPath: string;
|
|
27
|
-
persistCache: PersistCache;
|
|
28
|
-
type: GraphType;
|
|
29
|
-
compiler: SummerCompiler;
|
|
30
|
-
project: Project;
|
|
31
|
-
cachedModules: Map<string, ModuleJSON>;
|
|
32
|
-
resolver: Resolver;
|
|
33
|
-
private invalidated;
|
|
34
|
-
private running;
|
|
35
|
-
constructor(options: IGraphOptions);
|
|
36
|
-
destroy(): void;
|
|
37
|
-
clearCache(): void;
|
|
38
|
-
private onFileChange;
|
|
39
|
-
private invalidateModules;
|
|
40
|
-
private loadModuleFromFile;
|
|
41
|
-
private loadSourceForModule;
|
|
42
|
-
protected doCompileSingleCode(info: FileInfo, sourceCode?: string): Promise<CodeFile>;
|
|
43
|
-
protected getCodeFiles(files: FileInfo[], recorder: Recorder, useCache?: boolean): Promise<CodeFiles>;
|
|
44
|
-
private readFile;
|
|
45
|
-
private tranform;
|
|
46
|
-
private generate;
|
|
47
|
-
compile(recorder: Recorder): Promise<ICompileResult>;
|
|
48
|
-
getLocalFileList(): Promise<Record<string, {
|
|
49
|
-
size: number;
|
|
50
|
-
}>>;
|
|
51
|
-
private compileOther;
|
|
52
|
-
private compileCodeWithoutJSON;
|
|
53
|
-
protected isBabelSettingIgnore(fileInfo: ResolveFileInfo): boolean;
|
|
54
|
-
protected abstract onFileChangeForGraph(type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', path: string): void;
|
|
55
|
-
protected abstract getConf(recorder: Recorder): Promise<IAppConf | IPluginConf>;
|
|
56
|
-
protected abstract getDevCode(recorder: Recorder, options?: IPackageCodeOptions): Promise<CodeFiles>;
|
|
57
|
-
protected abstract getProdCode(recorder: Recorder, options?: IPackageCodeOptions): Promise<CodeFiles>;
|
|
58
|
-
protected abstract compileJSON(recorder: Recorder): Promise<{
|
|
59
|
-
conf: any;
|
|
60
|
-
jsons: Record<string, string>;
|
|
61
|
-
}>;
|
|
62
|
-
protected abstract getLocalCodeFileList(): string[];
|
|
63
|
-
}
|
|
64
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SummerCompiler } from '../summer';
|
|
2
|
-
import { IDevtoolProject } from '../types';
|
|
3
|
-
import { PluginGraph } from './plugingraph';
|
|
4
|
-
import { Recorder } from '../recorder';
|
|
5
|
-
export declare function resolvePath(currentPath: string, targetPath: string): string;
|
|
6
|
-
export declare class PluginConf {
|
|
7
|
-
graph: PluginGraph;
|
|
8
|
-
plugin: any;
|
|
9
|
-
pages: Map<string, any>;
|
|
10
|
-
comps: Map<string, any>;
|
|
11
|
-
proxyProject: IDevtoolProject;
|
|
12
|
-
constructor(compiler: SummerCompiler, graph: PluginGraph);
|
|
13
|
-
destroy(): void;
|
|
14
|
-
build(recorder: Recorder): Promise<void>;
|
|
15
|
-
private resetState;
|
|
16
|
-
private loadPlugin;
|
|
17
|
-
private loadPage;
|
|
18
|
-
private loadComp;
|
|
19
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CodeFile, CodeFiles, IPluginConf } from '../devtool';
|
|
2
|
-
import { Recorder } from '../recorder';
|
|
3
|
-
import { BaseGraph, IGraphOptions } from './basegraph';
|
|
4
|
-
export declare class PluginGraph extends BaseGraph {
|
|
5
|
-
private pluginConf;
|
|
6
|
-
private conf;
|
|
7
|
-
constructor(options: IGraphOptions);
|
|
8
|
-
destroy(): void;
|
|
9
|
-
getConf(recorder: Recorder): Promise<IPluginConf>;
|
|
10
|
-
ensureConf(recorder: Recorder): Promise<void>;
|
|
11
|
-
compileSingleCode(filePath: string, sourceCode?: string): Promise<CodeFile>;
|
|
12
|
-
getDevCode(recorder: Recorder): Promise<CodeFiles>;
|
|
13
|
-
getProdCode(recorder: Recorder): Promise<CodeFiles>;
|
|
14
|
-
protected getLocalCodeFileList(): string[];
|
|
15
|
-
protected onFileChangeForGraph(type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', path: string): void;
|
|
16
|
-
private getPackageFile;
|
|
17
|
-
private getIndependentRoot;
|
|
18
|
-
protected compileJSON(): Promise<{
|
|
19
|
-
conf: IPluginConf;
|
|
20
|
-
jsons: Record<string, string>;
|
|
21
|
-
}>;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SummerCompiler } from './devtool';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { FileType, GenerateDescription, ModuleJSON, SourceDescription } from './types';
|
|
2
|
-
import { CodeError, CodeFile } from './devtool';
|
|
3
|
-
import { BaseGraph } from './graph/basegraph';
|
|
4
|
-
import { SummerError } from './error';
|
|
5
|
-
declare class JsTag {
|
|
6
|
-
isLargeFile: boolean;
|
|
7
|
-
isBabelIgnore: boolean;
|
|
8
|
-
helpers: string[];
|
|
9
|
-
constructor();
|
|
10
|
-
setBabelIgnore(): void;
|
|
11
|
-
setLargeFile(): void;
|
|
12
|
-
addHelpers(helpers: string[]): void;
|
|
13
|
-
toJSON(): {
|
|
14
|
-
isLargeFile: boolean;
|
|
15
|
-
isBabelIgnore: boolean;
|
|
16
|
-
helpers: string[];
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export default class Module {
|
|
20
|
-
private readonly graph;
|
|
21
|
-
readonly path: string;
|
|
22
|
-
readonly sourcePath: string;
|
|
23
|
-
fileType: FileType;
|
|
24
|
-
md5: string;
|
|
25
|
-
json: any;
|
|
26
|
-
error?: SummerError | Error;
|
|
27
|
-
jsTag?: JsTag;
|
|
28
|
-
source?: SourceDescription;
|
|
29
|
-
target?: GenerateDescription;
|
|
30
|
-
depFiles: string[];
|
|
31
|
-
independentRoot: string;
|
|
32
|
-
loadingPromise: Promise<Boolean> | undefined;
|
|
33
|
-
loadStart: number;
|
|
34
|
-
loadEnd: number;
|
|
35
|
-
constructor(graph: BaseGraph, path: string, sourcePath: string, fileType: FileType);
|
|
36
|
-
setError(error: SummerError | Error): void;
|
|
37
|
-
setSource(source: SourceDescription): void;
|
|
38
|
-
toCodeFile(): CodeFile | CodeError;
|
|
39
|
-
toJSON(): ModuleJSON;
|
|
40
|
-
addWatchFile(file: string): void;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FileInfo } from './graph/basegraph';
|
|
2
|
-
import { CodeFile } from './devtool';
|
|
3
|
-
export default class LogicPersistCache {
|
|
4
|
-
private baseCacheKey;
|
|
5
|
-
private persistCache;
|
|
6
|
-
constructor(cachePath: string, baseCacheKey: string);
|
|
7
|
-
updateBaseCacheKey(key: string): void;
|
|
8
|
-
private getCacheKey;
|
|
9
|
-
get(projectPath: string, root: string, file: FileInfo): Promise<CodeFile | undefined>;
|
|
10
|
-
set(projectPath: string, root: string, file: FileInfo, data: CodeFile): Promise<void>;
|
|
11
|
-
clean(): Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { AsyncPluginHooks, FirstPluginHooks, ParallelPluginHooks, PluginContext, PluginHooks, SequentialPluginHooks, SummerPlugin } from './types';
|
|
2
|
-
import { BaseGraph } from './graph/basegraph';
|
|
3
|
-
interface IResolveExt {
|
|
4
|
-
json?: string;
|
|
5
|
-
wxml?: string;
|
|
6
|
-
wxss?: string;
|
|
7
|
-
js?: string;
|
|
8
|
-
wxs?: string;
|
|
9
|
-
}
|
|
10
|
-
type ResolveValue<T> = T extends Promise<infer K> ? K : T;
|
|
11
|
-
type EnsurePromise<T> = Promise<ResolveValue<T>>;
|
|
12
|
-
type Arg0<H extends Exclude<keyof PluginHooks, 'resolveExt'>> = Parameters<PluginHooks[H]>[0];
|
|
13
|
-
export type ReplaceContext = (context: PluginContext, plugin: SummerPlugin) => PluginContext;
|
|
14
|
-
export interface ICompilerPlugin extends PluginHooks {
|
|
15
|
-
resolveExt?: IResolveExt;
|
|
16
|
-
}
|
|
17
|
-
export declare function genResovleExtConf(plugins: SummerPlugin[]): {
|
|
18
|
-
json: string[];
|
|
19
|
-
wxml: string[];
|
|
20
|
-
wxss: string[];
|
|
21
|
-
js: string[];
|
|
22
|
-
wxs: string[];
|
|
23
|
-
};
|
|
24
|
-
export declare function getPluginContext(plugin: SummerPlugin, graph: BaseGraph): PluginContext;
|
|
25
|
-
export declare class PluginDriver {
|
|
26
|
-
private graph;
|
|
27
|
-
private options;
|
|
28
|
-
resolveExtConf: {
|
|
29
|
-
json: string[];
|
|
30
|
-
wxml: string[];
|
|
31
|
-
wxss: string[];
|
|
32
|
-
js: string[];
|
|
33
|
-
wxs: string[];
|
|
34
|
-
};
|
|
35
|
-
plugins: SummerPlugin[];
|
|
36
|
-
private pluginContexts;
|
|
37
|
-
constructor(graph: BaseGraph, options: {
|
|
38
|
-
plugins: SummerPlugin[];
|
|
39
|
-
});
|
|
40
|
-
private runHook;
|
|
41
|
-
hookFirst<H extends AsyncPluginHooks & FirstPluginHooks>(hookName: H, args: Parameters<PluginHooks[H]>, replaceContext?: ReplaceContext | null): EnsurePromise<ReturnType<PluginHooks[H]>>;
|
|
42
|
-
hookParallel<H extends AsyncPluginHooks & ParallelPluginHooks>(hookName: H, args: Parameters<PluginHooks[H]>, replaceContext?: ReplaceContext): Promise<void>;
|
|
43
|
-
hookReduceArg0<H extends AsyncPluginHooks & SequentialPluginHooks>(hookName: H, [arg0, ...rest]: Parameters<PluginHooks[H]>, reduce: (reduction: Arg0<H>, result: ResolveValue<ReturnType<PluginHooks[H]>>, plugin: SummerPlugin) => Arg0<H>, replaceContext?: ReplaceContext | null): Promise<Arg0<H>>;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SourceDescription, SummerPlugin } from '../../types';
|
|
2
|
-
export declare function getBabelRoot(independentRoot: string): string;
|
|
3
|
-
export declare function transformES6ModuleAndGenCode(source: SourceDescription, id: string, babelRoot: string, disableUseStrict: boolean): {
|
|
4
|
-
code: string;
|
|
5
|
-
map: {
|
|
6
|
-
version: number;
|
|
7
|
-
sources: string[];
|
|
8
|
-
names: string[];
|
|
9
|
-
sourceRoot?: string | undefined;
|
|
10
|
-
sourcesContent?: string[] | undefined;
|
|
11
|
-
mappings: string;
|
|
12
|
-
file: string;
|
|
13
|
-
};
|
|
14
|
-
helpers: string[];
|
|
15
|
-
};
|
|
16
|
-
export default function (projectPath: string, options: {
|
|
17
|
-
disableUseStrict: boolean;
|
|
18
|
-
}): SummerPlugin;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="less" />
|
|
2
|
-
import { SummerPlugin } from '../types';
|
|
3
|
-
export declare const importWxssReg: RegExp;
|
|
4
|
-
export declare const importWxssCssReg: RegExp;
|
|
5
|
-
export default function (projectPath: string, options: Pick<Less.Options, 'globalVars'>): SummerPlugin;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { IDevtoolProject, TypedEventEmitter } from './types';
|
|
3
|
-
import { ICompilerOptions } from './devtool';
|
|
4
|
-
import { MiniProgramCI } from '../types';
|
|
5
|
-
export interface IStat {
|
|
6
|
-
isFile: boolean;
|
|
7
|
-
isDirectory: boolean;
|
|
8
|
-
size?: number;
|
|
9
|
-
}
|
|
10
|
-
export type FileChange = (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', targetPath: string) => void;
|
|
11
|
-
type ProjectEventEmitter = TypedEventEmitter<{
|
|
12
|
-
fileChange: FileChange;
|
|
13
|
-
}>;
|
|
14
|
-
type ProjectOptions = Omit<ICompilerOptions, 'summerPlugins'>;
|
|
15
|
-
export declare class Project implements IDevtoolProject {
|
|
16
|
-
projectPath: string;
|
|
17
|
-
appid: string;
|
|
18
|
-
private _attr;
|
|
19
|
-
private _dirSet;
|
|
20
|
-
private _fileSet;
|
|
21
|
-
event: ProjectEventEmitter;
|
|
22
|
-
type: MiniProgramCI.ProjectType;
|
|
23
|
-
privateKey: string;
|
|
24
|
-
miniprogramRoot: string;
|
|
25
|
-
pluginRoot: string;
|
|
26
|
-
nameMappingFromDevtools?: MiniProgramCI.IStringKeyMap<string> | undefined;
|
|
27
|
-
constructor(projectPath: string, files: string[], dirs: string[], options: ProjectOptions);
|
|
28
|
-
getFilesAndDirs(): {
|
|
29
|
-
files: string[];
|
|
30
|
-
dirs: string[];
|
|
31
|
-
};
|
|
32
|
-
attr(): Promise<any>;
|
|
33
|
-
updateOptions(options: ProjectOptions): void;
|
|
34
|
-
private updateType;
|
|
35
|
-
getExtAppid(): Promise<string | void>;
|
|
36
|
-
updateFiles(): void;
|
|
37
|
-
private isIgnore;
|
|
38
|
-
private cacheDirName;
|
|
39
|
-
getTargetPath(prefix: string, filePath: string): string;
|
|
40
|
-
stat(prefix: string, filePath: string): IStat | undefined;
|
|
41
|
-
getFileSize(prefix: string, filePath: string): number;
|
|
42
|
-
getFile(prefix: string, filePath: string): Buffer;
|
|
43
|
-
getJson<T = any>(prefix: string, filePath: string): T;
|
|
44
|
-
getFileList(prefix?: string, extName?: string): string[];
|
|
45
|
-
onFileChange(type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', targetPath: string): void;
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ProgressUpdate } from './devtool';
|
|
2
|
-
export declare function getPrintTime(): string;
|
|
3
|
-
export declare class Recorder {
|
|
4
|
-
private sendProgress;
|
|
5
|
-
constructor(sendProgress: ProgressUpdate);
|
|
6
|
-
start(message: string): {
|
|
7
|
-
(): void;
|
|
8
|
-
id: number;
|
|
9
|
-
};
|
|
10
|
-
run<T>(message: string, runner: () => Promise<T> | T): Promise<T>;
|
|
11
|
-
}
|
|
12
|
-
export declare const silentRecorder: Recorder;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IStat } from '@/types';
|
|
2
|
-
import { BaseGraph } from './graph/basegraph';
|
|
3
|
-
declare const targetCodeExts: readonly ["json", "wxml", "wxss", "js", "wxs"];
|
|
4
|
-
type TargetCodeExt = typeof targetCodeExts[number];
|
|
5
|
-
type ResolveExtConf = Record<TargetCodeExt, string[]>;
|
|
6
|
-
export interface ResolveFileInfo {
|
|
7
|
-
path: string;
|
|
8
|
-
source: string;
|
|
9
|
-
sourceExt: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class Resolver {
|
|
12
|
-
graph: BaseGraph;
|
|
13
|
-
root: string;
|
|
14
|
-
extConf: ResolveExtConf;
|
|
15
|
-
fileSet: Set<string>;
|
|
16
|
-
resolveInfoMap: Map<string, ResolveFileInfo>;
|
|
17
|
-
private extToTarget;
|
|
18
|
-
allExts: string[];
|
|
19
|
-
constructor(graph: BaseGraph, root: string, extConf: ResolveExtConf);
|
|
20
|
-
private updateFiles;
|
|
21
|
-
onFileChange: (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', path: string) => void;
|
|
22
|
-
resolve(source: string): ResolveFileInfo[];
|
|
23
|
-
stat(path: string): IStat | undefined;
|
|
24
|
-
private isCodeFile;
|
|
25
|
-
private getExt;
|
|
26
|
-
private updateFile;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { CodeFile, CodeFiles, GraphId, IAppConf, ICompileResult, ICompilerOptions, ICompilerStatus, ICompileSingleCodeOptions, IGetCodeOptions, IGetConfOptions, IPluginConf, LocalFiles } from './devtool';
|
|
2
|
-
import { Project } from './project';
|
|
3
|
-
import { SummerPlugin } from './types';
|
|
4
|
-
import { PluginGraph } from './graph/plugingraph';
|
|
5
|
-
import { AppGraph } from './graph/appgraph';
|
|
6
|
-
import { Recorder } from './recorder';
|
|
7
|
-
import PersistCache from './persist_cache';
|
|
8
|
-
export declare class SummerCompiler {
|
|
9
|
-
project: Project;
|
|
10
|
-
private cachePath;
|
|
11
|
-
private options;
|
|
12
|
-
projectPath: string;
|
|
13
|
-
appGraph: AppGraph;
|
|
14
|
-
pluginGraph?: PluginGraph;
|
|
15
|
-
plugins: SummerPlugin[];
|
|
16
|
-
proxyProject: any;
|
|
17
|
-
persistCache: PersistCache;
|
|
18
|
-
constructor(project: Project, cachePath: string, options: ICompilerOptions);
|
|
19
|
-
getBabelSetting(): import("./devtool").IBabelSetting | undefined;
|
|
20
|
-
private initPlugins;
|
|
21
|
-
private initAppGraph;
|
|
22
|
-
private initPluginGraph;
|
|
23
|
-
updateOptions(options: ICompilerOptions): void;
|
|
24
|
-
destroy(): void;
|
|
25
|
-
getStatus(): ICompilerStatus;
|
|
26
|
-
clearCache(): void;
|
|
27
|
-
getConf({ graphId }: IGetConfOptions, recorder: Recorder): Promise<IAppConf | IPluginConf>;
|
|
28
|
-
getCode(options: IGetCodeOptions, recorder: Recorder): Promise<CodeFiles>;
|
|
29
|
-
getLocalFileList(graphId: GraphId): Promise<LocalFiles>;
|
|
30
|
-
compileSingleCode(options: ICompileSingleCodeOptions, recorder: Recorder): Promise<CodeFile>;
|
|
31
|
-
compile(options: any, recorder: Recorder): Promise<ICompileResult>;
|
|
32
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { IProject } from '../types';
|
|
3
|
-
import type { RawSourceMap } from 'source-map';
|
|
4
|
-
import { IAppConf } from './devtool';
|
|
5
|
-
import * as BabelTypes from '@babel/types';
|
|
6
|
-
export type IBasicCodeExt = 'js' | 'wxml' | 'wxss' | 'json' | 'wxs';
|
|
7
|
-
export declare const BasicCodeExts: readonly ["js", "wxml", "wxss", "json", "wxs"];
|
|
8
|
-
export declare enum FileType {
|
|
9
|
-
JSON = "json",
|
|
10
|
-
WXML = "wxml",
|
|
11
|
-
WXSS = "wxss",
|
|
12
|
-
WXS = "wxs",
|
|
13
|
-
JS = "js"
|
|
14
|
-
}
|
|
15
|
-
export declare enum JSONType {
|
|
16
|
-
APP = "app",
|
|
17
|
-
Page = "page",
|
|
18
|
-
EXT = "ext",
|
|
19
|
-
SITEMAP = "sitemap",
|
|
20
|
-
THEME = "theme"
|
|
21
|
-
}
|
|
22
|
-
export interface ModuleJSON {
|
|
23
|
-
code: string | null;
|
|
24
|
-
map?: SourceMap;
|
|
25
|
-
path: string;
|
|
26
|
-
sourcePath?: string;
|
|
27
|
-
depFileIds?: string[];
|
|
28
|
-
}
|
|
29
|
-
export interface SummerCache {
|
|
30
|
-
modules: ModuleJSON[];
|
|
31
|
-
}
|
|
32
|
-
export interface SummerBuild {
|
|
33
|
-
cache: SummerCache | undefined;
|
|
34
|
-
output: {
|
|
35
|
-
[key in string]: string;
|
|
36
|
-
};
|
|
37
|
-
watchFiles: string[];
|
|
38
|
-
}
|
|
39
|
-
export interface PluginContext {
|
|
40
|
-
addWatchFile: (absFilePath: string) => void;
|
|
41
|
-
error: (err: any) => never;
|
|
42
|
-
runWorkerMethod: (method: string, ...args: any[]) => Promise<any>;
|
|
43
|
-
rootPath?: string;
|
|
44
|
-
}
|
|
45
|
-
export type SourceMap = Omit<RawSourceMap, 'version'> & {
|
|
46
|
-
version: number | string;
|
|
47
|
-
};
|
|
48
|
-
export declare enum AstType {
|
|
49
|
-
Babel = "babel",
|
|
50
|
-
Acorn = "acorn"
|
|
51
|
-
}
|
|
52
|
-
type AstInfo = {
|
|
53
|
-
ast: AcornNode;
|
|
54
|
-
type: AstType.Acorn;
|
|
55
|
-
} | {
|
|
56
|
-
ast: BabelTypes.File;
|
|
57
|
-
type: AstType.Babel;
|
|
58
|
-
};
|
|
59
|
-
export type SourceDescription = {
|
|
60
|
-
sourceCode: string;
|
|
61
|
-
inputMap?: SourceMap;
|
|
62
|
-
astInfo?: AstInfo;
|
|
63
|
-
target?: GenerateDescription;
|
|
64
|
-
largeFile?: boolean;
|
|
65
|
-
};
|
|
66
|
-
export type GenerateDescription = {
|
|
67
|
-
code: string;
|
|
68
|
-
map?: SourceMap;
|
|
69
|
-
helpers?: string[];
|
|
70
|
-
};
|
|
71
|
-
type LoadResult = SourceDescription | string | null | undefined;
|
|
72
|
-
export type AsyncPluginHooks = 'load' | 'transform' | 'optimize' | 'generate' | 'compress' | 'sealed';
|
|
73
|
-
export type FirstPluginHooks = 'load' | 'generate';
|
|
74
|
-
export type SequentialPluginHooks = 'transform' | 'optimize' | 'compress';
|
|
75
|
-
export type ParallelPluginHooks = 'sealed';
|
|
76
|
-
export type LoadHook = (this: PluginContext, targetPath: string, sourcePath: string, options: {
|
|
77
|
-
independentRoot: string;
|
|
78
|
-
isBabelIgnore: boolean;
|
|
79
|
-
}) => Promise<LoadResult> | LoadResult;
|
|
80
|
-
export type TransformHook = (this: PluginContext, source: SourceDescription, targetPath: string, sourcePath: string, options: {
|
|
81
|
-
independentRoot: string;
|
|
82
|
-
isBabelIgnore: boolean;
|
|
83
|
-
}) => Promise<SourceDescription> | SourceDescription;
|
|
84
|
-
type GenerateResult = GenerateDescription | string | null | undefined;
|
|
85
|
-
export type GenerateHook = (this: PluginContext, source: SourceDescription, targetPath: string, sourcePath: string, options: {
|
|
86
|
-
independentRoot: string;
|
|
87
|
-
isBabelIgnore: boolean;
|
|
88
|
-
}) => Promise<GenerateResult> | GenerateResult;
|
|
89
|
-
export type OptimizeHook = (this: PluginContext, codes: Record<string, string>, appConf: IAppConf) => Promise<Record<string, string>>;
|
|
90
|
-
export type CompressHook = (this: PluginContext, content: Record<string, string | Buffer>) => Promise<Record<string, string | Buffer>>;
|
|
91
|
-
export type SealedHook = (this: PluginContext, content: Record<string, string | Buffer>) => Promise<void>;
|
|
92
|
-
export interface PluginHooks {
|
|
93
|
-
load: LoadHook;
|
|
94
|
-
transform: TransformHook;
|
|
95
|
-
generate: GenerateHook;
|
|
96
|
-
optimize: OptimizeHook;
|
|
97
|
-
compress: CompressHook;
|
|
98
|
-
sealed: SealedHook;
|
|
99
|
-
}
|
|
100
|
-
interface ResolveExt {
|
|
101
|
-
json?: string | string[];
|
|
102
|
-
wxml?: string | string[];
|
|
103
|
-
wxss?: string | string[];
|
|
104
|
-
js?: string | string[];
|
|
105
|
-
wxs?: string | string[];
|
|
106
|
-
}
|
|
107
|
-
export interface SummerPlugin extends Partial<PluginHooks> {
|
|
108
|
-
name: string;
|
|
109
|
-
supportWorker?: boolean;
|
|
110
|
-
workerMethods?: Record<string, Function>;
|
|
111
|
-
resolveExt?: ResolveExt;
|
|
112
|
-
}
|
|
113
|
-
export type SummerPluginOptions = Record<string, any>;
|
|
114
|
-
export interface TypedEventEmitter<T extends {
|
|
115
|
-
[event: string]: (...args: any) => any;
|
|
116
|
-
}> {
|
|
117
|
-
addListener<K extends keyof T>(event: K, listener: T[K]): this;
|
|
118
|
-
emit<K extends keyof T>(event: K, ...args: Parameters<T[K]>): boolean;
|
|
119
|
-
eventNames(): Array<keyof T>;
|
|
120
|
-
getMaxListeners(): number;
|
|
121
|
-
listenerCount(type: keyof T): number;
|
|
122
|
-
listeners<K extends keyof T>(event: K): Array<T[K]>;
|
|
123
|
-
off<K extends keyof T>(event: K, listener: T[K]): this;
|
|
124
|
-
on<K extends keyof T>(event: K, listener: T[K]): this;
|
|
125
|
-
once<K extends keyof T>(event: K, listener: T[K]): this;
|
|
126
|
-
prependListener<K extends keyof T>(event: K, listener: T[K]): this;
|
|
127
|
-
prependOnceListener<K extends keyof T>(event: K, listener: T[K]): this;
|
|
128
|
-
rawListeners<K extends keyof T>(event: K): Array<T[K]>;
|
|
129
|
-
removeAllListeners<K extends keyof T>(event?: K): this;
|
|
130
|
-
removeListener<K extends keyof T>(event: K, listener: T[K]): this;
|
|
131
|
-
setMaxListeners(n: number): this;
|
|
132
|
-
}
|
|
133
|
-
export type ChangeEvent = 'create' | 'update' | 'delete';
|
|
134
|
-
export type SummerWatcherEvent = {
|
|
135
|
-
code: 'START';
|
|
136
|
-
} | {
|
|
137
|
-
code: 'BUILD_END';
|
|
138
|
-
duration: number;
|
|
139
|
-
output: SummerBuild['output'];
|
|
140
|
-
} | {
|
|
141
|
-
code: 'END';
|
|
142
|
-
};
|
|
143
|
-
export interface SummerWatcher extends TypedEventEmitter<{
|
|
144
|
-
change: (id: string, change: {
|
|
145
|
-
event: ChangeEvent;
|
|
146
|
-
}) => void;
|
|
147
|
-
close: () => void;
|
|
148
|
-
event: (event: SummerWatcherEvent) => void;
|
|
149
|
-
restart: () => void;
|
|
150
|
-
}> {
|
|
151
|
-
close(): void;
|
|
152
|
-
}
|
|
153
|
-
export interface WatcherOptions {
|
|
154
|
-
buildDelay?: number;
|
|
155
|
-
}
|
|
156
|
-
interface AcornNode {
|
|
157
|
-
end: number;
|
|
158
|
-
start: number;
|
|
159
|
-
type: string;
|
|
160
|
-
}
|
|
161
|
-
export type IDevtoolProject = IProject & {
|
|
162
|
-
onFileChange?: any;
|
|
163
|
-
};
|
|
164
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ensureArray<T>(items: (T | null | undefined)[] | T | null | undefined): T[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SummerPluginOptions } from './types';
|
|
2
|
-
export type IRunSummerPluginHookData = {
|
|
3
|
-
command: 'clear';
|
|
4
|
-
} | {
|
|
5
|
-
command: 'runMethod';
|
|
6
|
-
plugin: string;
|
|
7
|
-
projectPath: string;
|
|
8
|
-
pluginOption: SummerPluginOptions;
|
|
9
|
-
method: string;
|
|
10
|
-
args: any;
|
|
11
|
-
};
|
|
12
|
-
export type IRunSummerPluginHookResult = {
|
|
13
|
-
error?: any;
|
|
14
|
-
result?: any;
|
|
15
|
-
};
|
|
16
|
-
export declare function runSummerPluginHook(data: IRunSummerPluginHookData): Promise<IRunSummerPluginHookResult>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const GET_ATTR_URL: string;
|
|
2
|
-
export declare const UPLOAD_URL: string;
|
|
3
|
-
export declare const TEST_SOURCE_URL: string;
|
|
4
|
-
export declare const GET_WHITE_EXT_LIST: string;
|
|
5
|
-
export declare const GET_ONLINE_SCHEMA: string;
|
|
6
|
-
export declare const GET_RAND_STRING: string;
|
|
7
|
-
export declare const GET_DEV_SOURCE_MAP: string;
|
|
8
|
-
export declare const TRANSLATE_FILENAME: string;
|
|
9
|
-
export declare const GET_CLOUD_API_SIGNATURE: string;
|
|
10
|
-
export declare const GET_UPLOAD_TOKEN: string;
|
|
11
|
-
export declare const GET_ASYNC_RESULT: string;
|
|
12
|
-
export declare const UPLOAD_JS_SERVER: string;
|
|
13
|
-
export declare const GET_LATEST_VERSION: string;
|
|
14
|
-
export declare const cloudAPIAgentURL: string;
|
|
15
|
-
export declare const get3rdCloudCodeSecret: string;
|
|
16
|
-
export declare const cloudCosUploadURL: string;
|
|
17
|
-
export declare const scfTencentCloudUrl = "https://scf.tencentcloudapi.com";
|
|
18
|
-
export declare const dbTencentCloudUrl = "https://flexdb.tencentcloudapi.com";
|
|
19
|
-
export declare const tcbTencentCloudUrl = "https://tcb.tencentcloudapi.com";
|