@microsoft/teamsfx-core 1.2.0 → 1.2.2-alpha.eb4575da.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 +1 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +1 -0
- package/build/common/permissionInterface.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 +0 -9
- 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/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 +21 -58
- 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/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/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 +14 -131
- package/build/plugins/resource/bot/plugin.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 +126 -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 +13 -44
- 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 +1 -0
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +3 -0
- 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 +33 -134
- 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/identity/index.d.ts +0 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +2 -20
- package/build/plugins/resource/identity/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 +0 -3
- package/build/plugins/resource/simpleauth/plugin.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/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +1 -9
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +26 -58
- package/build/plugins/resource/sql/plugin.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/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 +45 -11
- 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/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/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 -14
- 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 +81 -96
- package/build/plugins/solution/fx-solution/v2/getQuestions.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.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 +6 -0
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +1 -1
- 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 +17 -7
- 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/frontend/bicep/frontendHostingProvision.bicep +4 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -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/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/sqlProvision.template.bicep +8 -5
- 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
|
@@ -18,85 +18,67 @@ const typedi_1 = require("typedi");
|
|
|
18
18
|
const ResourcePluginContainer_1 = require("../../solution/fx-solution/ResourcePluginContainer");
|
|
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":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AC,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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/ops/deploy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAkBhD,OAAO,EAAkC,UAAU,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/ops/deploy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAkBhD,OAAO,EAAkC,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAQ1D,qBAAa,kBAAkB;WACT,SAAS,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;WAYnE,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;WASpE,eAAe,CACjC,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC;WAuBI,iBAAiB,CACnC,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,OAAO,CAAC,IAAI,CAAC;WAsBI,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;WAQ1B,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;WASpD,oBAAoB,CACtC,MAAM,EAAE,kBAAkB,EAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC;WA6BI,sBAAsB,CACxC,MAAM,EAAE,kBAAkB,EAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,OAAO,CAAC,IAAI,CAAC;WA6BI,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;mBAU9B,iBAAiB;mBAwBjB,iBAAiB;mBAmBjB,gBAAgB;mBAUhB,qBAAqB;mBAUrB,kBAAkB;CA4BxC"}
|
|
@@ -14,6 +14,7 @@ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
|
14
14
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
15
15
|
const telemetry_helper_1 = require("../utils/telemetry-helper");
|
|
16
16
|
const env_1 = require("../env");
|
|
17
|
+
const v3error = tslib_1.__importStar(require("../v3/error"));
|
|
17
18
|
class FrontendDeployment {
|
|
18
19
|
static async needBuild(componentPath, envName) {
|
|
19
20
|
const lastBuildTime = await FrontendDeployment.getLastBuildTime(componentPath, envName);
|
|
@@ -47,6 +48,25 @@ class FrontendDeployment {
|
|
|
47
48
|
lastBuildTime: new Date().toISOString(),
|
|
48
49
|
});
|
|
49
50
|
}
|
|
51
|
+
static async doFrontendBuildV3(componentPath, envs, envName, progress) {
|
|
52
|
+
const needBuild = await FrontendDeployment.needBuild(componentPath, envName);
|
|
53
|
+
if (!needBuild) {
|
|
54
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.NPMInstall));
|
|
55
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.Build));
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.NPMInstall));
|
|
59
|
+
await errors_1.runWithErrorCatchAndThrow(new v3error.NpmInstallError(), async () => {
|
|
60
|
+
await utils_1.Utils.execute(constants_1.Commands.InstallNodePackages, componentPath);
|
|
61
|
+
});
|
|
62
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.Build));
|
|
63
|
+
await errors_1.runWithErrorCatchAndThrow(new v3error.BuildError(), async () => {
|
|
64
|
+
await utils_1.Utils.execute(constants_1.Commands.BuildFrontend, componentPath, Object.assign(Object.assign({}, envs.customizedRemoteEnvs), envs.teamsfxRemoteEnvs));
|
|
65
|
+
});
|
|
66
|
+
await FrontendDeployment.saveDeploymentInfo(componentPath, envName, {
|
|
67
|
+
lastBuildTime: new Date().toISOString(),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
50
70
|
static async skipBuild() {
|
|
51
71
|
logger_1.Logger.info(messages_1.Messages.SkipBuild);
|
|
52
72
|
const progressHandler = progress_helper_1.ProgressHelper.deployProgress;
|
|
@@ -81,6 +101,29 @@ class FrontendDeployment {
|
|
|
81
101
|
lastDeployTime: new Date().toISOString(),
|
|
82
102
|
});
|
|
83
103
|
}
|
|
104
|
+
static async doFrontendDeploymentV3(client, componentPath, envName, progress) {
|
|
105
|
+
const needDeploy = await FrontendDeployment.needDeploy(componentPath, envName);
|
|
106
|
+
if (!needDeploy) {
|
|
107
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.getSrcAndDest));
|
|
108
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.Clear));
|
|
109
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.Upload));
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.getSrcAndDest));
|
|
113
|
+
const builtPath = await FrontendDeployment.getBuiltPath(componentPath);
|
|
114
|
+
const container = await errors_1.runWithErrorCatchAndThrow(new v3error.GetContainerError(), async () => await client.getContainer(constants_1.Constants.AzureStorageWebContainer));
|
|
115
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.Clear));
|
|
116
|
+
await errors_1.runWithErrorCatchAndThrow(new v3error.ClearStorageError(), async () => {
|
|
117
|
+
await client.deleteAllBlobs(container);
|
|
118
|
+
});
|
|
119
|
+
await (progress === null || progress === void 0 ? void 0 : progress.next(progress_helper_1.DeploySteps.Upload));
|
|
120
|
+
await errors_1.runWithErrorCatchAndThrow(new v3error.UploadToStorageError(), async () => {
|
|
121
|
+
await client.uploadFiles(container, builtPath);
|
|
122
|
+
});
|
|
123
|
+
await FrontendDeployment.saveDeploymentInfo(componentPath, envName, {
|
|
124
|
+
lastDeployTime: new Date().toISOString(),
|
|
125
|
+
});
|
|
126
|
+
}
|
|
84
127
|
static async skipDeployment() {
|
|
85
128
|
telemetry_helper_1.TelemetryHelper.sendGeneralEvent(constants_1.TelemetryEvent.SkipDeploy);
|
|
86
129
|
logger_1.Logger.warning(messages_1.Messages.SkipDeploy);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/ops/deploy.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,gDAQ6B;AAC7B,4CAAqF;AACrF,8DAAuE;AACvE,4CAAyC;AACzC,oDAAiD;AACjD,oCAAiC;AACjC,gEAA0B;AAC1B,wDAAwB;AACxB,gEAA4D;AAC5D,gCAAoE;
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/ops/deploy.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,gDAQ6B;AAC7B,4CAAqF;AACrF,8DAAuE;AACvE,4CAAyC;AACzC,oDAAiD;AACjD,oCAAiC;AACjC,gEAA0B;AAC1B,wDAAwB;AACxB,gEAA4D;AAC5D,gCAAoE;AAEpE,6DAAuC;AAOvC,MAAa,kBAAkB;IACtB,MAAM,CAA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,CAAC,cAAc,mCAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC;QAE9E,IAAI;YACF,MAAM,kBAAE,CAAC,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;SAC5D;QAAC,WAAM;YACN,kEAAkE;SACnE;IACH,CAAC;CACF;AArQD,gDAqQC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/ops/scaffold.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/ops/scaffold.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,oBAAY,QAAQ,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,CAAC,GAAG,EAAE,MAAM,GAAG;YACb,CAAC,GAAG,EAAE,MAAM,GAAG;gBACb,OAAO,EAAE,MAAM,CAAC;gBAChB,GAAG,EAAE,MAAM,CAAC;aACb,EAAE,CAAC;SACL,CAAC;KACH,CAAC;CACH,CAAC;AAEF,qBAAa,gBAAgB;WACP,sBAAsB,CACxC,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,IAAI,CAAC;CAgCjB"}
|
|
@@ -8,7 +8,7 @@ const constants_1 = require("../constants");
|
|
|
8
8
|
const logger_1 = require("../utils/logger");
|
|
9
9
|
const messages_1 = require("../resources/messages");
|
|
10
10
|
const telemetry_helper_1 = require("../utils/telemetry-helper");
|
|
11
|
-
const templatesActions_1 = require("../../../../common/templatesActions");
|
|
11
|
+
const templatesActions_1 = require("../../../../common/template-utils/templatesActions");
|
|
12
12
|
class FrontendScaffold {
|
|
13
13
|
static async scaffoldFromZipPackage(componentPath, templateInfo) {
|
|
14
14
|
await templatesActions_1.scaffoldFromTemplates({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/ops/scaffold.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,gDAK6B;AAC7B,4CAAuE;AACvE,4CAAyC;AACzC,oDAAiD;
|
|
1
|
+
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/ops/scaffold.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,gDAK6B;AAC7B,4CAAuE;AACvE,4CAAyC;AACzC,oDAAiD;AACjD,gEAA4D;AAC5D,yFAO4D;AAc5D,MAAa,gBAAgB;IACpB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CACxC,aAAqB,EACrB,YAA0B;QAE1B,MAAM,wCAAqB,CAAC;YAC1B,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,IAAI,EAAE,YAAY,CAAC,QAAQ;YAC3B,QAAQ,EAAE,YAAY,CAAC,QAAQ;YAC/B,mBAAmB,EAAE,4BAAQ,CAAC,kBAAkB;YAChD,GAAG,EAAE,aAAa;YAClB,iBAAiB,EAAE,6CAA0B;YAC7C,iBAAiB,EAAE,6CAA0B,CAAC,YAAY,CAAC,SAAS,CAAC;YACrE,WAAW,EAAE,KAAK,EAAE,MAAsB,EAAE,OAAwB,EAAE,EAAE;;gBACtE,IAAI,MAAM,CAAC,IAAI,KAAK,qCAAkB,CAAC,wBAAwB,EAAE;oBAC/D,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,eAAe,CAAC,MAAA,OAAO,CAAC,MAAM,mCAAI,qBAAS,CAAC,WAAW,CAAC,CAAC,CAAC;iBAChF;YACH,CAAC;YACD,aAAa,EAAE,KAAK,EAAE,MAAsB,EAAE,OAAwB,EAAE,KAAY,EAAE,EAAE;gBACtF,eAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;gBAC9B,QAAQ,MAAM,CAAC,IAAI,EAAE;oBACnB,KAAK,qCAAkB,CAAC,wBAAwB,CAAC;oBACjD,KAAK,qCAAkB,CAAC,wBAAwB;wBAC9C,kCAAe,CAAC,yBAAyB,CAAC,IAAI,8BAAqB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;wBACpF,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,mBAAmB,CAAC,CAAC;wBAC1C,MAAM;oBACR,KAAK,qCAAkB,CAAC,yBAAyB;wBAC/C,MAAM,IAAI,iCAAwB,EAAE,CAAC;oBACvC,KAAK,qCAAkB,CAAC,KAAK;wBAC3B,MAAM,IAAI,2BAAkB,EAAE,CAAC;oBACjC;wBACE,MAAM,IAAI,6BAAoB,EAAE,CAAC;iBACpC;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF;AApCD,4CAoCC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PluginContext, Func } from "@microsoft/teamsfx-api";
|
|
2
2
|
import { TeamsFxResult } from "./error-factory";
|
|
3
|
-
|
|
3
|
+
import { PluginImpl } from "./interface";
|
|
4
|
+
export declare class FrontendPluginImpl implements PluginImpl {
|
|
4
5
|
scaffold(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
5
|
-
preProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
6
|
-
provision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
7
6
|
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
8
7
|
preDeploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
9
8
|
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
10
9
|
updateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
11
10
|
generateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
11
|
+
localDebug(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
12
12
|
private collectEnvs;
|
|
13
13
|
private updateDotEnv;
|
|
14
14
|
executeUserTask(func: Func, ctx: PluginContext): Promise<TeamsFxResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAEb,IAAI,EAKL,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAEb,IAAI,EAKL,MAAM,wBAAwB,CAAC;AA2BhC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAmBhD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,qBAAa,kBAAmB,YAAW,UAAU;IACtC,QAAQ,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAiBpD,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAmBzD,SAAS,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAcrD,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAoBlD,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAa9D,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAkChE,UAAU,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAQnE,OAAO,CAAC,WAAW;YA0CL,YAAY;IAWb,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;YA0BtE,wBAAwB;YAOxB,yBAAyB;YAUzB,mBAAmB;YAUnB,sBAAsB;CASrC"}
|
|
@@ -16,7 +16,6 @@ const messages_1 = require("./resources/messages");
|
|
|
16
16
|
const scaffold_1 = require("./ops/scaffold");
|
|
17
17
|
const progress_helper_1 = require("./utils/progress-helper");
|
|
18
18
|
const templateInfo_1 = require("./resources/templateInfo");
|
|
19
|
-
const azure_client_1 = require("./utils/azure-client");
|
|
20
19
|
const folder_1 = require("../../../folder");
|
|
21
20
|
const constants_2 = require("../../../common/constants");
|
|
22
21
|
const common_1 = require("../../../common");
|
|
@@ -25,6 +24,7 @@ const env_1 = require("./env");
|
|
|
25
24
|
const ResourcePluginContainer_1 = require("../../solution/fx-solution/ResourcePluginContainer");
|
|
26
25
|
const adaptor_1 = require("../../solution/fx-solution/v2/adaptor");
|
|
27
26
|
const tools_1 = require("../../../common/tools");
|
|
27
|
+
const localSettingsConstants_1 = require("../../../common/localSettingsConstants");
|
|
28
28
|
class FrontendPluginImpl {
|
|
29
29
|
async scaffold(ctx) {
|
|
30
30
|
logger_1.Logger.info(messages_1.Messages.StartScaffold(constants_1.FrontendPluginInfo.DisplayName));
|
|
@@ -36,50 +36,14 @@ class FrontendPluginImpl {
|
|
|
36
36
|
logger_1.Logger.info(messages_1.Messages.EndScaffold(constants_1.FrontendPluginInfo.DisplayName));
|
|
37
37
|
return teamsfx_api_1.ok(undefined);
|
|
38
38
|
}
|
|
39
|
-
async preProvision(ctx) {
|
|
40
|
-
logger_1.Logger.info(messages_1.Messages.StartPreProvision(constants_1.FrontendPluginInfo.DisplayName));
|
|
41
|
-
await this.ensureResourceGroupExists(new clients_1.AzureStorageClient(await configs_1.FrontendConfig.fromPluginContext(ctx)));
|
|
42
|
-
logger_1.Logger.info(messages_1.Messages.EndPreProvision(constants_1.FrontendPluginInfo.DisplayName));
|
|
43
|
-
return teamsfx_api_1.ok(undefined);
|
|
44
|
-
}
|
|
45
|
-
async provision(ctx) {
|
|
46
|
-
logger_1.Logger.info(messages_1.Messages.StartProvision(constants_1.FrontendPluginInfo.DisplayName));
|
|
47
|
-
const progressHandler = await progress_helper_1.ProgressHelper.startProvisionProgressHandler(ctx);
|
|
48
|
-
const config = await configs_1.FrontendConfig.fromPluginContext(ctx);
|
|
49
|
-
const provider = azure_client_1.AzureClientFactory.getResourceProviderClient(config.credentials, config.subscriptionId);
|
|
50
|
-
const client = new clients_1.AzureStorageClient(config);
|
|
51
|
-
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.next(progress_helper_1.ProvisionSteps.RegisterResourceProvider));
|
|
52
|
-
await errors_1.runWithErrorCatchAndThrow(new errors_1.RegisterResourceProviderError(), async () => await azure_client_1.AzureLib.ensureResourceProviders(provider, constants_1.AzureInfo.RequiredResourceProviders));
|
|
53
|
-
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.next(progress_helper_1.ProvisionSteps.CreateStorage));
|
|
54
|
-
const createStorageErrorWrapper = (innerError) => {
|
|
55
|
-
if (innerError.code === constants_1.AzureErrorCode.ReservedResourceName) {
|
|
56
|
-
return new errors_1.InvalidStorageNameError();
|
|
57
|
-
}
|
|
58
|
-
if (innerError.code === constants_1.AzureErrorCode.StorageAccountAlreadyTaken ||
|
|
59
|
-
innerError.code === constants_1.AzureErrorCode.StorageAccountAlreadyExists) {
|
|
60
|
-
return new errors_1.StorageAccountAlreadyTakenError();
|
|
61
|
-
}
|
|
62
|
-
return new errors_1.CreateStorageAccountError(innerError.code);
|
|
63
|
-
};
|
|
64
|
-
config.endpoint = await errors_1.runWithErrorCatchAndWrap(createStorageErrorWrapper, async () => await client.createStorageAccount());
|
|
65
|
-
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.next(progress_helper_1.ProvisionSteps.Configure));
|
|
66
|
-
await errors_1.runWithErrorCatchAndThrow(new errors_1.EnableStaticWebsiteError(), async () => await client.enableStaticWebsite());
|
|
67
|
-
config.domain = new URL(config.endpoint).hostname;
|
|
68
|
-
config.syncToPluginContext(ctx);
|
|
69
|
-
await progress_helper_1.ProgressHelper.endProvisionProgress(true);
|
|
70
|
-
logger_1.Logger.info(messages_1.Messages.EndProvision(constants_1.FrontendPluginInfo.DisplayName));
|
|
71
|
-
return teamsfx_api_1.ok(undefined);
|
|
72
|
-
}
|
|
73
39
|
async postProvision(ctx) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
logger_1.Logger.info(messages_1.Messages.EndPostProvision(constants_1.FrontendPluginInfo.DisplayName));
|
|
82
|
-
}
|
|
40
|
+
logger_1.Logger.info(messages_1.Messages.StartPostProvision(constants_1.FrontendPluginInfo.DisplayName));
|
|
41
|
+
const progressHandler = await progress_helper_1.ProgressHelper.startPostProvisionProgressHandler(ctx);
|
|
42
|
+
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.next(progress_helper_1.PostProvisionSteps.EnableStaticWebsite));
|
|
43
|
+
const client = new clients_1.AzureStorageClient(await configs_1.FrontendConfig.fromPluginContext(ctx));
|
|
44
|
+
await errors_1.runWithErrorCatchAndThrow(new errors_1.EnableStaticWebsiteError(), async () => await client.enableStaticWebsite());
|
|
45
|
+
await progress_helper_1.ProgressHelper.endPostProvisionProgress(true);
|
|
46
|
+
logger_1.Logger.info(messages_1.Messages.EndPostProvision(constants_1.FrontendPluginInfo.DisplayName));
|
|
83
47
|
await this.updateDotEnv(ctx);
|
|
84
48
|
return teamsfx_api_1.ok(undefined);
|
|
85
49
|
}
|
|
@@ -139,6 +103,11 @@ class FrontendPluginImpl {
|
|
|
139
103
|
};
|
|
140
104
|
return teamsfx_api_1.ok(result);
|
|
141
105
|
}
|
|
106
|
+
async localDebug(ctx) {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
(_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.frontend) === null || _b === void 0 ? void 0 : _b.set(localSettingsConstants_1.LocalSettingsFrontendKeys.TabIndexPath, constants_1.Constants.FrontendIndexPath);
|
|
109
|
+
return teamsfx_api_1.ok(undefined);
|
|
110
|
+
}
|
|
142
111
|
collectEnvs(ctx) {
|
|
143
112
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
144
113
|
const envs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/plugin.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAQgC;AAChC,wDAAwB;AAExB,uCAA+C;AAC/C,+CAe4B;AAC5B,2CAOqB;AACrB,uCAA2C;AAC3C,yCAAkD;AAClD,2CAAwC;AACxC,mDAAgD;AAChD,6CAA8D;AAE9D,6DAOiC;AACjC,2DAAwD;AACxD,uDAAoE;AACpE,4CAAqD;AAErD,yDAAkD;AAClD,4CAAiE;AACjE,kEAA4E;AAC5E,+BAAuE;AACvE,gGAAmG;AACnG,mEAAsF;AACtF,iDAAmF;AACnF,MAAa,kBAAkB;IACtB,KAAK,CAAC,QAAQ,CAAC,GAAkB;QACtC,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,aAAa,CAAC,8BAAU,CAAC,WAAW,CAAC,CAAC,CAAC;QAC5D,MAAM,eAAe,GAAG,MAAM,gCAAc,CAAC,4BAA4B,CAAC,GAAG,CAAC,CAAC;QAC/E,MAAM,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,CAAC,+BAAa,CAAC,QAAQ,CAAC,CAAA,CAAC;QAEpD,MAAM,YAAY,GAAG,IAAI,2BAAY,CAAC,GAAG,CAAC,CAAC;QAE3C,MAAM,2BAAQ,CAAC,sBAAsB,CACnC,cAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,4BAAgB,CAAC,UAAU,CAAC,EAChD,YAAY,CACb,CAAC;QAEF,MAAM,gCAAc,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC/C,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,WAAW,CAAC,8BAAU,CAAC,WAAW,CAAC,CAAC,CAAC;QAC1D,OAAO,gBAAE,CAAC,SA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,MAA0B;QAChE,MAAM,mBAAmB,GAAY,MAAM,kCAAyB,CAClE,IAAI,gCAAuB,EAAE,EAC7B,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,uBAAuB,EAAE,CACnD,CAAC;QACF,IAAI,CAAC,mBAAmB,EAAE;YACxB,MAAM,IAAI,6BAAoB,EAAE,CAAC;SAClC;IACH,CAAC;IAEO,KAAK,CAAC,mBAAmB,CAAC,MAA0B;QAC1D,MAAM,aAAa,GAAY,MAAM,kCAAyB,CAC5D,IAAI,0BAAiB,EAAE,EACvB,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,wBAAwB,EAAE,CACpD,CAAC;QACF,IAAI,CAAC,aAAa,EAAE;YAClB,MAAM,IAAI,uBAAc,EAAE,CAAC;SAC5B;IACH,CAAC;IAEO,KAAK,CAAC,sBAAsB,CAAC,MAA0B;QAC7D,MAAM,gBAAgB,GAAwB,MAAM,kCAAyB,CAC3E,IAAI,0BAAiB,EAAE,EACvB,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,6BAA6B,EAAE,CACzD,CAAC;QACF,IAAI,CAAC,gBAAgB,EAAE;YACrB,MAAM,IAAI,mCAA0B,EAAE,CAAC;SACxC;IACH,CAAC;CACF;AAtSD,gDAsSC"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/plugin.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAQgC;AAChC,wDAAwB;AAExB,uCAA+C;AAC/C,+CAU4B;AAC5B,2CAMqB;AACrB,uCAA2C;AAC3C,yCAAkD;AAClD,2CAAwC;AACxC,mDAAgD;AAChD,6CAA8D;AAE9D,6DAMiC;AACjC,2DAAwD;AACxD,4CAAqD;AAErD,yDAAkD;AAClD,4CAA4C;AAC5C,kEAA4E;AAC5E,+BAAuE;AACvE,gGAAmG;AACnG,mEAAsF;AACtF,iDAAmF;AACnF,mFAAmF;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;SAClC;IACH,CAAC;IAEO,KAAK,CAAC,mBAAmB,CAAC,MAA0B;QAC1D,MAAM,aAAa,GAAY,MAAM,kCAAyB,CAC5D,IAAI,0BAAiB,EAAE,EACvB,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,wBAAwB,EAAE,CACpD,CAAC;QACF,IAAI,CAAC,aAAa,EAAE;YAClB,MAAM,IAAI,uBAAc,EAAE,CAAC;SAC5B;IACH,CAAC;IAEO,KAAK,CAAC,sBAAsB,CAAC,MAA0B;QAC7D,MAAM,gBAAgB,GAAwB,MAAM,kCAAyB,CAC3E,IAAI,0BAAiB,EAAE,EACvB,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,6BAA6B,EAAE,CACzD,CAAC;QACF,IAAI,CAAC,gBAAgB,EAAE;YACrB,MAAM,IAAI,mCAA0B,EAAE,CAAC;SACxC;IACH,CAAC;CACF;AAjPD,gDAiPC"}
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
+
import { FxError } from "@microsoft/teamsfx-api";
|
|
1
2
|
export declare enum ErrorType {
|
|
2
3
|
User = 0,
|
|
3
4
|
System = 1
|
|
4
5
|
}
|
|
6
|
+
export declare const tips: {
|
|
7
|
+
checkLog: string;
|
|
8
|
+
reScaffold: string;
|
|
9
|
+
doProvision: string;
|
|
10
|
+
doLogin: string;
|
|
11
|
+
reLogin: string;
|
|
12
|
+
reProvision: string;
|
|
13
|
+
doNpmInstall: string;
|
|
14
|
+
doBuild: string;
|
|
15
|
+
ensureBuildPath: string;
|
|
16
|
+
ensureResourceGroup: string;
|
|
17
|
+
ensureAppNameValid: string;
|
|
18
|
+
deleteSameNameStorage: string;
|
|
19
|
+
checkNetwork: string;
|
|
20
|
+
checkFsPermissions: string;
|
|
21
|
+
checkStoragePermissions: string;
|
|
22
|
+
checkSystemTime: string;
|
|
23
|
+
restoreEnvironment: string;
|
|
24
|
+
migrateV1Project: string;
|
|
25
|
+
};
|
|
5
26
|
export declare class FrontendPluginError extends Error {
|
|
6
27
|
code: string;
|
|
7
28
|
message: string;
|
|
@@ -17,9 +38,6 @@ export declare class FrontendPluginError extends Error {
|
|
|
17
38
|
export declare class UnauthenticatedError extends FrontendPluginError {
|
|
18
39
|
constructor();
|
|
19
40
|
}
|
|
20
|
-
export declare class NoPreStepError extends FrontendPluginError {
|
|
21
|
-
constructor();
|
|
22
|
-
}
|
|
23
41
|
export declare class InvalidConfigError extends FrontendPluginError {
|
|
24
42
|
constructor(key: string, detailedErrorMessage?: string);
|
|
25
43
|
}
|
|
@@ -41,15 +59,6 @@ export declare class StaticWebsiteDisabledError extends FrontendPluginError {
|
|
|
41
59
|
export declare class InvalidStorageNameError extends FrontendPluginError {
|
|
42
60
|
constructor();
|
|
43
61
|
}
|
|
44
|
-
export declare class StorageAccountAlreadyTakenError extends FrontendPluginError {
|
|
45
|
-
constructor();
|
|
46
|
-
}
|
|
47
|
-
export declare class RegisterResourceProviderError extends FrontendPluginError {
|
|
48
|
-
constructor();
|
|
49
|
-
}
|
|
50
|
-
export declare class CreateStorageAccountError extends FrontendPluginError {
|
|
51
|
-
constructor(innerErrorCode?: string);
|
|
52
|
-
}
|
|
53
62
|
export declare class EnableStaticWebsiteError extends FrontendPluginError {
|
|
54
63
|
constructor();
|
|
55
64
|
}
|
|
@@ -89,12 +98,6 @@ export declare class NpmInstallError extends FrontendPluginError {
|
|
|
89
98
|
export declare class InvalidTabLanguageError extends FrontendPluginError {
|
|
90
99
|
constructor();
|
|
91
100
|
}
|
|
92
|
-
export declare class InvalidAuthPluginConfigError extends FrontendPluginError {
|
|
93
|
-
constructor();
|
|
94
|
-
}
|
|
95
|
-
export declare class InvalidAadPluginConfigError extends FrontendPluginError {
|
|
96
|
-
constructor();
|
|
97
|
-
}
|
|
98
101
|
export declare class MigrateV1ProjectError extends FrontendPluginError {
|
|
99
102
|
constructor();
|
|
100
103
|
}
|
|
@@ -106,6 +109,6 @@ export declare class UserTaskNotImplementedError extends FrontendPluginError {
|
|
|
106
109
|
}
|
|
107
110
|
export declare const UnhandledErrorCode = "UnhandledError";
|
|
108
111
|
export declare const UnhandledErrorMessage = "Unhandled error.";
|
|
109
|
-
export declare function runWithErrorCatchAndThrow<T>(error: FrontendPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
110
|
-
export declare function runWithErrorCatchAndWrap<T>(wrap: (error: any) => FrontendPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
112
|
+
export declare function runWithErrorCatchAndThrow<T>(error: FrontendPluginError | FxError, fn: () => T | Promise<T>): Promise<T>;
|
|
113
|
+
export declare function runWithErrorCatchAndWrap<T>(wrap: (error: any) => FrontendPluginError | FxError, fn: () => T | Promise<T>): Promise<T>;
|
|
111
114
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/resources/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/resources/errors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAuC,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtF,oBAAY,SAAS;IACnB,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAqBhB,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,KAAK;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,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;IAUnB,U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