@microsoft/teamsfx-core 1.2.0-rc.1 → 1.2.2-alpha.7b2fe9ea.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/armInterface.d.ts +0 -20
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +1 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +2 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +12 -7
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +1 -0
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +1 -0
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +9 -1
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
- package/build/common/deps-checker/util/extensionInstaller.js +47 -0
- package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
- package/build/common/deps-checker/util/index.d.ts +5 -0
- package/build/common/deps-checker/util/index.d.ts.map +1 -0
- package/build/common/deps-checker/util/index.js +10 -0
- package/build/common/deps-checker/util/index.js.map +1 -0
- package/build/common/index.d.ts +1 -3
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +1 -3
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +5 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +7 -1
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/index.d.ts +5 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js +10 -0
- package/build/common/local/index.js.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
- package/build/common/local/localCertificateManager.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +37 -47
- package/build/common/local/localCertificateManager.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +6 -2
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +41 -1
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
- package/build/common/local/process.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
- package/build/common/local/process.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +5 -5
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +28 -21
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +1 -1
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +6 -4
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +1 -0
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +1 -0
- package/build/common/localSettingsConstants.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +1 -0
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +2 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +2 -0
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/samples-config.json +24 -12
- package/build/common/samples.d.ts +1 -0
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +1 -0
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +7 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +10 -4
- package/build/common/telemetry.js.map +1 -1
- package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
- package/build/common/template-utils/templates.d.ts.map +1 -0
- package/build/common/{templates.js → template-utils/templates.js} +1 -1
- package/build/common/template-utils/templates.js.map +1 -0
- package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
- package/build/common/template-utils/templatesActions.d.ts.map +1 -0
- package/build/common/{templatesActions.js → template-utils/templatesActions.js} +3 -3
- package/build/common/template-utils/templatesActions.js.map +1 -0
- package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +0 -0
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
- package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +1 -1
- package/build/common/template-utils/templatesUtils.js.map +1 -0
- package/build/common/tools.d.ts +1 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +41 -12
- package/build/common/tools.js.map +1 -1
- package/build/core/index.d.ts +2 -2
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +14 -6
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/index.d.ts +0 -1
- package/build/core/middleware/index.d.ts.map +1 -1
- package/build/core/middleware/index.js +0 -1
- package/build/core/middleware/index.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +1 -11
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/permissionRequest.js +2 -2
- package/build/core/permissionRequest.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +7 -4
- package/build/core/question.js.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +3 -4
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +1 -2
- package/build/plugins/resource/aad/errors.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +33 -46
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +2 -0
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +14 -14
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +1 -0
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +20 -38
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/aad/v2/index.d.ts +2 -2
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js +2 -1
- package/build/plugins/resource/aad/v2/index.js.map +1 -1
- package/build/plugins/resource/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +1 -4
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +23 -62
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +0 -7
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +6 -13
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/apim/v2/index.d.ts +2 -2
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +2 -1
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +3 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +12 -11
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +2 -36
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +1 -31
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +16 -8
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +14 -1
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.d.ts +2 -2
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js +2 -1
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +1 -3
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +28 -16
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
- package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +1 -1
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +16 -135
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +2 -2
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js +2 -1
- package/build/plugins/resource/bot/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/configs.d.ts +1 -1
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +3 -9
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +2 -8
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +3 -11
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +52 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.js +69 -0
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +34 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +124 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +6 -3
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +27 -45
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/interface.d.ts +13 -0
- package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
- package/build/plugins/resource/frontend/interface.js +3 -0
- package/build/plugins/resource/frontend/interface.js.map +1 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +43 -0
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +3 -3
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +14 -46
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +31 -67
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.js +9 -6
- package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +3 -2
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +5 -1
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +15 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +149 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +8 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +95 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
- package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/error.js +66 -0
- package/build/plugins/resource/frontend/v3/error.js.map +1 -0
- package/build/plugins/resource/frontend/v3/index.d.ts +3 -0
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/index.js +7 -0
- package/build/plugins/resource/frontend/v3/index.js.map +1 -0
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +8 -21
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +8 -9
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.js +1 -1
- package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +35 -138
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/message.d.ts +0 -1
- package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/message.js +0 -1
- package/build/plugins/resource/function/resources/message.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.d.ts +2 -2
- package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.js +2 -1
- package/build/plugins/resource/function/v2/index.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +0 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +3 -22
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts +2 -2
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js +2 -1
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/plugin.js +1 -2
- package/build/plugins/resource/keyvault/plugin.js.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.d.ts +2 -2
- package/build/plugins/resource/keyvault/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.js +2 -1
- package/build/plugins/resource/keyvault/v2/index.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts +2 -2
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +2 -1
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +1 -6
- package/build/plugins/resource/simpleauth/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +2 -7
- 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 +2 -1
- package/build/plugins/resource/simpleauth/v2/index.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +14 -9
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +5 -4
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/spfx/v2/index.d.ts +2 -2
- package/build/plugins/resource/spfx/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/v2/index.js +2 -1
- package/build/plugins/resource/spfx/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/config.d.ts +1 -0
- package/build/plugins/resource/sql/config.d.ts.map +1 -1
- package/build/plugins/resource/sql/config.js +1 -0
- package/build/plugins/resource/sql/config.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +3 -0
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +3 -0
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +1 -1
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +1 -1
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +10 -10
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +3 -0
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +76 -68
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +2 -2
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +13 -12
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/v2/index.d.ts +2 -2
- package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/v2/index.js +2 -1
- package/build/plugins/resource/sql/v2/index.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts +1 -1
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +3 -3
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +3 -3
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +3 -3
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +9 -2
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +44 -13
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +11 -10
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +1 -0
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +1 -0
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
- package/build/plugins/solution/fx-solution/debug/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 -2
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +5 -3
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +2 -2
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +32 -22
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +15 -15
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.js +1 -2
- package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +196 -122
- 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 +9 -16
- 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 +84 -99
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.js +1 -2
- 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 +6 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +1 -1
- 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 +7 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +3 -3
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +7 -5
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +2 -4
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +29 -6
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +6 -14
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +23 -51
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +1 -3
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.js +9 -0
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +219 -16
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +96 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +8 -13
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +30 -52
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +2 -4
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +2 -10
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +3 -39
- package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.d.ts +12 -17
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +7 -7
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
- package/package.json +6 -7
- package/resource/strings.json +23 -8
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
- package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
- package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
- 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/bicep/frontendHostingProvision.bicep +4 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -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/config.template.bicep +2 -0
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
- 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/identity/bicep/identityProvision.template.bicep +2 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
- package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +5 -0
- package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +15 -0
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +9 -5
- package/templates/plugins/resource/storage/bicep/azureStorageProvision.bicep +25 -0
- package/templates/plugins/resource/storage/bicep/provision.template.bicep +15 -0
- package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
- package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
- package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
- package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
- package/build/common/templates.d.ts.map +0 -1
- package/build/common/templates.js.map +0 -1
- package/build/common/templatesActions.d.ts.map +0 -1
- package/build/common/templatesActions.js.map +0 -1
- package/build/common/templatesUtils.d.ts.map +0 -1
- package/build/common/templatesUtils.js.map +0 -1
- package/build/core/middleware/projectUpgrader.d.ts +0 -6
- package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
- package/build/core/middleware/projectUpgrader.js +0 -224
- package/build/core/middleware/projectUpgrader.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
- package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.js +0 -98
- package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/enum.js +0 -39
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
- package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
- package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
- package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
- package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
- package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/deploy.ts"],"names":[],"mappings":";;;;AAAA,gEAA0B;AAC1B,mDAA6B;AAC7B,8DAA6B;AAC7B,wFAA2F;AAC3F,0DAA0B;AAC1B,gDAO6B;AAE7B,4CAKsB;AACtB,6DAA0D;AAC1D,+DAAqE;AAE9D,KAAK,UAAU,mBAAmB,CAAC,eAAuB;IAC/D,MAAM,OAAO,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,eAAe,E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,UAAU,CAAC,EAAE,UAAU,EAAE;QAC/D,OAAO,EAAE;YACP,cAAc,EAAE,0BAA0B;YAC1C,eAAe,EAAE,UAAU;SAC5B;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB;QACD,gBAAgB,EAAE,QAAQ;QAC1B,aAAa,EAAE,QAAQ;QACvB,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KACxB,CAAC,EACJ,CAAC,CACF,CACJ,CAAC;AACJ,CAAC;AA7CD,8BA6CC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PluginContext } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { TeamsFxResult } from "./error-factory";
|
|
3
|
+
import { WebSiteManagementModels } from "@azure/arm-appservice";
|
|
4
|
+
import { PluginImpl } from "../interface";
|
|
5
|
+
import { Func } from "@microsoft/teamsfx-api";
|
|
6
|
+
declare type Site = WebSiteManagementModels.Site;
|
|
7
|
+
export interface DotnetPluginConfig {
|
|
8
|
+
resourceGroupName?: string;
|
|
9
|
+
subscriptionId?: string;
|
|
10
|
+
resourceNameSuffix?: string;
|
|
11
|
+
location?: string;
|
|
12
|
+
webAppName?: string;
|
|
13
|
+
appServicePlanName?: string;
|
|
14
|
+
endpoint?: string;
|
|
15
|
+
domain?: string;
|
|
16
|
+
projectFilePath?: string;
|
|
17
|
+
webAppResourceId?: string;
|
|
18
|
+
site?: Site;
|
|
19
|
+
}
|
|
20
|
+
export declare class DotnetPluginImpl implements PluginImpl {
|
|
21
|
+
config: DotnetPluginConfig;
|
|
22
|
+
private syncConfigFromContext;
|
|
23
|
+
private checkAndGet;
|
|
24
|
+
scaffold(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
25
|
+
generateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
26
|
+
updateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
27
|
+
localDebug(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
28
|
+
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
29
|
+
preDeploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
30
|
+
executeUserTask(func: Func, ctx: PluginContext): Promise<TeamsFxResult>;
|
|
31
|
+
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +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;AAUhC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAmBhE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,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,MAAM,EAAE,kBAAkB,CAAM;IAEhC,OAAO,CAAC,qBAAqB;IAuB7B,OAAO,CAAC,WAAW;IAON,QAAQ,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAIpD,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAyChE,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAuB9D,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;CAwChE"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DotnetPluginImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// Copyright (c) Microsoft Corporation.
|
|
6
|
+
// Licensed under the MIT license.
|
|
7
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
|
+
const messages_1 = require("./resources/messages");
|
|
10
|
+
const azure_client_1 = require("./utils/azure-client");
|
|
11
|
+
const enum_1 = require("./enum");
|
|
12
|
+
const errors_1 = require("./resources/errors");
|
|
13
|
+
const Deploy = tslib_1.__importStar(require("./ops/deploy"));
|
|
14
|
+
const logger_1 = require("../utils/logger");
|
|
15
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
16
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
17
|
+
const folder_1 = require("../../../../folder");
|
|
18
|
+
const tools_1 = require("../../../../common/tools");
|
|
19
|
+
const constants_2 = require("../../../../common/constants");
|
|
20
|
+
const ResourcePluginContainer_1 = require("../../../solution/fx-solution/ResourcePluginContainer");
|
|
21
|
+
const adaptor_1 = require("../../../solution/fx-solution/v2/adaptor");
|
|
22
|
+
class DotnetPluginImpl {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.config = {};
|
|
25
|
+
}
|
|
26
|
+
syncConfigFromContext(ctx) {
|
|
27
|
+
const solutionConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.solutionPluginName);
|
|
28
|
+
this.config.resourceGroupName = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceGroupName);
|
|
29
|
+
this.config.subscriptionId = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.subscriptionId);
|
|
30
|
+
this.config.webAppName = ctx.config.get(constants_1.DotnetConfigInfo.webAppName);
|
|
31
|
+
this.config.appServicePlanName = ctx.config.get(constants_1.DotnetConfigInfo.appServicePlanName);
|
|
32
|
+
this.config.projectFilePath = ctx.config.get(constants_1.DotnetConfigInfo.projectFilePath);
|
|
33
|
+
// Resource id priors to other configs
|
|
34
|
+
const webAppResourceId = ctx.config.get(enum_1.DotnetConfigKey.webAppResourceId);
|
|
35
|
+
if (webAppResourceId) {
|
|
36
|
+
this.config.webAppResourceId = webAppResourceId;
|
|
37
|
+
this.config.resourceGroupName = tools_1.getResourceGroupNameFromResourceId(webAppResourceId);
|
|
38
|
+
this.config.webAppName = tools_1.getSiteNameFromResourceId(webAppResourceId);
|
|
39
|
+
this.config.subscriptionId = tools_1.getSubscriptionIdFromResourceId(webAppResourceId);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
checkAndGet(v, key) {
|
|
43
|
+
if (v) {
|
|
44
|
+
return v;
|
|
45
|
+
}
|
|
46
|
+
throw new errors_1.FetchConfigError(key);
|
|
47
|
+
}
|
|
48
|
+
async scaffold(ctx) {
|
|
49
|
+
return teamsfx_api_1.ok(undefined);
|
|
50
|
+
}
|
|
51
|
+
async generateArmTemplates(ctx) {
|
|
52
|
+
const bicepTemplateDirectory = constants_1.DotnetPathInfo.bicepTemplateFolder(folder_1.getTemplatesFolder());
|
|
53
|
+
const provisionTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_2.Bicep.ProvisionFileName);
|
|
54
|
+
const provisionWebappTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_1.WebappBicepFile.provisionTemplateFileName);
|
|
55
|
+
const configTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_2.Bicep.ConfigFileName);
|
|
56
|
+
const configWebappTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_1.WebappBicepFile.configurationTemplateFileName);
|
|
57
|
+
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(ctx.projectSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
58
|
+
const pluginCtx = { plugins: plugins.map((obj) => obj.name) };
|
|
59
|
+
const provisionOrchestration = await tools_1.generateBicepFromFile(provisionTemplateFilePath, pluginCtx);
|
|
60
|
+
const provisionModule = await tools_1.generateBicepFromFile(provisionWebappTemplateFilePath, pluginCtx);
|
|
61
|
+
const configOrchestration = await tools_1.generateBicepFromFile(configTemplateFilePath, pluginCtx);
|
|
62
|
+
const configModule = await tools_1.generateBicepFromFile(configWebappTemplateFilePath, pluginCtx);
|
|
63
|
+
const result = {
|
|
64
|
+
Provision: {
|
|
65
|
+
Orchestration: provisionOrchestration,
|
|
66
|
+
Modules: { webapp: provisionModule },
|
|
67
|
+
},
|
|
68
|
+
Configuration: {
|
|
69
|
+
Orchestration: configOrchestration,
|
|
70
|
+
Modules: { webapp: configModule },
|
|
71
|
+
},
|
|
72
|
+
Reference: constants_1.WebappBicep.Reference,
|
|
73
|
+
};
|
|
74
|
+
return teamsfx_api_1.ok(result);
|
|
75
|
+
}
|
|
76
|
+
async updateArmTemplates(ctx) {
|
|
77
|
+
const bicepTemplateDirectory = constants_1.DotnetPathInfo.bicepTemplateFolder(folder_1.getTemplatesFolder());
|
|
78
|
+
const configWebappTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_1.WebappBicepFile.configurationTemplateFileName);
|
|
79
|
+
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(ctx.projectSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
80
|
+
const pluginCtx = { plugins: plugins.map((obj) => obj.name) };
|
|
81
|
+
const configModule = await tools_1.generateBicepFromFile(configWebappTemplateFilePath, pluginCtx);
|
|
82
|
+
const result = {
|
|
83
|
+
Reference: constants_1.WebappBicep.Reference,
|
|
84
|
+
Configuration: {
|
|
85
|
+
Modules: { webapp: configModule },
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
return teamsfx_api_1.ok(result);
|
|
89
|
+
}
|
|
90
|
+
async localDebug(ctx) {
|
|
91
|
+
return teamsfx_api_1.ok(undefined);
|
|
92
|
+
}
|
|
93
|
+
async postProvision(ctx) {
|
|
94
|
+
return teamsfx_api_1.ok(undefined);
|
|
95
|
+
}
|
|
96
|
+
async preDeploy(ctx) {
|
|
97
|
+
return teamsfx_api_1.ok(undefined);
|
|
98
|
+
}
|
|
99
|
+
async executeUserTask(func, ctx) {
|
|
100
|
+
return teamsfx_api_1.ok(undefined);
|
|
101
|
+
}
|
|
102
|
+
async deploy(ctx) {
|
|
103
|
+
var _a;
|
|
104
|
+
logger_1.Logger.info(messages_1.Messages.StartDeploy(constants_1.DotnetPluginInfo.displayName));
|
|
105
|
+
this.syncConfigFromContext(ctx);
|
|
106
|
+
const webAppName = this.checkAndGet(this.config.webAppName, enum_1.DotnetConfigKey.webAppName);
|
|
107
|
+
const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.DotnetConfigKey.resourceGroupName);
|
|
108
|
+
const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.DotnetConfigKey.subscriptionId);
|
|
109
|
+
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(this.config.projectFilePath, enum_1.DotnetConfigKey.projectFilePath));
|
|
111
|
+
await errors_1.runWithErrorCatchAndThrow(new errors_1.ProjectPathError(projectFilePath), async () => await fs_extra_1.default.pathExists(projectFilePath));
|
|
112
|
+
const projectPath = path_1.default.dirname(projectFilePath);
|
|
113
|
+
const framework = await Deploy.getFrameworkVersion(projectFilePath);
|
|
114
|
+
const runtime = constants_1.DotnetPluginInfo.defaultRuntime;
|
|
115
|
+
const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
|
|
116
|
+
await Deploy.build(projectPath, runtime);
|
|
117
|
+
const folderToBeZipped = constants_1.DotnetPathInfo.publishFolderPath(projectPath, framework, runtime);
|
|
118
|
+
await Deploy.zipDeploy(client, resourceGroupName, webAppName, folderToBeZipped);
|
|
119
|
+
logger_1.Logger.info(messages_1.Messages.EndDeploy(constants_1.DotnetPluginInfo.displayName));
|
|
120
|
+
return teamsfx_api_1.ok(undefined);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.DotnetPluginImpl = DotnetPluginImpl;
|
|
124
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/plugin.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAKgC;AAChC,2CAOqB;AACrB,mDAAgD;AAGhD,uDAA0D;AAC1D,iCAAsD;AACtD,+CAAmG;AACnG,6DAAuC;AACvC,4CAAyC;AACzC,wDAAwB;AACxB,gEAA0B;AAC1B,+CAAwD;AACxD,oDA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ACR,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,sBAAS,CAAC,eAAe,CAAC,CACzE,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,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,SAAS,CAAC,4BAAU,CAAC,WAAW,CAAC,CAAC,CAAC;QACxD,OAAO,gBAAE,CAAC,SAAS,CAAC,CAAC;IACvB,CAAC;CACF;AA7JD,4CA6JC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FrontendPluginError } from "../../resources/errors";
|
|
2
|
+
export declare enum ErrorType {
|
|
3
|
+
User = 0,
|
|
4
|
+
System = 1
|
|
5
|
+
}
|
|
6
|
+
export declare class DotnetPluginError extends FrontendPluginError {
|
|
7
|
+
innerError?: Error;
|
|
8
|
+
constructor(errorType: ErrorType, code: string, message: string, suggestions: string[], helpLink?: string, innerError?: Error);
|
|
9
|
+
getMessage(): string;
|
|
10
|
+
setInnerError(error: Error): void;
|
|
11
|
+
getInnerError(): Error | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare class FetchConfigError extends DotnetPluginError {
|
|
14
|
+
constructor(key: string);
|
|
15
|
+
}
|
|
16
|
+
export declare class ProjectPathError extends DotnetPluginError {
|
|
17
|
+
constructor(projectFilePath: string);
|
|
18
|
+
}
|
|
19
|
+
export declare class BuildError extends DotnetPluginError {
|
|
20
|
+
constructor(innerError?: Error);
|
|
21
|
+
}
|
|
22
|
+
export declare class ZipError extends DotnetPluginError {
|
|
23
|
+
constructor();
|
|
24
|
+
}
|
|
25
|
+
export declare class PublishCredentialError extends DotnetPluginError {
|
|
26
|
+
constructor();
|
|
27
|
+
}
|
|
28
|
+
export declare class UploadZipError extends DotnetPluginError {
|
|
29
|
+
constructor();
|
|
30
|
+
}
|
|
31
|
+
export declare const UnhandledErrorCode = "UnhandledError";
|
|
32
|
+
export declare const UnhandledErrorMessage = "Unhandled error.";
|
|
33
|
+
export declare function runWithErrorCatchAndThrow<T>(error: DotnetPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
34
|
+
export declare function runWithErrorCatchAndWrap<T>(wrap: (error: any) => DotnetPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
35
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +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,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.
|
|
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;
|
|
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");
|
|
@@ -20,7 +20,7 @@ const tips = {
|
|
|
20
20
|
checkFsPermissions: "Check if you have Read/Write permissions to your file system.",
|
|
21
21
|
restoreEnvironment: `If you manually updated configuration files (under directory .${teamsfx_api_1.ConfigFolderName}), recover them.`,
|
|
22
22
|
};
|
|
23
|
-
class
|
|
23
|
+
class DotnetPluginError extends errors_1.FrontendPluginError {
|
|
24
24
|
constructor(errorType, code, message, suggestions, helpLink, innerError) {
|
|
25
25
|
super(errorType, code, message, suggestions, helpLink);
|
|
26
26
|
this.innerError = innerError;
|
|
@@ -35,8 +35,8 @@ class BlazorPluginError extends errors_1.FrontendPluginError {
|
|
|
35
35
|
return this.innerError;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
exports.
|
|
39
|
-
class FetchConfigError extends
|
|
38
|
+
exports.DotnetPluginError = DotnetPluginError;
|
|
39
|
+
class FetchConfigError extends DotnetPluginError {
|
|
40
40
|
constructor(key) {
|
|
41
41
|
super(ErrorType.User, "FetchConfigError", `Failed to find ${key} from configuration`, [
|
|
42
42
|
tips.restoreEnvironment,
|
|
@@ -44,19 +44,7 @@ class FetchConfigError extends BlazorPluginError {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.FetchConfigError = FetchConfigError;
|
|
47
|
-
class
|
|
48
|
-
constructor(resource, innerErrorCode) {
|
|
49
|
-
super(ErrorType.User, "ProvisionError", `Failed to check/create '${resource}' for blazor app${innerErrorCode ? `: ${innerErrorCode}` : ""}.`, [tips.reProvision]);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.ProvisionError = ProvisionError;
|
|
53
|
-
class ConfigureWebAppError extends BlazorPluginError {
|
|
54
|
-
constructor(innerErrorCode) {
|
|
55
|
-
super(ErrorType.User, "ConfigureWebAppError", `Failed to retrieve or update Azure Web App Settings${innerErrorCode ? `: ${innerErrorCode}` : ""}.`, [tips.reProvision]);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.ConfigureWebAppError = ConfigureWebAppError;
|
|
59
|
-
class ProjectPathError extends BlazorPluginError {
|
|
47
|
+
class ProjectPathError extends DotnetPluginError {
|
|
60
48
|
constructor(projectFilePath) {
|
|
61
49
|
super(ErrorType.User, "ProjectPathError", `Failed to find target project ${projectFilePath}.`, [
|
|
62
50
|
tips.checkLog,
|
|
@@ -65,13 +53,13 @@ class ProjectPathError extends BlazorPluginError {
|
|
|
65
53
|
}
|
|
66
54
|
}
|
|
67
55
|
exports.ProjectPathError = ProjectPathError;
|
|
68
|
-
class BuildError extends
|
|
56
|
+
class BuildError extends DotnetPluginError {
|
|
69
57
|
constructor(innerError) {
|
|
70
|
-
super(ErrorType.User, "BuildError", "Failed to build
|
|
58
|
+
super(ErrorType.User, "BuildError", "Failed to build Dotnet project.", [tips.checkLog, tips.reDeploy], undefined, innerError);
|
|
71
59
|
}
|
|
72
60
|
}
|
|
73
61
|
exports.BuildError = BuildError;
|
|
74
|
-
class ZipError extends
|
|
62
|
+
class ZipError extends DotnetPluginError {
|
|
75
63
|
constructor() {
|
|
76
64
|
super(ErrorType.User, "ZipError", "Failed to generate zip package.", [
|
|
77
65
|
tips.checkFsPermissions,
|
|
@@ -80,7 +68,7 @@ class ZipError extends BlazorPluginError {
|
|
|
80
68
|
}
|
|
81
69
|
}
|
|
82
70
|
exports.ZipError = ZipError;
|
|
83
|
-
class PublishCredentialError extends
|
|
71
|
+
class PublishCredentialError extends DotnetPluginError {
|
|
84
72
|
constructor() {
|
|
85
73
|
super(ErrorType.User, "PublishCredentialError", "Failed to retrieve publish credential.", [
|
|
86
74
|
tips.doProvision,
|
|
@@ -89,7 +77,7 @@ class PublishCredentialError extends BlazorPluginError {
|
|
|
89
77
|
}
|
|
90
78
|
}
|
|
91
79
|
exports.PublishCredentialError = PublishCredentialError;
|
|
92
|
-
class UploadZipError extends
|
|
80
|
+
class UploadZipError extends DotnetPluginError {
|
|
93
81
|
constructor() {
|
|
94
82
|
super(ErrorType.User, "UploadZipError", "Failed to upload zip package.", [
|
|
95
83
|
tips.checkNetwork,
|
|
@@ -0,0 +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,IA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AwB,EAAE,wCAAwC,EAAE;YACxF,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,QAAQ;SACd,CAAC,CAAC;IACL,CAAC;CACF;AAPD,wDAOC;AAED,MAAa,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,10 +1,6 @@
|
|
|
1
1
|
export declare class Messages {
|
|
2
2
|
static readonly StartScaffold: (name: string) => string;
|
|
3
3
|
static readonly EndScaffold: (name: string) => string;
|
|
4
|
-
static readonly StartPreProvision: (name: string) => string;
|
|
5
|
-
static readonly EndPreProvision: (name: string) => string;
|
|
6
|
-
static readonly StartProvision: (name: string) => string;
|
|
7
|
-
static readonly EndProvision: (name: string) => string;
|
|
8
4
|
static readonly StartPreDeploy: (name: string) => string;
|
|
9
5
|
static readonly EndPreDeploy: (name: string) => string;
|
|
10
6
|
static readonly StartDeploy: (name: string) => string;
|
|
@@ -0,0 +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,SAAU,MAAM,YAA8B;IAC3E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAU,MAAM,YAA0C;IACrF,MAAM,CAAC,QAAQ,CAAC,cAAc,SAAU,MAAM,YAAgC;IAC9E,MAAM,CAAC,QAAQ,CAAC,YAAY,SAAU,MAAM,YAA+B;IAC3E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAU,MAAM,YAA4B;IACvE,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAU,MAAM,YAAwC;CAClF"}
|
|
@@ -9,10 +9,6 @@ exports.Messages = Messages;
|
|
|
9
9
|
// Logging messages
|
|
10
10
|
Messages.StartScaffold = (name) => `Scaffolding '${name}'.`;
|
|
11
11
|
Messages.EndScaffold = (name) => `Successfully scaffolded '${name}'.`;
|
|
12
|
-
Messages.StartPreProvision = (name) => `Pre-provisioning '${name}'.`;
|
|
13
|
-
Messages.EndPreProvision = (name) => `Successfully pre-provisioned '${name}'.`;
|
|
14
|
-
Messages.StartProvision = (name) => `Provisioning '${name}'.`;
|
|
15
|
-
Messages.EndProvision = (name) => `Successfully provisioned '${name}'.`;
|
|
16
12
|
Messages.StartPreDeploy = (name) => `Pre-deploying '${name}'.`;
|
|
17
13
|
Messages.EndPreDeploy = (name) => `Pre-deployed '${name}'.`;
|
|
18
14
|
Messages.StartDeploy = (name) => `Deploying '${name}'.`;
|
|
@@ -0,0 +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,4BAQC;AAPC,mBAAmB;AACH,sBAAa,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,gBAAgB,IAAI,IAAI,CAAC;AAC3D,oBAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,4BAA4B,IAAI,IAAI,CAAC;AACrE,uBAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,kBAAkB,IAAI,IAAI,CAAC;AAC9D,qBAAY,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,iBAAiB,IAAI,IAAI,CAAC;AAC3D,oBAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,cAAc,IAAI,IAAI,CAAC;AACvD,kBAAS,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,0BAA0B,IAAI,IAAI,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TokenCredentialsBase } from "@azure/ms-rest-nodeauth";
|
|
2
|
+
import { WebSiteManagementClient } from "@azure/arm-appservice";
|
|
3
|
+
export declare class AzureClientFactory {
|
|
4
|
+
static getWebSiteManagementClient(credentials: TokenCredentialsBase, subscriptionId: string): WebSiteManagementClient;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=azure-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azure-client.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/utils/azure-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,qBAAa,kBAAkB;WACf,0BAA0B,CACtC,WAAW,EAAE,oBAAoB,EACjC,cAAc,EAAE,MAAM,GACrB,uBAAuB;CAG3B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AzureClientFactory = void 0;
|
|
4
|
+
const arm_appservice_1 = require("@azure/arm-appservice");
|
|
5
|
+
class AzureClientFactory {
|
|
6
|
+
static getWebSiteManagementClient(credentials, subscriptionId) {
|
|
7
|
+
return new arm_appservice_1.WebSiteManagementClient(credentials, subscriptionId);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.AzureClientFactory = AzureClientFactory;
|
|
11
|
+
//# sourceMappingURL=azure-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azure-client.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/utils/azure-client.ts"],"names":[],"mappings":";;;AAGA,0DAAgE;AAEhE,MAAa,kBAAkB;IACtB,MAAM,CAAC,0BAA0B,CACtC,WAAiC,EACjC,cAAsB;QAEtB,OAAO,IAAI,wCAAuB,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAClE,CAAC;CACF;AAPD,gDAOC"}
|
|
@@ -2,22 +2,25 @@ import { FrontendPluginImpl } from "./plugin";
|
|
|
2
2
|
import { Plugin, PluginContext, AzureSolutionSettings, Func } from "@microsoft/teamsfx-api";
|
|
3
3
|
import { TeamsFxResult } from "./error-factory";
|
|
4
4
|
import "./v2";
|
|
5
|
-
import
|
|
5
|
+
import "./v3";
|
|
6
|
+
import { DotnetPluginImpl } from "./dotnet/plugin";
|
|
6
7
|
export declare class FrontendPlugin implements Plugin {
|
|
7
8
|
name: string;
|
|
8
9
|
displayName: string;
|
|
9
10
|
activate(solutionSettings: AzureSolutionSettings): boolean;
|
|
10
11
|
frontendPluginImpl: FrontendPluginImpl;
|
|
11
|
-
|
|
12
|
+
dotnetPluginImpl: DotnetPluginImpl;
|
|
13
|
+
private getImpl;
|
|
12
14
|
private static setContext;
|
|
15
|
+
private static isVsPlatform;
|
|
13
16
|
scaffold(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
14
|
-
preProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
15
17
|
provision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
16
18
|
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
17
19
|
preDeploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
18
20
|
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
19
21
|
updateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
20
22
|
generateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
23
|
+
localDebug(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
21
24
|
executeUserTask(func: Func, ctx: PluginContext): Promise<TeamsFxResult>;
|
|
22
25
|
private runWithErrorHandling;
|
|
23
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EACL,MAAM,EACN,aAAa,EAIb,qBAAqB,EAErB,IAAI,EACL,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAgB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAgB9D,OAAO,MAAM,CAAC;AACd,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EACL,MAAM,EACN,aAAa,EAIb,qBAAqB,EAErB,IAAI,E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|
19
19
|
const __1 = require("../../..");
|
|
20
20
|
require("./v2");
|
|
21
|
-
|
|
22
|
-
const
|
|
21
|
+
require("./v3");
|
|
22
|
+
const plugin_2 = require("./dotnet/plugin");
|
|
23
|
+
const constants_2 = require("./dotnet/constants");
|
|
23
24
|
let FrontendPlugin = FrontendPlugin_1 = class FrontendPlugin {
|
|
24
25
|
constructor() {
|
|
25
26
|
this.name = "fx-resource-frontend-hosting";
|
|
26
27
|
this.displayName = "Tab Front-end";
|
|
27
28
|
this.frontendPluginImpl = new plugin_1.FrontendPluginImpl();
|
|
28
|
-
this.
|
|
29
|
+
this.dotnetPluginImpl = new plugin_2.DotnetPluginImpl();
|
|
29
30
|
}
|
|
30
31
|
activate(solutionSettings) {
|
|
31
32
|
const cap = solutionSettings.capabilities || [];
|
|
32
33
|
return solutionSettings.hostType === question_1.HostTypeOptionAzure.id && cap.includes(question_1.TabOptionItem.id);
|
|
33
34
|
}
|
|
35
|
+
getImpl(ctx) {
|
|
36
|
+
return FrontendPlugin_1.isVsPlatform(ctx) ? this.dotnetPluginImpl : this.frontendPluginImpl;
|
|
37
|
+
}
|
|
34
38
|
static setContext(ctx) {
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
const component = this.isVsPlatform(ctx)
|
|
40
|
+
? constants_2.DotnetPluginInfo.pluginName
|
|
41
|
+
: constants_1.FrontendPluginInfo.PluginName;
|
|
42
|
+
logger_1.Logger.setLogger(ctx.logProvider, component);
|
|
43
|
+
telemetry_helper_1.TelemetryHelper.setContext(ctx, component);
|
|
37
44
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
throw new errors_1.NotImplemented();
|
|
41
|
-
}
|
|
42
|
-
FrontendPlugin_1.setContext(ctx);
|
|
43
|
-
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.Scaffold, () => this.frontendPluginImpl.scaffold(ctx));
|
|
45
|
+
static isVsPlatform(ctx) {
|
|
46
|
+
return __1.isVsCallingCli();
|
|
44
47
|
}
|
|
45
|
-
async
|
|
46
|
-
if (__1.isArmSupportEnabled()) {
|
|
47
|
-
return teamsfx_api_1.ok(undefined);
|
|
48
|
-
}
|
|
48
|
+
async scaffold(ctx) {
|
|
49
49
|
FrontendPlugin_1.setContext(ctx);
|
|
50
|
-
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.
|
|
51
|
-
? this.blazorPluginImpl.preProvision(ctx)
|
|
52
|
-
: this.frontendPluginImpl.preProvision(ctx));
|
|
50
|
+
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.Scaffold, () => this.getImpl(ctx).scaffold(ctx));
|
|
53
51
|
}
|
|
54
52
|
async provision(ctx) {
|
|
55
|
-
|
|
56
|
-
return teamsfx_api_1.ok(undefined);
|
|
57
|
-
}
|
|
58
|
-
FrontendPlugin_1.setContext(ctx);
|
|
59
|
-
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.Provision, () => __1.isVsCallingCli()
|
|
60
|
-
? this.blazorPluginImpl.provision(ctx)
|
|
61
|
-
: this.frontendPluginImpl.provision(ctx));
|
|
53
|
+
return teamsfx_api_1.ok(undefined);
|
|
62
54
|
}
|
|
63
55
|
async postProvision(ctx) {
|
|
64
56
|
FrontendPlugin_1.setContext(ctx);
|
|
65
|
-
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.PostProvision, () =>
|
|
66
|
-
? this.blazorPluginImpl.postProvision(ctx)
|
|
67
|
-
: this.frontendPluginImpl.postProvision(ctx));
|
|
57
|
+
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.PostProvision, () => this.getImpl(ctx).postProvision(ctx));
|
|
68
58
|
}
|
|
69
59
|
async preDeploy(ctx) {
|
|
70
|
-
if (__1.isVsCallingCli()) {
|
|
71
|
-
return teamsfx_api_1.ok(undefined);
|
|
72
|
-
}
|
|
73
60
|
FrontendPlugin_1.setContext(ctx);
|
|
74
|
-
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.PreDeploy, () => this.
|
|
61
|
+
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.PreDeploy, () => this.getImpl(ctx).preDeploy(ctx));
|
|
75
62
|
}
|
|
76
63
|
async deploy(ctx) {
|
|
77
64
|
FrontendPlugin_1.setContext(ctx);
|
|
78
|
-
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.Deploy, () =>
|
|
65
|
+
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.Deploy, () => this.getImpl(ctx).deploy(ctx));
|
|
79
66
|
}
|
|
80
67
|
async updateArmTemplates(ctx) {
|
|
81
|
-
if (__1.isVsCallingCli()) {
|
|
82
|
-
throw new errors_1.NotImplemented();
|
|
83
|
-
}
|
|
84
68
|
FrontendPlugin_1.setContext(ctx);
|
|
85
|
-
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.UpdateArmTemplates, () => this.
|
|
69
|
+
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.UpdateArmTemplates, () => this.getImpl(ctx).updateArmTemplates(ctx));
|
|
86
70
|
}
|
|
87
71
|
async generateArmTemplates(ctx) {
|
|
88
|
-
if (__1.isVsCallingCli()) {
|
|
89
|
-
throw new errors_1.NotImplemented();
|
|
90
|
-
}
|
|
91
72
|
FrontendPlugin_1.setContext(ctx);
|
|
92
|
-
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.GenerateArmTemplates, () => this.
|
|
73
|
+
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.GenerateArmTemplates, () => this.getImpl(ctx).generateArmTemplates(ctx));
|
|
74
|
+
}
|
|
75
|
+
async localDebug(ctx) {
|
|
76
|
+
FrontendPlugin_1.setContext(ctx);
|
|
77
|
+
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.LocalDebug, () => this.getImpl(ctx).localDebug(ctx));
|
|
93
78
|
}
|
|
94
79
|
async executeUserTask(func, ctx) {
|
|
95
|
-
if (__1.isVsCallingCli()) {
|
|
96
|
-
return teamsfx_api_1.ok(undefined);
|
|
97
|
-
}
|
|
98
80
|
FrontendPlugin_1.setContext(ctx);
|
|
99
|
-
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.ExecuteUserTask, () => this.
|
|
81
|
+
return this.runWithErrorHandling(ctx, constants_1.TelemetryEvent.ExecuteUserTask, () => this.getImpl(ctx).executeUserTask(func, ctx), { method: func.method });
|
|
100
82
|
}
|
|
101
83
|
async runWithErrorHandling(ctx, stage, fn, properties = {}) {
|
|
102
84
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/index.ts"],"names":[],"mappings":";;;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,qCAA8C;AAC9C,wDASgC;AAEhC,mDAA8D;AAC9D,+CAM4B;AAC5B,2CAAwC;AACxC,6DAAyD;AACzD,2CAAiE;AACjE,+DAA2D;AAC3D,kEAAyF;AACzF,mCAAiC;AACjC,gGAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/index.ts"],"names":[],"mappings":";;;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,qCAA8C;AAC9C,wDASgC;AAEhC,mDAA8D;AAC9D,+CAM4B;AAC5B,2CAAwC;AACxC,6DAAyD;AACzD,2CAAiE;AACjE,+DAA2D;AAC3D,kEAAyF;AACzF,mCAAiC;AACjC,gGAAqF;AACrF,gCAA0C;AAC1C,gBAAc;AACd,gBAAc;AACd,4CAAmD;AACnD,kDAAsD;AAItD,IAAa,cAAc,sBAA3B,MAAa,cAAc;IAA3B;QACE,SAAI,GAAG,8BAA8B,CAAC;QACtC,gBAAW,GAAG,eAAe,CAAC;QAK9B,uBAAkB,GAAG,IAAI,2BAAkB,EAAE,CAAC;QAC9C,qBAAgB,GAAG,IAAI,yBAAgB,EAAE,CAAC;IAuH5C,CAAC;IA5HC,QAAQ,CAAC,gBAAuC;QAC9C,MAAM,GAAG,GAAG,gBAAgB,CAAC,YAAY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EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC;oBAClF,CAAC,CAAC,4BAAY,CAAC,WAAW,CACtB,CAAC,CAAC,IAAI,EACN,CAAC,CAAC,UAAU,EAAE,EACd,CAAC,CAAC,aAAa,EAAE,EACjB,MAAA,CAAC,CAAC,aAAa,EAAE,0CAAE,KAAK,CACzB,CAAC;gBACR,kCAAe,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;gBACzD,OAAO,iBAAG,CAAC,KAAK,CAAC,CAAC;aACnB;YAED,IAAI,CAAC,YAAY,uBAAS,IAAI,CAAC,YAAY,yBAAW,EAAE;gBACtD,kCAAe,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;gBACrD,OAAO,iBAAG,CAAC,CAAC,CAAC,CAAC;aACf;YAED,MAAM,KAAK,GAAG,4BAAY,CAAC,WAAW,CAAC,2BAAkB,EAAE,8BAAqB,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;YAC9F,kCAAe,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;YACzD,OAAO,iBAAG,CAAC,KAAK,CAAC,CAAC;SACnB;IACH,CAAC;CACF,CAAA;AA/HY,cAAc;IAD1B,gBAAO,CAAC,yCAAe,CAAC,cAAc,CAAC;GAC3B,cAAc,CA+H1B;AA/HY,wCAAc;AAiI3B,kBAAe,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Func, PluginContext } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { TeamsFxResult } from "./error-factory";
|
|
3
|
+
export interface PluginImpl {
|
|
4
|
+
scaffold(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
5
|
+
generateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
6
|
+
updateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
7
|
+
localDebug(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
8
|
+
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
9
|
+
preDeploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
10
|
+
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
11
|
+
executeUserTask(func: Func, ctx: PluginContext): Promise<TeamsFxResult>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACrD,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACjE,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/D,UAAU,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACvD,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC1D,SAAS,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACtD,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACnD,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { AzureStorageClient } from "../clients";
|
|
2
2
|
import { RemoteEnvs } from "../env";
|
|
3
|
+
import { IProgressHandler } from "@microsoft/teamsfx-api";
|
|
3
4
|
export declare class FrontendDeployment {
|
|
4
5
|
static needBuild(componentPath: string, envName: string): Promise<boolean>;
|
|
5
6
|
static needDeploy(componentPath: string, envName: string): Promise<boolean>;
|
|
6
7
|
static doFrontendBuild(componentPath: string, envs: RemoteEnvs, envName: string): Promise<void>;
|
|
8
|
+
static doFrontendBuildV3(componentPath: string, envs: RemoteEnvs, envName: string, progress?: IProgressHandler): Promise<void>;
|
|
7
9
|
static skipBuild(): Promise<void>;
|
|
8
10
|
static getBuiltPath(componentPath: string): Promise<string>;
|
|
9
11
|
static doFrontendDeployment(client: AzureStorageClient, componentPath: string, envName: string): Promise<void>;
|
|
12
|
+
static doFrontendDeploymentV3(client: AzureStorageClient, componentPath: string, envName: string, progress?: IProgressHandler): Promise<void>;
|
|
10
13
|
static skipDeployment(): Promise<void>;
|
|
11
14
|
private static hasUpdatedContent;
|
|
12
15
|
private static getDeploymentInfo;
|