@microsoft/teamsfx-core 1.3.0 → 1.3.1-alpha.59b5e7c6.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/build/common/constants.d.ts +13 -1
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +15 -2
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/depsLogger.d.ts +10 -0
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
- package/build/common/deps-checker/depsLogger.js +26 -0
- package/build/common/deps-checker/depsLogger.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +8 -5
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +19 -12
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +1 -0
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +2 -0
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/local/constants.d.ts +0 -42
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +1 -43
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts +2 -1
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +24 -15
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +2 -1
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +7 -5
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/localEnvProvider.js +1 -1
- package/build/common/local/localSettingsHelper.d.ts.map +1 -1
- package/build/common/local/localSettingsHelper.js +17 -16
- package/build/common/local/localSettingsHelper.js.map +1 -1
- package/build/common/local/portChecker.d.ts +2 -2
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +18 -5
- package/build/common/local/portChecker.js.map +1 -1
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +3 -3
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +0 -7
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +1 -51
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +2 -6
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +3 -7
- package/build/common/localSettingsConstants.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts +3 -3
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +15 -14
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +1 -3
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +0 -2
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/projectSettingsValidator.d.ts +0 -1
- package/build/common/projectSettingsValidator.d.ts.map +1 -1
- package/build/common/projectSettingsValidator.js +2 -18
- package/build/common/projectSettingsValidator.js.map +1 -1
- package/build/common/telemetry.d.ts +3 -1
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +2 -0
- package/build/common/telemetry.js.map +1 -1
- package/build/common/template-utils/templatesActions.js +2 -2
- package/build/common/template-utils/templatesUtils.d.ts +2 -1
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -1
- package/build/common/template-utils/templatesUtils.js +25 -7
- package/build/common/template-utils/templatesUtils.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +1 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +7 -8
- package/build/common/tools.js.map +1 -1
- package/build/core/downloadSample.js +1 -1
- package/build/core/downloadSample.js.map +1 -1
- package/build/core/environment.d.ts +8 -5
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +43 -4
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +5 -0
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +15 -1
- package/build/core/error.js.map +1 -1
- package/build/core/index.d.ts +15 -18
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +205 -262
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +1 -1
- package/build/core/middleware/CommonErrorHandlerMW.js +3 -0
- package/build/core/middleware/CommonErrorHandlerMW.js.map +1 -1
- package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoader.js +4 -3
- package/build/core/middleware/envInfoLoader.js.map +1 -1
- package/build/core/middleware/envInfoWriter.js +5 -6
- package/build/core/middleware/envInfoWriter.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +27 -22
- package/build/core/middleware/localSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +2 -6
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts +1 -0
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +8 -4
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsWriter.js +6 -4
- package/build/core/middleware/projectSettingsWriter.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts +6 -8
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +21 -44
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/solutionLoader.d.ts.map +1 -1
- package/build/core/middleware/solutionLoader.js +5 -3
- package/build/core/middleware/solutionLoader.js.map +1 -1
- package/build/core/middleware/solutionLoaderV3.js +3 -2
- package/build/core/middleware/solutionLoaderV3.js.map +1 -1
- package/build/core/pvm/broker.d.ts +24 -0
- package/build/core/pvm/broker.d.ts.map +1 -0
- package/build/core/pvm/broker.js +93 -0
- package/build/core/pvm/broker.js.map +1 -0
- package/build/core/pvm/constant.d.ts +11 -0
- package/build/core/pvm/constant.d.ts.map +1 -0
- package/build/core/pvm/constant.js +14 -0
- package/build/core/pvm/constant.js.map +1 -0
- package/build/core/pvm/depot.d.ts +43 -0
- package/build/core/pvm/depot.d.ts.map +1 -0
- package/build/core/pvm/depot.js +243 -0
- package/build/core/pvm/depot.js.map +1 -0
- package/build/core/pvm/pvm.d.ts +49 -0
- package/build/core/pvm/pvm.d.ts.map +1 -0
- package/build/core/pvm/pvm.js +82 -0
- package/build/core/pvm/pvm.js.map +1 -0
- package/build/core/pvm/type.d.ts +11 -0
- package/build/core/pvm/type.d.ts.map +1 -0
- package/build/{plugins/resource/apim/interfaces/IApimResource.js → core/pvm/type.js} +1 -1
- package/build/core/pvm/type.js.map +1 -0
- package/build/core/pvm/utility.d.ts +2 -0
- package/build/core/pvm/utility.d.ts.map +1 -0
- package/build/core/pvm/utility.js +10 -0
- package/build/core/pvm/utility.js.map +1 -0
- package/build/core/question.js +1 -1
- package/build/core/question.js.map +1 -1
- package/build/core/tools.d.ts +1 -2
- package/build/core/tools.d.ts.map +1 -1
- package/build/core/tools.js +1 -25
- package/build/core/tools.js.map +1 -1
- package/build/core/utils.d.ts +4 -0
- package/build/core/utils.d.ts.map +1 -0
- package/build/core/utils.js +14 -0
- package/build/core/utils.js.map +1 -0
- package/build/plugins/resource/aad/aadAppClient.d.ts +8 -8
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +29 -29
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/index.d.ts +1 -0
- package/build/plugins/resource/aad/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/index.js +6 -1
- package/build/plugins/resource/aad/index.js.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts +4 -3
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +13 -13
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +6 -4
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +60 -21
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +9 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +204 -0
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/aad/utils/telemetry.d.ts +0 -1
- package/build/plugins/resource/aad/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/telemetry.js +10 -17
- package/build/plugins/resource/aad/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/aad/utils/tokenProvider.d.ts +6 -2
- package/build/plugins/resource/aad/utils/tokenProvider.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/tokenProvider.js +11 -11
- package/build/plugins/resource/aad/utils/tokenProvider.js.map +1 -1
- package/build/plugins/resource/aad/v2/index.d.ts +10 -11
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js.map +1 -1
- package/build/plugins/resource/aad/v3/index.d.ts +20 -0
- package/build/plugins/resource/aad/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/aad/v3/index.js +213 -0
- package/build/plugins/resource/aad/v3/index.js.map +1 -0
- package/build/plugins/resource/apim/answer.d.ts +0 -6
- package/build/plugins/resource/apim/answer.d.ts.map +1 -1
- package/build/plugins/resource/apim/answer.js +6 -45
- package/build/plugins/resource/apim/answer.js.map +1 -1
- package/build/plugins/resource/apim/config.d.ts +5 -19
- package/build/plugins/resource/apim/config.d.ts.map +1 -1
- package/build/plugins/resource/apim/config.js +9 -35
- package/build/plugins/resource/apim/config.js.map +1 -1
- package/build/plugins/resource/apim/constants.d.ts +1 -30
- package/build/plugins/resource/apim/constants.d.ts.map +1 -1
- package/build/plugins/resource/apim/constants.js +37 -74
- package/build/plugins/resource/apim/constants.js.map +1 -1
- package/build/plugins/resource/apim/error.d.ts +0 -1
- package/build/plugins/resource/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +1 -6
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/factory.d.ts +12 -12
- package/build/plugins/resource/apim/factory.d.ts.map +1 -1
- package/build/plugins/resource/apim/factory.js +38 -42
- package/build/plugins/resource/apim/factory.js.map +1 -1
- package/build/plugins/resource/apim/index.d.ts +1 -1
- package/build/plugins/resource/apim/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/index.js +17 -39
- package/build/plugins/resource/apim/index.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts +2 -3
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +2 -3
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts +7 -13
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +17 -32
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/cliQuestion.d.ts +0 -8
- package/build/plugins/resource/apim/questions/cliQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/cliQuestion.js +1 -33
- package/build/plugins/resource/apim/questions/cliQuestion.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts +8 -14
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +39 -79
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/apim/services/apimService.d.ts +1 -12
- package/build/plugins/resource/apim/services/apimService.d.ts.map +1 -1
- package/build/plugins/resource/apim/services/apimService.js +0 -112
- package/build/plugins/resource/apim/services/apimService.js.map +1 -1
- package/build/plugins/resource/apim/utils/commonUtils.d.ts +1 -1
- package/build/plugins/resource/apim/utils/commonUtils.js +3 -3
- package/build/plugins/resource/apim/utils/namingRules.d.ts +0 -4
- package/build/plugins/resource/apim/utils/namingRules.d.ts.map +1 -1
- package/build/plugins/resource/apim/utils/namingRules.js +0 -32
- package/build/plugins/resource/apim/utils/namingRules.js.map +1 -1
- package/build/plugins/resource/apim/utils/progressBar.d.ts +2 -2
- package/build/plugins/resource/apim/utils/progressBar.d.ts.map +1 -1
- package/build/plugins/resource/apim/utils/progressBar.js +3 -3
- package/build/plugins/resource/apim/utils/progressBar.js.map +1 -1
- package/build/plugins/resource/apim/utils/telemetry.d.ts +2 -2
- package/build/plugins/resource/apim/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/apim/utils/telemetry.js +4 -5
- package/build/plugins/resource/apim/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/apim/v2/index.d.ts +3 -5
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +0 -6
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- package/build/plugins/resource/apim/v3/index.d.ts +15 -0
- package/build/plugins/resource/apim/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/apim/v3/index.js +192 -0
- package/build/plugins/resource/apim/v3/index.js.map +1 -0
- package/build/plugins/resource/appstudio/appStudio.d.ts +3 -0
- package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.js +3 -0
- package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +4 -0
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +45 -1
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts +4 -0
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +4 -0
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +3 -27
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +46 -13
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +3 -2
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +54 -70
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts +8 -4
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.js +13 -12
- package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/utils.d.ts +11 -0
- package/build/plugins/resource/appstudio/utils/utils.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/utils.js +105 -1
- package/build/plugins/resource/appstudio/utils/utils.js.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.d.ts +3 -3
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +6 -26
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +37 -3
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/plugin.d.ts +8 -0
- package/build/plugins/resource/appstudio/v3/plugin.d.ts.map +1 -0
- package/build/plugins/resource/appstudio/v3/plugin.js +95 -0
- package/build/plugins/resource/appstudio/v3/plugin.js.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/dotnet/plugin.js +1 -1
- package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -1
- package/build/plugins/resource/bot/enums/programmingLanguage.d.ts +2 -1
- package/build/plugins/resource/bot/enums/programmingLanguage.d.ts.map +1 -1
- package/build/plugins/resource/bot/enums/programmingLanguage.js +1 -0
- package/build/plugins/resource/bot/enums/programmingLanguage.js.map +1 -1
- package/build/plugins/resource/bot/index.js +3 -2
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +3 -3
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.js +8 -1
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +2 -0
- package/build/plugins/resource/frontend/dotnet/enum.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/deploy.js +18 -3
- package/build/plugins/resource/frontend/dotnet/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.js +55 -0
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +1 -3
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.js +42 -19
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +3 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.js +7 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts +23 -6
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.js +26 -7
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts +3 -0
- package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/steps.js +16 -0
- package/build/plugins/resource/frontend/dotnet/resources/steps.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts +19 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js +42 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +0 -1
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +4 -6
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +25 -24
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.d.ts +0 -10
- package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +15 -14
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/steps.d.ts +7 -0
- package/build/plugins/resource/frontend/resources/steps.d.ts.map +1 -0
- package/build/plugins/resource/frontend/resources/steps.js +41 -0
- package/build/plugins/resource/frontend/resources/steps.js.map +1 -0
- package/build/plugins/resource/frontend/resources/templateInfo.d.ts +4 -3
- package/build/plugins/resource/frontend/resources/templateInfo.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +8 -7
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +9 -35
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +9 -82
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +2 -3
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +3 -4
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/index.d.ts +15 -2
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v3/index.js +266 -2
- package/build/plugins/resource/frontend/v3/index.js.map +1 -1
- package/build/plugins/resource/function/index.d.ts +1 -0
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +1 -0
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts +1 -2
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +1 -1
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/plugin.js +2 -2
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/errors.d.ts +22 -1
- package/build/plugins/resource/function/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/errors.js +32 -32
- package/build/plugins/resource/function/resources/errors.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +2 -2
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +3 -3
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -1
- package/build/plugins/resource/function/v2/index.d.ts +3 -3
- package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.js.map +1 -1
- package/build/plugins/resource/function/v3/error.d.ts +26 -0
- package/build/plugins/resource/function/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/function/v3/error.js +69 -0
- package/build/plugins/resource/function/v3/error.js.map +1 -0
- package/build/plugins/resource/function/v3/index.d.ts +30 -0
- package/build/plugins/resource/function/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/function/v3/index.js +388 -0
- package/build/plugins/resource/function/v3/index.js.map +1 -0
- package/build/plugins/resource/identity/index.d.ts +1 -0
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +1 -0
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts +3 -3
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/identity/v3/index.d.ts +12 -0
- package/build/plugins/resource/identity/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/identity/v3/index.js +89 -0
- package/build/plugins/resource/identity/v3/index.js.map +1 -0
- package/build/plugins/resource/keyvault/index.d.ts +1 -0
- package/build/plugins/resource/keyvault/index.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/index.js +1 -0
- package/build/plugins/resource/keyvault/index.js.map +1 -1
- package/build/plugins/resource/keyvault/v3/index.d.ts +10 -0
- package/build/plugins/resource/keyvault/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/keyvault/v3/index.js +90 -0
- package/build/plugins/resource/keyvault/v3/index.js.map +1 -0
- package/build/plugins/resource/localdebug/constants.d.ts +0 -1
- package/build/plugins/resource/localdebug/constants.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/constants.js +0 -1
- package/build/plugins/resource/localdebug/constants.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +1 -4
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +2 -2
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.d.ts +2 -2
- package/build/plugins/resource/simpleauth/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +0 -3
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +0 -3
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +0 -16
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +0 -16
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts +1 -0
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +2 -1
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.d.ts +5 -10
- package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +17 -65
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +2 -3
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +15 -69
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +3 -4
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +6 -7
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts +2 -8
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.js +3 -11
- package/build/plugins/resource/sql/utils/dialogUtils.js.map +1 -1
- package/build/plugins/resource/sql/utils/message.d.ts +0 -10
- package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/message.js +0 -10
- package/build/plugins/resource/sql/utils/message.js.map +1 -1
- package/build/plugins/resource/sql/utils/telemetryUtils.d.ts +3 -3
- package/build/plugins/resource/sql/utils/telemetryUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/telemetryUtils.js +6 -7
- package/build/plugins/resource/sql/utils/telemetryUtils.js.map +1 -1
- package/build/plugins/resource/sql/v2/index.d.ts +4 -4
- package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/v3/index.d.ts +25 -0
- package/build/plugins/resource/sql/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/sql/v3/index.js +297 -0
- package/build/plugins/resource/sql/v3/index.js.map +1 -0
- package/build/plugins/resource/utils4v2.d.ts +16 -20
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +9 -33
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +5 -4
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +3 -4
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +122 -74
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +0 -7
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +2 -4
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +3 -5
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +2 -7
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +18 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasks.js +2 -4
- package/build/plugins/solution/fx-solution/debug/util/tasks.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts +2 -0
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js +145 -0
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js.map +1 -0
- package/build/plugins/solution/fx-solution/solution.d.ts +2 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +33 -14
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts +3 -0
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js +19 -0
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.js +32 -14
- package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +11 -6
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +31 -10
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +4 -5
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +32 -25
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.js +33 -15
- package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js +20 -10
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts +2 -3
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js +98 -130
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts +2 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +10 -8
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +9 -8
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.d.ts +3 -3
- package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.js +0 -2
- package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +6 -5
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +18 -17
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts +9 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.js +128 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +7 -9
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +9 -11
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js +15 -18
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/error.d.ts +1 -7
- package/build/plugins/solution/fx-solution/v3/error.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/error.js +0 -14
- package/build/plugins/solution/fx-solution/v3/error.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -3
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +150 -110
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.js +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/solution.d.ts +14 -24
- package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/solution.js +75 -19
- package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts +5 -0
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js +10 -0
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts +5 -3
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/userTask.js +161 -5
- package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/utils.d.ts +1 -2
- package/build/plugins/solution/fx-solution/v3/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/utils.js +0 -13
- package/build/plugins/solution/fx-solution/v3/utils.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addFeature.d.ts +5 -0
- package/build/plugins/solution/spfx-solution/addFeature.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/addFeature.js +38 -0
- package/build/plugins/solution/spfx-solution/addFeature.js.map +1 -0
- package/build/plugins/solution/spfx-solution/solution.d.ts +3 -10
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +4 -11
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
- package/build/plugins/solution/utils/questions.d.ts +5 -11
- package/build/plugins/solution/utils/questions.d.ts.map +1 -1
- package/build/plugins/solution/utils/questions.js +9 -62
- package/build/plugins/solution/utils/questions.js.map +1 -1
- package/package.json +12 -6
- package/resource/strings.json +28 -1
- package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +4 -2
- package/templates/plugins/resource/function/function-base.js.default.zip +0 -0
- package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +4 -2
- package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +3 -29
- package/templates/plugins/solution/{main.bicep → mainConfig.bicep} +0 -12
- package/templates/plugins/solution/mainProvision.bicep +10 -0
- package/build/core/middleware/projectSettingsLoaderV3.d.ts +0 -4
- package/build/core/middleware/projectSettingsLoaderV3.d.ts.map +0 -1
- package/build/core/middleware/projectSettingsLoaderV3.js +0 -49
- package/build/core/middleware/projectSettingsLoaderV3.js.map +0 -1
- package/build/plugins/resource/apim/interfaces/IApimResource.d.ts +0 -5
- package/build/plugins/resource/apim/interfaces/IApimResource.d.ts.map +0 -1
- package/build/plugins/resource/apim/interfaces/IApimResource.js.map +0 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +0 -15
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +0 -149
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +0 -1
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +0 -8
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +0 -95
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +0 -1
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts +0 -5
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js +0 -118
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +0 -4
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +0 -58
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +0 -29
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +0 -233
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/init.d.ts +0 -4
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/init.js +0 -44
- package/build/plugins/solution/fx-solution/v3/init.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts +0 -4
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +0 -108
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +0 -22
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +0 -219
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +0 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +0 -3
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/addModule.js +0 -29
- package/build/plugins/solution/spfx-solution/addModule.js.map +0 -1
- package/build/plugins/solution/spfx-solution/init.d.ts +0 -4
- package/build/plugins/solution/spfx-solution/init.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/init.js +0 -52
- package/build/plugins/solution/spfx-solution/init.js.map +0 -1
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +0 -5
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +0 -69
- package/build/plugins/solution/spfx-solution/scaffold.js.map +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
5
|
exports.zipDeploy = exports.generateZip = exports.build = exports.getFrameworkVersion = void 0;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
@@ -9,8 +11,12 @@ const templatesUtils_1 = require("../../../../../common/template-utils/templates
|
|
|
9
11
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
10
12
|
const errors_1 = require("../resources/errors");
|
|
11
13
|
const constants_1 = require("../constants");
|
|
12
|
-
const execute_1 = require("../../../function/utils/execute");
|
|
13
14
|
const dir_walk_1 = require("../../../function/utils/dir-walk");
|
|
15
|
+
const logger_1 = require("../../utils/logger");
|
|
16
|
+
const messages_1 = require("../resources/messages");
|
|
17
|
+
const progress_helper_1 = require("../../utils/progress-helper");
|
|
18
|
+
const steps_1 = require("../resources/steps");
|
|
19
|
+
const utils_1 = require("../../utils");
|
|
14
20
|
async function getFrameworkVersion(projectFilePath) {
|
|
15
21
|
const content = await fs_extra_1.default.readFile(projectFilePath, "utf8");
|
|
16
22
|
const framework = content.match(constants_1.RegularExpr.targetFramework);
|
|
@@ -21,8 +27,11 @@ async function getFrameworkVersion(projectFilePath) {
|
|
|
21
27
|
}
|
|
22
28
|
exports.getFrameworkVersion = getFrameworkVersion;
|
|
23
29
|
async function build(path, runtime) {
|
|
30
|
+
var _a;
|
|
31
|
+
(_a = progress_helper_1.ProgressHelper.progressHandler) === null || _a === void 0 ? void 0 : _a.next(steps_1.WebappDeployProgress.steps.build);
|
|
32
|
+
logger_1.Logger.info(messages_1.Messages.Build(path));
|
|
24
33
|
const command = constants_1.DotnetCommands.buildRelease(runtime);
|
|
25
|
-
await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.BuildError(error), async () => await
|
|
34
|
+
await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.BuildError(error), async () => await utils_1.Utils.execute(command, path));
|
|
26
35
|
}
|
|
27
36
|
exports.build = build;
|
|
28
37
|
async function generateZip(componentPath) {
|
|
@@ -48,15 +57,21 @@ async function generateZip(componentPath) {
|
|
|
48
57
|
}
|
|
49
58
|
exports.generateZip = generateZip;
|
|
50
59
|
async function zipDeploy(client, resourceGroupName, webAppName, componentPath) {
|
|
60
|
+
var _a, _b, _c;
|
|
61
|
+
logger_1.Logger.info(messages_1.Messages.GenerateZip(componentPath));
|
|
62
|
+
(_a = progress_helper_1.ProgressHelper.progressHandler) === null || _a === void 0 ? void 0 : _a.next(steps_1.WebappDeployProgress.steps.generateZip);
|
|
51
63
|
const zip = await errors_1.runWithErrorCatchAndThrow(new errors_1.ZipError(), async () => await generateZip(componentPath));
|
|
52
64
|
const zipContent = zip.toBuffer();
|
|
65
|
+
(_b = progress_helper_1.ProgressHelper.progressHandler) === null || _b === void 0 ? void 0 : _b.next(steps_1.WebappDeployProgress.steps.fetchCredential);
|
|
53
66
|
const publishCred = await errors_1.runWithErrorCatchAndThrow(new errors_1.PublishCredentialError(), async () => await client.webApps.listPublishingCredentials(resourceGroupName, webAppName));
|
|
54
67
|
const username = publishCred.publishingUserName;
|
|
55
68
|
const password = publishCred.publishingPassword;
|
|
56
69
|
if (!password) {
|
|
57
|
-
|
|
70
|
+
logger_1.Logger.error(messages_1.Messages.FailQueryPublishCred);
|
|
58
71
|
throw new errors_1.PublishCredentialError();
|
|
59
72
|
}
|
|
73
|
+
logger_1.Logger.info(messages_1.Messages.UploadZip(zipContent.length));
|
|
74
|
+
(_c = progress_helper_1.ProgressHelper.progressHandler) === null || _c === void 0 ? void 0 : _c.next(steps_1.WebappDeployProgress.steps.deploy);
|
|
60
75
|
await errors_1.runWithErrorCatchAndThrow(new errors_1.UploadZipError(), async () => await templatesUtils_1.sendRequestWithRetry(async () => await axios_1.default.post(constants_1.AzureInfo.zipDeployURL(webAppName), zipContent, {
|
|
61
76
|
headers: {
|
|
62
77
|
"Content-Type": "application/octet-stream",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/deploy.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,gEAA0B;AAC1B,mDAA6B;AAC7B,8DAA6B;AAC7B,wFAA2F;AAC3F,0DAA0B;AAC1B,gDAO6B;AAE7B,4CAKsB;AACtB,+DAAqE;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
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { TemplateInfo } from "../resources/templateInfo";
|
|
3
|
+
export declare function scaffoldFromZipPackage(componentPath: string, templateInfo: TemplateInfo): Promise<void>;
|
|
4
|
+
export declare function renderTemplateName(name: string, data: Buffer, appName: string): string;
|
|
5
|
+
export declare function genTemplateNameRenderReplaceFn(appName: string): (name: string, data: Buffer) => string;
|
|
6
|
+
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/scaffold.ts"],"names":[],"mappings":";AAoBA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,wBAAsB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,iBAgC7F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAE7E;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,UAC9C,MAAM,QAAQ,MAAM,YACnC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.genTemplateNameRenderReplaceFn = exports.renderTemplateName = exports.scaffoldFromZipPackage = void 0;
|
|
6
|
+
const errors_1 = require("../../resources/errors");
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
const logger_1 = require("../../utils/logger");
|
|
9
|
+
const messages_1 = require("../resources/messages");
|
|
10
|
+
const telemetry_helper_1 = require("../../utils/telemetry-helper");
|
|
11
|
+
const templatesActions_1 = require("../../../../../common/template-utils/templatesActions");
|
|
12
|
+
async function scaffoldFromZipPackage(componentPath, templateInfo) {
|
|
13
|
+
//TODO: Fallback part need to update download script
|
|
14
|
+
await templatesActions_1.scaffoldFromTemplates({
|
|
15
|
+
group: templateInfo.group,
|
|
16
|
+
lang: templateInfo.language,
|
|
17
|
+
scenario: templateInfo.scenario,
|
|
18
|
+
templatesFolderName: constants_1.DotnetPathInfo.TemplateFolderName,
|
|
19
|
+
dst: componentPath,
|
|
20
|
+
fileNameReplaceFn: genTemplateNameRenderReplaceFn(templateInfo.variables.BlazorAppServer),
|
|
21
|
+
fileDataReplaceFn: templatesActions_1.genTemplateRenderReplaceFn(templateInfo.variables),
|
|
22
|
+
onActionEnd: async (action, context) => {
|
|
23
|
+
var _a;
|
|
24
|
+
if (action.name === templatesActions_1.ScaffoldActionName.FetchTemplatesUrlWithTag) {
|
|
25
|
+
logger_1.Logger.info(messages_1.Messages.getTemplateFrom((_a = context.zipUrl) !== null && _a !== void 0 ? _a : constants_1.Constants.emptyString));
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
onActionError: async (action, context, error) => {
|
|
29
|
+
logger_1.Logger.info(error.toString());
|
|
30
|
+
switch (action.name) {
|
|
31
|
+
case templatesActions_1.ScaffoldActionName.FetchTemplatesUrlWithTag:
|
|
32
|
+
case templatesActions_1.ScaffoldActionName.FetchTemplatesZipFromUrl:
|
|
33
|
+
telemetry_helper_1.TelemetryHelper.sendScaffoldFallbackEvent(new errors_1.TemplateManifestError(error.message));
|
|
34
|
+
logger_1.Logger.info(messages_1.Messages.FailedFetchTemplate);
|
|
35
|
+
break;
|
|
36
|
+
case templatesActions_1.ScaffoldActionName.FetchTemplateZipFromLocal:
|
|
37
|
+
throw new errors_1.TemplateZipFallbackError();
|
|
38
|
+
case templatesActions_1.ScaffoldActionName.Unzip:
|
|
39
|
+
throw new errors_1.UnzipTemplateError();
|
|
40
|
+
default:
|
|
41
|
+
throw new errors_1.UnknownScaffoldError();
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
exports.scaffoldFromZipPackage = scaffoldFromZipPackage;
|
|
47
|
+
function renderTemplateName(name, data, appName) {
|
|
48
|
+
return name.replace(/BlazorAppServer/, appName).replace(/\.tpl/, "");
|
|
49
|
+
}
|
|
50
|
+
exports.renderTemplateName = renderTemplateName;
|
|
51
|
+
function genTemplateNameRenderReplaceFn(appName) {
|
|
52
|
+
return (name, data) => renderTemplateName(name, data, appName);
|
|
53
|
+
}
|
|
54
|
+
exports.genTemplateNameRenderReplaceFn = genTemplateNameRenderReplaceFn;
|
|
55
|
+
//# sourceMappingURL=scaffold.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/scaffold.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,mDAKgC;AAChC,4CAAqE;AACrE,+CAA4C;AAC5C,oDAAiD;AACjD,mEAA+D;AAC/D,4FAM+D;AAGxD,KAAK,UAAU,sBAAsB,CAAC,aAAqB,EAAE,YAA0B;IAC5F,oDAAoD;IACpD,MAAM,wCAAqB,CAAC;QAC1B,KAAK,EAAE,YAAY,CAAC,KAAK;QACzB,IAAI,EAAE,YAAY,CAAC,QAAQ;QAC3B,QAAQ,EAAE,YAAY,CAAC,QAAQ;QAC/B,mBAAmB,EAAE,0BAAQ,CAAC,kBAAkB;QAChD,GAAG,EAAE,aAAa;QAClB,iBAAiB,EAAE,8BAA8B,CAAC,YAAY,CAAC,SAAS,CAAC,eAAe,CAAC;QACzF,iBAAiB,EAAE,6CAA0B,CAAC,YAAY,CAAC,SAAS,CAAC;QACrE,WAAW,EAAE,KAAK,EAAE,MAAsB,EAAE,OAAwB,EAAE,EAAE;;YACtE,IAAI,MAAM,CAAC,IAAI,KAAK,qCAAkB,CAAC,wBAAwB,EAAE;gBAC/D,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,eAAe,CAAC,MAAA,O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ft/teamsfx-api";
|
|
2
2
|
import { TeamsFxResult } from "./error-factory";
|
|
3
3
|
import { WebSiteManagementModels } from "@azure/arm-appservice";
|
|
4
4
|
import { PluginImpl } from "../interface";
|
|
5
|
-
import { Func } from "@microsoft/teamsfx-api";
|
|
6
5
|
declare type Site = WebSiteManagementModels.Site;
|
|
7
6
|
export interface DotnetPluginConfig {
|
|
8
7
|
resourceGroupName?: string;
|
|
@@ -18,7 +17,6 @@ export interface DotnetPluginConfig {
|
|
|
18
17
|
site?: Site;
|
|
19
18
|
}
|
|
20
19
|
export declare class DotnetPluginImpl implements PluginImpl {
|
|
21
|
-
config: DotnetPluginConfig;
|
|
22
20
|
private syncConfigFromContext;
|
|
23
21
|
private checkAndGet;
|
|
24
22
|
scaffold(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAId,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,aAAa,EAId,MAAM,wBAAwB,CAAC;AAWhC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAyBhE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,aAAK,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IAEjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,qBAAa,gBAAiB,YAAW,UAAU;IACjD,OAAO,CAAC,qBAAqB;IAuB7B,OAAO,CAAC,WAAW;IAON,QAAQ,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAuBpD,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IA6ChE,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IA0B9D,UAAU,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAItD,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAIzD,SAAS,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAIrD,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAIvE,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;CA0ChE"}
|
|
@@ -7,6 +7,7 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const constants_1 = require("./constants");
|
|
9
9
|
const messages_1 = require("./resources/messages");
|
|
10
|
+
const scaffold_1 = require("./ops/scaffold");
|
|
10
11
|
const azure_client_1 = require("./utils/azure-client");
|
|
11
12
|
const enum_1 = require("./enum");
|
|
12
13
|
const errors_1 = require("./resources/errors");
|
|
@@ -16,28 +17,31 @@ const path_1 = tslib_1.__importDefault(require("path"));
|
|
|
16
17
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
17
18
|
const folder_1 = require("../../../../folder");
|
|
18
19
|
const tools_1 = require("../../../../common/tools");
|
|
20
|
+
const templateInfo_1 = require("./resources/templateInfo");
|
|
19
21
|
const constants_2 = require("../../../../common/constants");
|
|
20
22
|
const ResourcePluginContainer_1 = require("../../../solution/fx-solution/ResourcePluginContainer");
|
|
21
23
|
const adaptor_1 = require("../../../solution/fx-solution/v2/adaptor");
|
|
24
|
+
const progress_helper_1 = require("../utils/progress-helper");
|
|
25
|
+
const steps_1 = require("./resources/steps");
|
|
22
26
|
class DotnetPluginImpl {
|
|
23
|
-
constructor() {
|
|
24
|
-
this.config = {};
|
|
25
|
-
}
|
|
26
27
|
syncConfigFromContext(ctx) {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
const config = {};
|
|
27
30
|
const solutionConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.solutionPluginName);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
config.resourceGroupName = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceGroupName);
|
|
32
|
+
config.subscriptionId = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.subscriptionId);
|
|
33
|
+
config.webAppName = ctx.config.get(constants_1.DotnetConfigInfo.webAppName);
|
|
34
|
+
config.appServicePlanName = ctx.config.get(constants_1.DotnetConfigInfo.appServicePlanName);
|
|
35
|
+
config.projectFilePath = (_b = (_a = ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.pluginSettings) === null || _b === void 0 ? void 0 : _b.projectFilePath;
|
|
33
36
|
// Resource id priors to other configs
|
|
34
37
|
const webAppResourceId = ctx.config.get(enum_1.DotnetConfigKey.webAppResourceId);
|
|
35
38
|
if (webAppResourceId) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
config.webAppResourceId = webAppResourceId;
|
|
40
|
+
config.resourceGroupName = tools_1.getResourceGroupNameFromResourceId(webAppResourceId);
|
|
41
|
+
config.webAppName = tools_1.getSiteNameFromResourceId(webAppResourceId);
|
|
42
|
+
config.subscriptionId = tools_1.getSubscriptionIdFromResourceId(webAppResourceId);
|
|
40
43
|
}
|
|
44
|
+
return config;
|
|
41
45
|
}
|
|
42
46
|
checkAndGet(v, key) {
|
|
43
47
|
if (v) {
|
|
@@ -46,9 +50,23 @@ class DotnetPluginImpl {
|
|
|
46
50
|
throw new errors_1.FetchConfigError(key);
|
|
47
51
|
}
|
|
48
52
|
async scaffold(ctx) {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
logger_1.Logger.info(messages_1.Messages.StartScaffold);
|
|
55
|
+
if (!ctx.projectSettings) {
|
|
56
|
+
throw new errors_1.NoProjectSettingError();
|
|
57
|
+
}
|
|
58
|
+
const selectedCapabilities = ((_a = ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.solutionSettings)
|
|
59
|
+
.capabilities;
|
|
60
|
+
const templateInfos = templateInfo_1.generateTemplateInfos(selectedCapabilities, ctx);
|
|
61
|
+
for (const templateInfo of templateInfos) {
|
|
62
|
+
await scaffold_1.scaffoldFromZipPackage(ctx.root, templateInfo);
|
|
63
|
+
}
|
|
64
|
+
ctx.projectSettings.pluginSettings = Object.assign(Object.assign({}, (_b = ctx.projectSettings) === null || _b === void 0 ? void 0 : _b.pluginSettings), { projectFilePath: path_1.default.join(ctx.root, constants_1.DotnetPathInfo.projectFilename(ctx.projectSettings.appName)) });
|
|
65
|
+
logger_1.Logger.info(messages_1.Messages.EndScaffold);
|
|
49
66
|
return teamsfx_api_1.ok(undefined);
|
|
50
67
|
}
|
|
51
68
|
async generateArmTemplates(ctx) {
|
|
69
|
+
logger_1.Logger.info(messages_1.Messages.StartGenerateArmTemplates);
|
|
52
70
|
const bicepTemplateDirectory = constants_1.DotnetPathInfo.bicepTemplateFolder(folder_1.getTemplatesFolder());
|
|
53
71
|
const provisionTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_2.Bicep.ProvisionFileName);
|
|
54
72
|
const provisionWebappTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_1.WebappBicepFile.provisionTemplateFileName);
|
|
@@ -71,9 +89,11 @@ class DotnetPluginImpl {
|
|
|
71
89
|
},
|
|
72
90
|
Reference: constants_1.WebappBicep.Reference,
|
|
73
91
|
};
|
|
92
|
+
logger_1.Logger.info(messages_1.Messages.EndGenerateArmTemplates);
|
|
74
93
|
return teamsfx_api_1.ok(result);
|
|
75
94
|
}
|
|
76
95
|
async updateArmTemplates(ctx) {
|
|
96
|
+
logger_1.Logger.info(messages_1.Messages.EndUpdateArmTemplates);
|
|
77
97
|
const bicepTemplateDirectory = constants_1.DotnetPathInfo.bicepTemplateFolder(folder_1.getTemplatesFolder());
|
|
78
98
|
const configWebappTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_1.WebappBicepFile.configurationTemplateFileName);
|
|
79
99
|
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(ctx.projectSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
@@ -85,6 +105,7 @@ class DotnetPluginImpl {
|
|
|
85
105
|
Modules: { webapp: configModule },
|
|
86
106
|
},
|
|
87
107
|
};
|
|
108
|
+
logger_1.Logger.info(messages_1.Messages.EndUpdateArmTemplates);
|
|
88
109
|
return teamsfx_api_1.ok(result);
|
|
89
110
|
}
|
|
90
111
|
async localDebug(ctx) {
|
|
@@ -101,13 +122,14 @@ class DotnetPluginImpl {
|
|
|
101
122
|
}
|
|
102
123
|
async deploy(ctx) {
|
|
103
124
|
var _a;
|
|
104
|
-
logger_1.Logger.info(messages_1.Messages.StartDeploy
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
125
|
+
logger_1.Logger.info(messages_1.Messages.StartDeploy);
|
|
126
|
+
await progress_helper_1.ProgressHelper.startProgress(ctx, steps_1.WebappDeployProgress);
|
|
127
|
+
const config = this.syncConfigFromContext(ctx);
|
|
128
|
+
const webAppName = this.checkAndGet(config.webAppName, enum_1.DotnetConfigKey.webAppName);
|
|
129
|
+
const resourceGroupName = this.checkAndGet(config.resourceGroupName, enum_1.DotnetConfigKey.resourceGroupName);
|
|
130
|
+
const subscriptionId = this.checkAndGet(config.subscriptionId, enum_1.DotnetConfigKey.subscriptionId);
|
|
109
131
|
const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.DotnetConfigKey.credential);
|
|
110
|
-
const projectFilePath = path_1.default.resolve(ctx.root, this.checkAndGet(
|
|
132
|
+
const projectFilePath = path_1.default.resolve(ctx.root, this.checkAndGet(config.projectFilePath, enum_1.DotnetConfigKey.projectFilePath));
|
|
111
133
|
await errors_1.runWithErrorCatchAndThrow(new errors_1.ProjectPathError(projectFilePath), async () => await fs_extra_1.default.pathExists(projectFilePath));
|
|
112
134
|
const projectPath = path_1.default.dirname(projectFilePath);
|
|
113
135
|
const framework = await Deploy.getFrameworkVersion(projectFilePath);
|
|
@@ -116,7 +138,8 @@ class DotnetPluginImpl {
|
|
|
116
138
|
await Deploy.build(projectPath, runtime);
|
|
117
139
|
const folderToBeZipped = constants_1.DotnetPathInfo.publishFolderPath(projectPath, framework, runtime);
|
|
118
140
|
await Deploy.zipDeploy(client, resourceGroupName, webAppName, folderToBeZipped);
|
|
119
|
-
|
|
141
|
+
await progress_helper_1.ProgressHelper.endProgress(true);
|
|
142
|
+
logger_1.Logger.info(messages_1.Messages.EndDeploy);
|
|
120
143
|
return teamsfx_api_1.ok(undefined);
|
|
121
144
|
}
|
|
122
145
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/plugin.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/plugin.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAMgC;AAChC,2CAOqB;AACrB,mDAAgD;AAChD,6CAAwD;AAGxD,uDAA0D;AAC1D,iCAAsD;AACtD,+CAK4B;AAC5B,6DAAuC;AACvC,4CAAyC;AACzC,wDAAwB;AACxB,gEAA0B;AAC1B,+CAAwD;AACxD,oDAKkC;AAClC,2DAAiE;AACjE,4DAAqD;AACrD,mGAAsG;AACtG,sEAAyF;AAGzF,8DAA0D;AAC1D,6CAA2E;AAuB3E,MAAa,gBAAgB;IACnB,qBAAqB,CAAC,GAAkB;;QAC9C,MAAM,MAAM,GAAuB,EAAE,CAAC;QACtC,MAAM,cAAc,GAAqC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAC5E,+BAAmB,CAAC,kBAAkB,CACvC,CAAC;QACF,MAAM,CAAC,iBAAiB,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,+BAAmB,CAAC,iBAAiB,CAAW,CAAC;QAChG,MAAM,CAAC,cAAc,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,+BAAmB,CAAC,cAAc,CAAW,CAAC;QAE1F,MAAM,CAAC,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,4BAAU,CAAC,UAAU,CAAW,CAAC;QACpE,MAAM,CAAC,kBAAkB,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,4BAAU,CAAC,kBAAkB,CAAW,CAAC;QACpF,MAAM,CAAC,eAAe,GAAG,MAAA,MAAA,GAAG,CAAC,eAAe,0CAAE,cAAc,0CAAE,eAAyB,CAAC;QAExF,sCAAsC;QACtC,MAAM,gBAAgB,GAA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BAAS,CAAC,UAAU,CACrB,CAAC;QAEF,MAAM,eAAe,GAAG,cAAI,CAAC,OAAO,CAClC,GAAG,CAAC,IAAI,EACR,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,eAAe,EAAE,sBAAS,CAAC,eAAe,CAAC,CACpE,CAAC;QAEF,MAAM,kCAAyB,CAC7B,IAAI,yBAAgB,CAAC,eAAe,CAAC,EACrC,KAAK,IAAI,EAAE,CAAC,MAAM,kBAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CACjD,CAAC;QACF,MAAM,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAElD,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC;QACpE,MAAM,OAAO,GAAG,4BAAU,CAAC,cAAc,CAAC;QAE1C,MAAM,MAAM,GAAG,iCAAkB,CAAC,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAEzF,MAAM,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAEzC,MAAM,gBAAgB,GAAG,0BAAQ,CAAC,iBAAiB,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACrF,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;QAEhF,MAAM,gCAAc,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,SAAS,CAAC,CAAC;QAChC,OAAO,gBAAE,CAAC,SAAS,CAAC,CAAC;IACvB,CAAC;CACF;AAvLD,4CAuLC"}
|
|
@@ -10,6 +10,9 @@ export declare class DotnetPluginError extends FrontendPluginError {
|
|
|
10
10
|
setInnerError(error: Error): void;
|
|
11
11
|
getInnerError(): Error | undefined;
|
|
12
12
|
}
|
|
13
|
+
export declare class NoProjectSettingError extends DotnetPluginError {
|
|
14
|
+
constructor();
|
|
15
|
+
}
|
|
13
16
|
export declare class FetchConfigError extends DotnetPluginError {
|
|
14
17
|
constructor(key: string);
|
|
15
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/errors.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,oBAAY,SAAS;IACnB,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAYD,qBAAa,iBAAkB,SAAQ,mBAAmB;IACjD,UAAU,CAAC,EAAE,KAAK,CAAC;gBAGxB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EAAE,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,KAAK;IAMpB,UAAU,IAAI,MAAM;IAIpB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIjC,aAAa,IAAI,KAAK,GAAG,SAAS;CAGnC;AAED,qBAAa,gBAAiB,SAAQ,iBAAiB;gBACzC,GAAG,EAAE,MAAM;CAKxB;AAED,qBAAa,gBAAiB,SAAQ,iBAAiB;gBACzC,eAAe,EAAE,MAAM;CAMpC;AAED,qBAAa,UAAW,SAAQ,iBAAiB;gBACnC,UAAU,CAAC,EAAE,KAAK;CAU/B;AAED,qBAAa,QAAS,SAAQ,iBAAiB;;CAO9C;AAED,qBAAa,sBAAuB,SAAQ,iBAAiB;;CAO5D;AAED,qBAAa,cAAe,SAAQ,iBAAiB;;CAOpD;AAED,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,wBAAsB,yBAAyB,CAAC,CAAC,EAC/C,KAAK,EAAE,iBAAiB,EACxB,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,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AmB,CAAC;AACnD,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,wBAAsB,yBAAyB,CAAC,CAAC,EAC/C,KAAK,EAAE,iBAAiB,EACxB,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACvB,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED,wBAAsB,wBAAwB,CAAC,CAAC,EAC9C,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,iBAAiB,EACvC,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACvB,OAAO,CAAC,CAAC,CAAC,CASZ"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.runWithErrorCatchAndWrap = exports.runWithErrorCatchAndThrow = exports.UnhandledErrorMessage = exports.UnhandledErrorCode = exports.UploadZipError = exports.PublishCredentialError = exports.ZipError = exports.BuildError = exports.ProjectPathError = exports.FetchConfigError = exports.DotnetPluginError = exports.ErrorType = void 0;
|
|
5
|
+
exports.runWithErrorCatchAndWrap = exports.runWithErrorCatchAndThrow = exports.UnhandledErrorMessage = exports.UnhandledErrorCode = exports.UploadZipError = exports.PublishCredentialError = exports.ZipError = exports.BuildError = exports.ProjectPathError = exports.FetchConfigError = exports.NoProjectSettingError = exports.DotnetPluginError = exports.ErrorType = void 0;
|
|
6
6
|
const logger_1 = require("../../utils/logger");
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const errors_1 = require("../../resources/errors");
|
|
@@ -36,6 +36,12 @@ class DotnetPluginError extends errors_1.FrontendPluginError {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
exports.DotnetPluginError = DotnetPluginError;
|
|
39
|
+
class NoProjectSettingError extends DotnetPluginError {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(ErrorType.System, "NoProjectSettingError", "Failed to load project setting", []);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.NoProjectSettingError = NoProjectSettingError;
|
|
39
45
|
class FetchConfigError extends DotnetPluginError {
|
|
40
46
|
constructor(key) {
|
|
41
47
|
super(ErrorType.User, "FetchConfigError", `Failed to find ${key} from configuration`, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/errors.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,+CAA4C;AAC5C,wDAA0D;AAC1D,mDAA6D;AAE7D,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,yCAAI,CAAA;IACJ,6CAAM,CAAA;AACR,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAED,MAAM,IAAI,GAAG;IACX,QAAQ,EAAE,iCAAiC;IAC3C,WAAW,EAAE,+CAA+C;IAC5D,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,6BAA6B;IACvC,YAAY,EAAE,gCAAgC;IAC9C,kBAAkB,EAAE,+DAA+D;IACnF,kBAAkB,EAAE,iEAAiE,8BAAgB,kBAAkB;CACxH,CAAC;AAEF,MAAa,iBAAkB,SAAQ,4BAAmB;IAGxD,YACE,SAAoB,EACpB,IAAY,EACZ,OAAe,EACf,WAAqB,EACrB,QAAiB,EACjB,UAAkB;QAElB,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;QACvD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,UAAU;QACR,OAAO,GAAG,IAAI,CAAC,OAAO,iBAAiB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACtE,CAAC;IAED,aAAa,CAAC,KAAY;QACxB,IA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Aa,cAAe,SAAQ,iBAAiB;IACnD;QACE,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,gBAAgB,EAAE,+BAA+B,EAAE;YACvE,IAAI,CAAC,YAAY;YACjB,IAAI,CAAC,QAAQ;SACd,CAAC,CAAC;IACL,CAAC;CACF;AAPD,wCAOC;AAEY,QAAA,kBAAkB,GAAG,gBAAgB,CAAC;AACtC,QAAA,qBAAqB,GAAG,kBAAkB,CAAC;AAEjD,KAAK,UAAU,yBAAyB,CAC7C,KAAwB,EACxB,EAAwB;IAExB,IAAI;QACF,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KACpC;IAAC,OAAO,CAAM,EAAE;QACf,eAAM,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAXD,8DAWC;AAEM,KAAK,UAAU,wBAAwB,CAC5C,IAAuC,EACvC,EAAwB;IAExB,IAAI;QACF,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KACpC;IAAC,OAAO,CAAM,EAAE;QACf,eAAM,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAZD,4DAYC"}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/errors.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,+CAA4C;AAC5C,wDAA0D;AAC1D,mDAA6D;AAE7D,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,yCAAI,CAAA;IACJ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ExB,IAAI;QACF,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KACpC;IAAC,OAAO,CAAM,EAAE;QACf,eAAM,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAXD,8DAWC;AAEM,KAAK,UAAU,wBAAwB,CAC5C,IAAuC,EACvC,EAAwB;IAExB,IAAI;QACF,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KACpC;IAAC,OAAO,CAAM,EAAE;QACf,eAAM,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAZD,4DAYC"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
export declare class Messages {
|
|
2
|
-
static readonly StartScaffold
|
|
3
|
-
static readonly EndScaffold
|
|
4
|
-
static readonly
|
|
5
|
-
static readonly
|
|
6
|
-
static readonly
|
|
7
|
-
static readonly
|
|
2
|
+
static readonly StartScaffold = "Scaffolding.";
|
|
3
|
+
static readonly EndScaffold = "Successfully scaffolded.";
|
|
4
|
+
static readonly StartDeploy = "Deploying.";
|
|
5
|
+
static readonly EndDeploy = "Successfully deployed.";
|
|
6
|
+
static readonly StartGenerateArmTemplates = "Generating ARM templates.";
|
|
7
|
+
static readonly EndGenerateArmTemplates = "Successfully generated ARM templates.";
|
|
8
|
+
static readonly StartUpdateArmTemplates = "Updating ARM templates.";
|
|
9
|
+
static readonly EndUpdateArmTemplates = "Successfully updated ARM templates.";
|
|
10
|
+
static readonly getTemplateFrom: (url: string) => string;
|
|
11
|
+
static readonly FailedFetchTemplate = "Failed to retrieve latest template from GitHub. Using local template instead.";
|
|
12
|
+
static readonly Build: (projectPath: string) => string;
|
|
13
|
+
static readonly GenerateZip: (projectPath: string) => string;
|
|
14
|
+
static readonly FailQueryPublishCred = "Failed to find publish credentials.";
|
|
15
|
+
static readonly UploadZip: (size: number) => string;
|
|
16
|
+
}
|
|
17
|
+
export declare class ProgressTitle {
|
|
18
|
+
static readonly DeployProgressTitle = "Deploying to Azure Web App";
|
|
19
|
+
}
|
|
20
|
+
export declare class ProgressMessages {
|
|
21
|
+
static readonly Build = "Building target project.";
|
|
22
|
+
static readonly GenerateZip = "Generating zip package.";
|
|
23
|
+
static readonly FetchCredential = "Retrieving deploy credentials.";
|
|
24
|
+
static readonly Deploy = "Uploading zip package.";
|
|
8
25
|
}
|
|
9
26
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/messages.ts"],"names":[],"mappings":"AAGA,qBAAa,QAAQ;IAEnB,MAAM,CAAC,QAAQ,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/messages.ts"],"names":[],"mappings":"AAGA,qBAAa,QAAQ;IAEnB,MAAM,CAAC,QAAQ,CAAC,aAAa,kBAAkB;IAC/C,MAAM,CAAC,QAAQ,CAAC,WAAW,8BAA8B;IACzD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAgB;IAC3C,MAAM,CAAC,QAAQ,CAAC,SAAS,4BAA4B;IACrD,MAAM,CAAC,QAAQ,CAAC,yBAAyB,+BAA+B;IACxE,MAAM,CAAC,QAAQ,CAAC,uBAAuB,2CAA2C;IAClF,MAAM,CAAC,QAAQ,CAAC,uBAAuB,6BAA6B;IACpE,MAAM,CAAC,QAAQ,CAAC,qBAAqB,yCAAyC;IAE9E,MAAM,CAAC,QAAQ,CAAC,eAAe,QAAS,MAAM,YAA0C;IACxF,MAAM,CAAC,QAAQ,CAAC,mBAAmB,mFAC+C;IAElF,MAAM,CAAC,QAAQ,CAAC,KAAK,gBAAiB,MAAM,YAAgC;IAC5E,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAiB,MAAM,YAA6C;IAC/F,MAAM,CAAC,QAAQ,CAAC,oBAAoB,yCAAyC;IAC7E,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAU,MAAM,YAAsC;CAChF;AAED,qBAAa,aAAa;IACxB,MAAM,CAAC,QAAQ,CAAC,mBAAmB,gCAAgC;CACpE;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,KAAK,8BAA8B;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,6BAA6B;IACxD,MAAM,CAAC,QAAQ,CAAC,eAAe,oCAAoC;IACnE,MAAM,CAAC,QAAQ,CAAC,MAAM,4BAA4B;CACnD"}
|
|
@@ -2,15 +2,34 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Messages = void 0;
|
|
5
|
+
exports.ProgressMessages = exports.ProgressTitle = exports.Messages = void 0;
|
|
6
6
|
class Messages {
|
|
7
7
|
}
|
|
8
8
|
exports.Messages = Messages;
|
|
9
9
|
// Logging messages
|
|
10
|
-
Messages.StartScaffold =
|
|
11
|
-
Messages.EndScaffold =
|
|
12
|
-
Messages.
|
|
13
|
-
Messages.
|
|
14
|
-
Messages.
|
|
15
|
-
Messages.
|
|
10
|
+
Messages.StartScaffold = "Scaffolding.";
|
|
11
|
+
Messages.EndScaffold = "Successfully scaffolded.";
|
|
12
|
+
Messages.StartDeploy = "Deploying.";
|
|
13
|
+
Messages.EndDeploy = "Successfully deployed.";
|
|
14
|
+
Messages.StartGenerateArmTemplates = "Generating ARM templates.";
|
|
15
|
+
Messages.EndGenerateArmTemplates = "Successfully generated ARM templates.";
|
|
16
|
+
Messages.StartUpdateArmTemplates = "Updating ARM templates.";
|
|
17
|
+
Messages.EndUpdateArmTemplates = "Successfully updated ARM templates.";
|
|
18
|
+
Messages.getTemplateFrom = (url) => `Retrieving template from '${url}'.`;
|
|
19
|
+
Messages.FailedFetchTemplate = "Failed to retrieve latest template from GitHub. Using local template instead.";
|
|
20
|
+
Messages.Build = (projectPath) => `Building ${projectPath}.`;
|
|
21
|
+
Messages.GenerateZip = (projectPath) => `Adding ${projectPath} to zip package.`;
|
|
22
|
+
Messages.FailQueryPublishCred = "Failed to find publish credentials.";
|
|
23
|
+
Messages.UploadZip = (size) => `Upload zip package (${size}B).`;
|
|
24
|
+
class ProgressTitle {
|
|
25
|
+
}
|
|
26
|
+
exports.ProgressTitle = ProgressTitle;
|
|
27
|
+
ProgressTitle.DeployProgressTitle = "Deploying to Azure Web App";
|
|
28
|
+
class ProgressMessages {
|
|
29
|
+
}
|
|
30
|
+
exports.ProgressMessages = ProgressMessages;
|
|
31
|
+
ProgressMessages.Build = "Building target project.";
|
|
32
|
+
ProgressMessages.GenerateZip = "Generating zip package.";
|
|
33
|
+
ProgressMessages.FetchCredential = "Retrieving deploy credentials.";
|
|
34
|
+
ProgressMessages.Deploy = "Uploading zip package.";
|
|
16
35
|
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/messages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,QAAQ;;AAArB,
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/messages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,QAAQ;;AAArB,4BAmBC;AAlBC,mBAAmB;AACH,sBAAa,GAAG,cAAc,CAAC;AAC/B,oBAAW,GAAG,0BAA0B,CAAC;AACzC,oBAAW,GAAG,YAAY,CAAC;AAC3B,kBAAS,GAAG,wBAAwB,CAAC;AACrC,kCAAyB,GAAG,2BAA2B,CAAC;AACxD,gCAAuB,GAAG,uCAAuC,CAAC;AAClE,gCAAuB,GAAG,yBAAyB,CAAC;AACpD,8BAAqB,GAAG,qCAAqC,CAAC;AAE9D,wBAAe,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,6BAA6B,GAAG,IAAI,CAAC;AACxE,4BAAmB,GACjC,+EAA+E,CAAC;AAElE,cAAK,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,YAAY,WAAW,GAAG,CAAC;AAC5D,oBAAW,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,UAAU,WAAW,kBAAkB,CAAC;AAC/E,6BAAoB,GAAG,qCAAqC,CAAC;AAC7D,kBAAS,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,uBAAuB,IAAI,KAAK,CAAC;AAGjF,MAAa,aAAa;;AAA1B,sCAEC;AADiB,iCAAmB,GAAG,4BAA4B,CAAC;AAGrE,MAAa,gBAAgB;;AAA7B,4CAKC;AAJiB,sBAAK,GAAG,0BAA0B,CAAC;AACnC,4BAAW,GAAG,yBAAyB,CAAC;AACxC,gCAAe,GAAG,gCAAgC,CAAC;AACnD,uBAAM,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/steps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAGxD,eAAO,MAAM,oBAAoB,EAAE,SAQlC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.WebappDeployProgress = void 0;
|
|
6
|
+
const messages_1 = require("./messages");
|
|
7
|
+
exports.WebappDeployProgress = {
|
|
8
|
+
title: messages_1.ProgressTitle.DeployProgressTitle,
|
|
9
|
+
steps: {
|
|
10
|
+
build: messages_1.ProgressMessages.Build,
|
|
11
|
+
generateZip: messages_1.ProgressMessages.GenerateZip,
|
|
12
|
+
fetchCredential: messages_1.ProgressMessages.FetchCredential,
|
|
13
|
+
deploy: messages_1.ProgressMessages.Deploy,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/steps.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,yCAA6D;AAEhD,QAAA,oBAAoB,GAAc;IAC7C,KAAK,EAAE,wBAAa,CAAC,mBAAmB;IACxC,KAAK,EAAE;QACL,KAAK,EAAE,2BAAgB,CAAC,KAAK;QAC7B,WAAW,EAAE,2BAAgB,CAAC,WAAW;QACzC,eAAe,EAAE,2BAAgB,CAAC,eAAe;QACjD,MAAM,EAAE,2BAAgB,CAAC,MAAM;KAChC;CACF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PluginContext } from "@microsoft/teamsfx-api";
|
|
2
|
+
export declare type TemplateVariable = {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export declare class TemplateInfo {
|
|
6
|
+
group: string;
|
|
7
|
+
language: string;
|
|
8
|
+
scenario: string;
|
|
9
|
+
version: string;
|
|
10
|
+
variables: TemplateVariable;
|
|
11
|
+
constructor(ctx: PluginContext, group: string, templateVariable: TemplateVariable);
|
|
12
|
+
static readonly SupportedCapabilities: Map<string, string>;
|
|
13
|
+
static readonly DonetLanguage = "csharp";
|
|
14
|
+
static readonly DefaultScenario = "default";
|
|
15
|
+
static readonly BaseGroup = "blazor-base";
|
|
16
|
+
static readonly version: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function generateTemplateInfos(selectedCapabilities: string[], ctx: PluginContext): TemplateInfo[];
|
|
19
|
+
//# sourceMappingURL=templateInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/templateInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAIvD,oBAAY,gBAAgB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEzD,qBAAa,YAAY;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,gBAAgB,CAAC;gBAEhB,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB;IAQjF,MAAM,CAAC,QAAQ,CAAC,qBAAqB,sBAGlC;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,YAAY;IACzC,MAAM,CAAC,QAAQ,CAAC,eAAe,aAAa;IAC5C,MAAM,CAAC,QAAQ,CAAC,SAAS,iBAAiB;IAC1C,MAAM,CAAC,QAAQ,CAAC,OAAO,SAAoB;CAC5C;AAED,wBAAgB,qBAAqB,CACnC,oBAAoB,EAAE,MAAM,EAAE,EAC9B,GAAG,EAAE,aAAa,GACjB,YAAY,EAAE,CAmBhB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateTemplateInfos = exports.TemplateInfo = void 0;
|
|
4
|
+
const constants_1 = require("./../constants");
|
|
5
|
+
const templates_1 = require("../../../../../common/template-utils/templates");
|
|
6
|
+
class TemplateInfo {
|
|
7
|
+
constructor(ctx, group, templateVariable) {
|
|
8
|
+
this.group = group;
|
|
9
|
+
this.version = TemplateInfo.version;
|
|
10
|
+
this.language = TemplateInfo.DonetLanguage;
|
|
11
|
+
this.variables = templateVariable;
|
|
12
|
+
this.scenario = TemplateInfo.DefaultScenario;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.TemplateInfo = TemplateInfo;
|
|
16
|
+
TemplateInfo.SupportedCapabilities = new Map([
|
|
17
|
+
[constants_1.Capability.tab, "IS_TAB"],
|
|
18
|
+
[constants_1.Capability.bot, "IS_BOT"],
|
|
19
|
+
]);
|
|
20
|
+
TemplateInfo.DonetLanguage = "csharp";
|
|
21
|
+
TemplateInfo.DefaultScenario = "default";
|
|
22
|
+
TemplateInfo.BaseGroup = "blazor-base";
|
|
23
|
+
TemplateInfo.version = templates_1.templatesVersion;
|
|
24
|
+
function generateTemplateInfos(selectedCapabilities, ctx) {
|
|
25
|
+
const projectName = ctx.projectSettings.appName;
|
|
26
|
+
const templateVariable = { BlazorAppServer: projectName };
|
|
27
|
+
const templateInfoList = [];
|
|
28
|
+
const variables = [];
|
|
29
|
+
selectedCapabilities.forEach((capability) => {
|
|
30
|
+
if (TemplateInfo.SupportedCapabilities.has(capability)) {
|
|
31
|
+
templateInfoList.push(new TemplateInfo(ctx, capability.toLowerCase(), templateVariable));
|
|
32
|
+
variables.push(TemplateInfo.SupportedCapabilities.get(capability));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
// Generate templateInfo for base scenrio. Add variables into templateVariable
|
|
36
|
+
variables.forEach((v) => (templateVariable[v] = "true"));
|
|
37
|
+
const baseTemplateInfo = new TemplateInfo(ctx, TemplateInfo.BaseGroup, templateVariable);
|
|
38
|
+
templateInfoList.push(baseTemplateInfo);
|
|
39
|
+
return templateInfoList;
|
|
40
|
+
}
|
|
41
|
+
exports.generateTemplateInfos = generateTemplateInfos;
|
|
42
|
+
//# sourceMappingURL=templateInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateInfo.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/templateInfo.ts"],"names":[],"mappings":";;;AACA,8CAA4C;AAC5C,8EAAkF;AAIlF,MAAa,YAAY;IAOvB,YAAY,GAAkB,EAAE,KAAa,EAAE,gBAAkC;QAC/E,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,aAAa,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,eAAe,CAAC;IAC/C,CAAC;;AAbH,oCAuBC;AARiB,kCAAqB,GAAG,IAAI,GAAG,CAAiB;IAC9D,CAAC,sBAAU,CAAC,GAAG,EAAE,QAAQ,CAAC;IAC1B,CAAC,sBAAU,CAAC,GAAG,EAAE,QAAQ,CAAC;CAC3B,CAAC,CAAC;AACa,0BAAa,GAAG,QAAQ,CAAC;AACzB,4BAAe,GAAG,SAAS,CAAC;AAC5B,sBAAS,GAAG,aAAa,CAAC;AAC1B,oBAAO,GAAG,4BAAgB,CAAC;AAG7C,SAAgB,qBAAqB,CACnC,oBAA8B,EAC9B,GAAkB;IAElB,MAAM,WAAW,GAAG,GAAG,CAAC,eAAgB,CAAC,OAAO,CAAC;IACjD,MAAM,gBAAgB,GAAqB,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC;IAC5E,MAAM,gBAAgB,GAAmB,EAAE,CAAC;IAC5C,MAAM,SAAS,GAAa,EAAE,CAAC;IAE/B,oBAAoB,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;QAC1C,IAAI,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;YACtD,gBAAgB,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,GAAG,EAAE,UAAU,CAAC,WAAW,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC;YACzF,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,UAAU,CAAE,CAAC,CAAC;SACrE;IACH,CAAC,CAAC,CAAC;IAEH,8EAA8E;IAC9E,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;IACzD,MAAM,gBAAgB,GAAG,IAAI,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;IACzF,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAExC,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAtBD,sDAsBC"}
|
|
@@ -14,7 +14,6 @@ export declare class FrontendPlugin implements Plugin {
|
|
|
14
14
|
private static setContext;
|
|
15
15
|
private static isVsPlatform;
|
|
16
16
|
scaffold(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
17
|
-
provision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
18
17
|
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
19
18
|
preDeploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
20
19
|
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|