@microsoft/teamsfx-core 2.0.2-alpha.857e9ca79.0 → 2.0.2-alpha.9fd4f497a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/constants.d.ts +0 -13
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +1 -16
- package/build/common/constants.js.map +1 -1
- package/build/common/featureFlags.d.ts +0 -4
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +6 -25
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/jsonUtils.d.ts +2 -1
- package/build/common/jsonUtils.d.ts.map +1 -1
- package/build/common/jsonUtils.js +1 -2
- package/build/common/jsonUtils.js.map +1 -1
- package/build/common/local/index.d.ts +0 -2
- package/build/common/local/index.d.ts.map +1 -1
- package/build/common/local/index.js +0 -2
- package/build/common/local/index.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +1 -11
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +0 -70
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/portChecker.d.ts +1 -2
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +1 -47
- package/build/common/local/portChecker.js.map +1 -1
- package/build/common/samples-config-v3.json +15 -0
- package/build/common/tools.d.ts +1 -72
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +8 -287
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts.map +1 -1
- package/build/component/coordinator/index.d.ts +3 -10
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +28 -8
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/coordinator/summary.d.ts +0 -1
- package/build/component/coordinator/summary.d.ts.map +1 -1
- package/build/component/coordinator/summary.js +1 -2
- package/build/component/coordinator/summary.js.map +1 -1
- package/build/component/deployUtils.d.ts +2 -1
- package/build/component/deployUtils.d.ts.map +1 -1
- package/build/component/deployUtils.js +1 -2
- package/build/component/deployUtils.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts +0 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +1 -21
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/botAadApp/create.d.ts.map +1 -1
- package/build/component/driver/botAadApp/create.js +2 -3
- package/build/component/driver/botAadApp/create.js.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.js +2 -3
- package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
- package/build/component/{resource/appManifest → driver/teamsApp/clients}/appStudioClient.d.ts +4 -4
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -0
- package/build/component/{resource/appManifest → driver/teamsApp/clients}/appStudioClient.js +12 -12
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -0
- package/build/component/driver/teamsApp/clients/authSvcClient.d.ts.map +1 -0
- package/build/component/{resource/appManifest → driver/teamsApp/clients}/authSvcClient.js +4 -4
- package/build/component/driver/teamsApp/clients/authSvcClient.js.map +1 -0
- package/build/component/driver/teamsApp/configure.js +1 -1
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/create.js +1 -1
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +3 -4
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/middleware/actionExecutionMW.d.ts +3 -4
- package/build/component/middleware/actionExecutionMW.d.ts.map +1 -1
- package/build/component/middleware/actionExecutionMW.js +10 -16
- package/build/component/middleware/actionExecutionMW.js.map +1 -1
- package/build/component/middleware/envMW.d.ts +1 -3
- package/build/component/middleware/envMW.d.ts.map +1 -1
- package/build/component/middleware/envMW.js +2 -3
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/provisionUtils.d.ts +3 -6
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +2 -79
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/question.d.ts +0 -2
- package/build/component/question.d.ts.map +1 -1
- package/build/component/question.js +1 -2
- package/build/component/question.js.map +1 -1
- package/build/component/resource/appManifest/appManifest.d.ts +1 -8
- package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
- package/build/component/resource/appManifest/appManifest.js +2 -132
- package/build/component/resource/appManifest/appManifest.js.map +1 -1
- package/build/component/resource/appManifest/appStudio.d.ts +1 -15
- package/build/component/resource/appManifest/appStudio.d.ts.map +1 -1
- package/build/component/resource/appManifest/appStudio.js +6 -179
- package/build/component/resource/appManifest/appStudio.js.map +1 -1
- package/build/component/resource/appManifest/constants.d.ts +0 -14
- package/build/component/resource/appManifest/constants.d.ts.map +1 -1
- package/build/component/resource/appManifest/constants.js +1 -50
- package/build/component/resource/appManifest/constants.js.map +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts +0 -11
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.js +4 -140
- package/build/component/resource/appManifest/utils/ManifestUtils.js.map +1 -1
- package/build/component/resource/appManifest/utils/utils.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/utils.js +8 -9
- package/build/component/resource/appManifest/utils/utils.js.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.js +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
- package/build/component/resource/botService/botRegistration/botAadApp.d.ts +11 -0
- package/build/component/resource/botService/botRegistration/botAadApp.d.ts.map +1 -0
- package/build/component/resource/botService/botRegistration/botAadApp.js +61 -0
- package/build/component/resource/botService/botRegistration/botAadApp.js.map +1 -0
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts +7 -0
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts.map +1 -0
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js +36 -0
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js.map +1 -0
- package/build/component/resource/botService/strings.d.ts +0 -39
- package/build/component/resource/botService/strings.d.ts.map +1 -1
- package/build/component/resource/botService/strings.js +1 -44
- package/build/component/resource/botService/strings.js.map +1 -1
- package/build/component/telemetry.d.ts +2 -2
- package/build/component/telemetry.d.ts.map +1 -1
- package/build/component/telemetry.js +1 -2
- package/build/component/telemetry.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +2 -6
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +3 -8
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/azureResourceOperation.d.ts +0 -2
- package/build/component/utils/azureResourceOperation.d.ts.map +1 -1
- package/build/component/utils/azureResourceOperation.js +1 -3
- package/build/component/utils/azureResourceOperation.js.map +1 -1
- package/build/component/utils/azureSdkErrorHandler.d.ts +0 -2
- package/build/component/utils/azureSdkErrorHandler.d.ts.map +1 -1
- package/build/component/utils/azureSdkErrorHandler.js +1 -3
- package/build/component/utils/azureSdkErrorHandler.js.map +1 -1
- package/build/component/utils/common.d.ts +0 -1
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +1 -13
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/envUtil.d.ts +3 -3
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +1 -3
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/fileOperation.d.ts.map +1 -1
- package/build/component/utils/fileOperation.js +6 -4
- package/build/component/utils/fileOperation.js.map +1 -1
- package/build/component/utils/metadataUtil.d.ts +2 -1
- package/build/component/utils/metadataUtil.d.ts.map +1 -1
- package/build/component/utils/metadataUtil.js +1 -2
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts +2 -3
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +1 -4
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/settingsUtil.d.ts +2 -1
- package/build/component/utils/settingsUtil.d.ts.map +1 -1
- package/build/component/utils/settingsUtil.js +1 -2
- package/build/component/utils/settingsUtil.js.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.d.ts +2 -1
- package/build/component/utils/teamsFxTelemetryReporter.d.ts.map +1 -1
- package/build/component/utils.d.ts +1 -7
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +7 -21
- package/build/component/utils.js.map +1 -1
- package/build/core/FxCore.d.ts +18 -20
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +83 -69
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts +1 -4
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +18 -23
- package/build/core/FxCoreImplementV3.js.map +1 -1
- package/build/core/callback.d.ts +2 -1
- package/build/core/callback.d.ts.map +1 -1
- package/build/core/callback.js.map +1 -1
- package/build/core/environment.d.ts +2 -4
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +1 -25
- package/build/core/environment.js.map +1 -1
- package/build/core/globalVars.d.ts +3 -6
- package/build/core/globalVars.d.ts.map +1 -1
- package/build/core/globalVars.js +1 -8
- package/build/core/globalVars.js.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.d.ts +2 -2
- package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.js +3 -2
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +1 -1
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +1 -3
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/utils/debug/constants.d.ts.map +1 -0
- package/build/core/middleware/utils/debug/constants.js.map +1 -0
- package/build/core/question.d.ts +0 -7
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +10 -21
- package/build/core/question.js.map +1 -1
- package/build/core/telemetry.d.ts +0 -5
- package/build/core/telemetry.d.ts.map +1 -1
- package/build/core/telemetry.js +4 -4
- package/build/core/telemetry.js.map +1 -1
- package/build/index.d.ts +10 -6
- package/build/index.d.ts.map +1 -1
- package/build/index.js +16 -6
- package/build/index.js.map +1 -1
- package/build/ui/visitor.d.ts +2 -2
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +1 -2
- package/build/ui/visitor.js.map +1 -1
- package/package.json +4 -5
- package/resource/package.nls.json +1 -54
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/build/common/local/localEnvProvider.d.ts +0 -69
- package/build/common/local/localEnvProvider.d.ts.map +0 -1
- package/build/common/local/localEnvProvider.js +0 -185
- package/build/common/local/localEnvProvider.js.map +0 -1
- package/build/common/local/localSettingsHelper.d.ts +0 -4
- package/build/common/local/localSettingsHelper.d.ts.map +0 -1
- package/build/common/local/localSettingsHelper.js +0 -159
- package/build/common/local/localSettingsHelper.js.map +0 -1
- package/build/common/local/localStateHelper.d.ts +0 -3
- package/build/common/local/localStateHelper.d.ts.map +0 -1
- package/build/common/local/localStateHelper.js +0 -145
- package/build/common/local/localStateHelper.js.map +0 -1
- package/build/common/local/projectSettingsHelper.d.ts +0 -12
- package/build/common/local/projectSettingsHelper.d.ts.map +0 -1
- package/build/common/local/projectSettingsHelper.js +0 -32
- package/build/common/local/projectSettingsHelper.js.map +0 -1
- package/build/common/localSettingsConstants.d.ts +0 -45
- package/build/common/localSettingsConstants.d.ts.map +0 -1
- package/build/common/localSettingsConstants.js +0 -50
- package/build/common/localSettingsConstants.js.map +0 -1
- package/build/common/localSettingsProvider.d.ts +0 -21
- package/build/common/localSettingsProvider.d.ts.map +0 -1
- package/build/common/localSettingsProvider.js +0 -254
- package/build/common/localSettingsProvider.js.map +0 -1
- package/build/common/localStateConstants.d.ts +0 -39
- package/build/common/localStateConstants.d.ts.map +0 -1
- package/build/common/localStateConstants.js +0 -44
- package/build/common/localStateConstants.js.map +0 -1
- package/build/common/localStateProvider.d.ts +0 -7
- package/build/common/localStateProvider.d.ts.map +0 -1
- package/build/common/localStateProvider.js +0 -28
- package/build/common/localStateProvider.js.map +0 -1
- package/build/component/debug/constants.d.ts.map +0 -1
- package/build/component/debug/constants.js.map +0 -1
- package/build/component/debug/util/codespace.d.ts +0 -3
- package/build/component/debug/util/codespace.d.ts.map +0 -1
- package/build/component/debug/util/codespace.js +0 -23
- package/build/component/debug/util/codespace.js.map +0 -1
- package/build/component/debug/util/launch.d.ts +0 -5
- package/build/component/debug/util/launch.d.ts.map +0 -1
- package/build/component/debug/util/launch.js +0 -393
- package/build/component/debug/util/launch.js.map +0 -1
- package/build/component/debug/util/launchNext.d.ts +0 -6
- package/build/component/debug/util/launchNext.d.ts.map +0 -1
- package/build/component/debug/util/launchNext.js +0 -324
- package/build/component/debug/util/launchNext.js.map +0 -1
- package/build/component/debug/util/launchTransparency.d.ts +0 -9
- package/build/component/debug/util/launchTransparency.d.ts.map +0 -1
- package/build/component/debug/util/launchTransparency.js +0 -63
- package/build/component/debug/util/launchTransparency.js.map +0 -1
- package/build/component/debug/util/localService.d.ts +0 -3
- package/build/component/debug/util/localService.d.ts.map +0 -1
- package/build/component/debug/util/localService.js +0 -52
- package/build/component/debug/util/localService.js.map +0 -1
- package/build/component/debug/util/settings.d.ts +0 -3
- package/build/component/debug/util/settings.d.ts.map +0 -1
- package/build/component/debug/util/settings.js +0 -42
- package/build/component/debug/util/settings.js.map +0 -1
- package/build/component/debug/util/tasks.d.ts +0 -4
- package/build/component/debug/util/tasks.d.ts.map +0 -1
- package/build/component/debug/util/tasks.js +0 -240
- package/build/component/debug/util/tasks.js.map +0 -1
- package/build/component/debug/util/tasksNext.d.ts +0 -4
- package/build/component/debug/util/tasksNext.d.ts.map +0 -1
- package/build/component/debug/util/tasksNext.js +0 -364
- package/build/component/debug/util/tasksNext.js.map +0 -1
- package/build/component/debug/util/tasksTransparency.d.ts +0 -8
- package/build/component/debug/util/tasksTransparency.d.ts.map +0 -1
- package/build/component/debug/util/tasksTransparency.js +0 -725
- package/build/component/debug/util/tasksTransparency.js.map +0 -1
- package/build/component/debug/util/telemetry.d.ts +0 -27
- package/build/component/debug/util/telemetry.d.ts.map +0 -1
- package/build/component/debug/util/telemetry.js +0 -78
- package/build/component/debug/util/telemetry.js.map +0 -1
- package/build/component/resource/apim/answer.d.ts +0 -41
- package/build/component/resource/apim/answer.d.ts.map +0 -1
- package/build/component/resource/apim/answer.js +0 -148
- package/build/component/resource/apim/answer.js.map +0 -1
- package/build/component/resource/apim/apim.d.ts +0 -37
- package/build/component/resource/apim/apim.d.ts.map +0 -1
- package/build/component/resource/apim/apim.js +0 -168
- package/build/component/resource/apim/apim.js.map +0 -1
- package/build/component/resource/apim/config.d.ts +0 -93
- package/build/component/resource/apim/config.d.ts.map +0 -1
- package/build/component/resource/apim/config.js +0 -181
- package/build/component/resource/apim/config.js.map +0 -1
- package/build/component/resource/apim/constants.d.ts +0 -239
- package/build/component/resource/apim/constants.d.ts.map +0 -1
- package/build/component/resource/apim/constants.js +0 -398
- package/build/component/resource/apim/constants.js.map +0 -1
- package/build/component/resource/apim/error.d.ts +0 -36
- package/build/component/resource/apim/error.d.ts.map +0 -1
- package/build/component/resource/apim/error.js +0 -204
- package/build/component/resource/apim/error.js.map +0 -1
- package/build/component/resource/apim/factory.d.ts +0 -19
- package/build/component/resource/apim/factory.d.ts.map +0 -1
- package/build/component/resource/apim/factory.js +0 -100
- package/build/component/resource/apim/factory.js.map +0 -1
- package/build/component/resource/apim/interfaces/IAadResource.d.ts +0 -55
- package/build/component/resource/apim/interfaces/IAadResource.d.ts.map +0 -1
- package/build/component/resource/apim/interfaces/IAadResource.js +0 -3
- package/build/component/resource/apim/interfaces/IAadResource.js.map +0 -1
- package/build/component/resource/apim/interfaces/IName.d.ts +0 -5
- package/build/component/resource/apim/interfaces/IName.d.ts.map +0 -1
- package/build/component/resource/apim/interfaces/IName.js +0 -3
- package/build/component/resource/apim/interfaces/IName.js.map +0 -1
- package/build/component/resource/apim/interfaces/IOpenApiDocument.d.ts +0 -7
- package/build/component/resource/apim/interfaces/IOpenApiDocument.d.ts.map +0 -1
- package/build/component/resource/apim/interfaces/IOpenApiDocument.js +0 -3
- package/build/component/resource/apim/interfaces/IOpenApiDocument.js.map +0 -1
- package/build/component/resource/apim/log.d.ts +0 -12
- package/build/component/resource/apim/log.d.ts.map +0 -1
- package/build/component/resource/apim/log.js +0 -28
- package/build/component/resource/apim/log.js.map +0 -1
- package/build/component/resource/apim/managers/aadManager.d.ts +0 -16
- package/build/component/resource/apim/managers/aadManager.d.ts.map +0 -1
- package/build/component/resource/apim/managers/aadManager.js +0 -94
- package/build/component/resource/apim/managers/aadManager.js.map +0 -1
- package/build/component/resource/apim/managers/apimManager.d.ts +0 -16
- package/build/component/resource/apim/managers/apimManager.d.ts.map +0 -1
- package/build/component/resource/apim/managers/apimManager.js +0 -58
- package/build/component/resource/apim/managers/apimManager.js.map +0 -1
- package/build/component/resource/apim/managers/questionManager.d.ts +0 -27
- package/build/component/resource/apim/managers/questionManager.d.ts.map +0 -1
- package/build/component/resource/apim/managers/questionManager.js +0 -83
- package/build/component/resource/apim/managers/questionManager.js.map +0 -1
- package/build/component/resource/apim/managers/scaffoldManager.d.ts +0 -10
- package/build/component/resource/apim/managers/scaffoldManager.d.ts.map +0 -1
- package/build/component/resource/apim/managers/scaffoldManager.js +0 -27
- package/build/component/resource/apim/managers/scaffoldManager.js.map +0 -1
- package/build/component/resource/apim/managers/teamsAppAadManager.d.ts +0 -12
- package/build/component/resource/apim/managers/teamsAppAadManager.d.ts.map +0 -1
- package/build/component/resource/apim/managers/teamsAppAadManager.js +0 -20
- package/build/component/resource/apim/managers/teamsAppAadManager.js.map +0 -1
- package/build/component/resource/apim/questions/cliQuestion.d.ts +0 -19
- package/build/component/resource/apim/questions/cliQuestion.d.ts.map +0 -1
- package/build/component/resource/apim/questions/cliQuestion.js +0 -73
- package/build/component/resource/apim/questions/cliQuestion.js.map +0 -1
- package/build/component/resource/apim/questions/question.d.ts +0 -13
- package/build/component/resource/apim/questions/question.d.ts.map +0 -1
- package/build/component/resource/apim/questions/question.js +0 -11
- package/build/component/resource/apim/questions/question.js.map +0 -1
- package/build/component/resource/apim/questions/vscodeQuestion.d.ts +0 -34
- package/build/component/resource/apim/questions/vscodeQuestion.d.ts.map +0 -1
- package/build/component/resource/apim/questions/vscodeQuestion.js +0 -169
- package/build/component/resource/apim/questions/vscodeQuestion.js.map +0 -1
- package/build/component/resource/apim/services/aadService.d.ts +0 -18
- package/build/component/resource/apim/services/aadService.d.ts.map +0 -1
- package/build/component/resource/apim/services/aadService.js +0 -87
- package/build/component/resource/apim/services/aadService.js.map +0 -1
- package/build/component/resource/apim/services/apimService.d.ts +0 -28
- package/build/component/resource/apim/services/apimService.d.ts.map +0 -1
- package/build/component/resource/apim/services/apimService.js +0 -194
- package/build/component/resource/apim/services/apimService.js.map +0 -1
- package/build/component/resource/apim/utils/commonUtils.d.ts +0 -20
- package/build/component/resource/apim/utils/commonUtils.d.ts.map +0 -1
- package/build/component/resource/apim/utils/commonUtils.js +0 -91
- package/build/component/resource/apim/utils/commonUtils.js.map +0 -1
- package/build/component/resource/apim/utils/namingRules.d.ts +0 -28
- package/build/component/resource/apim/utils/namingRules.d.ts.map +0 -1
- package/build/component/resource/apim/utils/namingRules.js +0 -99
- package/build/component/resource/apim/utils/namingRules.js.map +0 -1
- package/build/component/resource/apim/utils/openApiProcessor.d.ts +0 -19
- package/build/component/resource/apim/utils/openApiProcessor.d.ts.map +0 -1
- package/build/component/resource/apim/utils/openApiProcessor.js +0 -161
- package/build/component/resource/apim/utils/openApiProcessor.js.map +0 -1
- package/build/component/resource/apim/utils/progressBar.d.ts +0 -10
- package/build/component/resource/apim/utils/progressBar.d.ts.map +0 -1
- package/build/component/resource/apim/utils/progressBar.js +0 -42
- package/build/component/resource/apim/utils/progressBar.js.map +0 -1
- package/build/component/resource/apim/utils/telemetry.d.ts +0 -11
- package/build/component/resource/apim/utils/telemetry.d.ts.map +0 -1
- package/build/component/resource/apim/utils/telemetry.js +0 -76
- package/build/component/resource/apim/utils/telemetry.js.map +0 -1
- package/build/component/resource/appManifest/appStudioClient.d.ts.map +0 -1
- package/build/component/resource/appManifest/appStudioClient.js.map +0 -1
- package/build/component/resource/appManifest/authSvcClient.d.ts.map +0 -1
- package/build/component/resource/appManifest/authSvcClient.js.map +0 -1
- package/build/component/resource/appManifest/manifestProvider.d.ts +0 -8
- package/build/component/resource/appManifest/manifestProvider.d.ts.map +0 -1
- package/build/component/resource/appManifest/manifestProvider.js +0 -32
- package/build/component/resource/appManifest/manifestProvider.js.map +0 -1
- package/build/component/resource/appManifest/questions.d.ts +0 -4
- package/build/component/resource/appManifest/questions.d.ts.map +0 -1
- package/build/component/resource/appManifest/questions.js +0 -23
- package/build/component/resource/appManifest/questions.js.map +0 -1
- package/build/component/resource/azureResource.d.ts +0 -11
- package/build/component/resource/azureResource.d.ts.map +0 -1
- package/build/component/resource/azureResource.js +0 -52
- package/build/component/resource/azureResource.js.map +0 -1
- package/build/component/resource/botService/botRegistration/botRegistration.d.ts +0 -27
- package/build/component/resource/botService/botRegistration/botRegistration.d.ts.map +0 -1
- package/build/component/resource/botService/botRegistration/botRegistration.js +0 -80
- package/build/component/resource/botService/botRegistration/botRegistration.js.map +0 -1
- package/build/component/resource/botService/botRegistration/factory.d.ts +0 -12
- package/build/component/resource/botService/botRegistration/factory.d.ts.map +0 -1
- package/build/component/resource/botService/botRegistration/factory.js +0 -26
- package/build/component/resource/botService/botRegistration/factory.js.map +0 -1
- package/build/component/resource/botService/botRegistration/localBotRegistration.d.ts +0 -12
- package/build/component/resource/botService/botRegistration/localBotRegistration.d.ts.map +0 -1
- package/build/component/resource/botService/botRegistration/localBotRegistration.js +0 -83
- package/build/component/resource/botService/botRegistration/localBotRegistration.js.map +0 -1
- package/build/component/resource/botService/botRegistration/remoteBotRegistration.d.ts +0 -12
- package/build/component/resource/botService/botRegistration/remoteBotRegistration.d.ts.map +0 -1
- package/build/component/resource/botService/botRegistration/remoteBotRegistration.js +0 -30
- package/build/component/resource/botService/botRegistration/remoteBotRegistration.js.map +0 -1
- package/build/component/resource/botService/resourceNameFactory.d.ts +0 -4
- package/build/component/resource/botService/resourceNameFactory.d.ts.map +0 -1
- package/build/component/resource/botService/resourceNameFactory.js +0 -25
- package/build/component/resource/botService/resourceNameFactory.js.map +0 -1
- package/build/component/resource/botService/result.d.ts +0 -10
- package/build/component/resource/botService/result.d.ts.map +0 -1
- package/build/component/resource/botService/result.js +0 -34
- package/build/component/resource/botService/result.js.map +0 -1
- package/build/core/permissionRequest.d.ts +0 -9
- package/build/core/permissionRequest.d.ts.map +0 -1
- package/build/core/permissionRequest.js +0 -30
- package/build/core/permissionRequest.js.map +0 -1
- /package/build/component/{resource/appManifest → driver/teamsApp/clients}/authSvcClient.d.ts +0 -0
- /package/build/{component → core/middleware/utils}/debug/constants.d.ts +0 -0
- /package/build/{component → core/middleware/utils}/debug/constants.js +0 -0
|
@@ -1,725 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
"use strict";
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.generateSpfxTasksJson = exports.mergeTasksJson = exports.generateM365Tasks = exports.generateTasks = exports.generateM365TasksJson = exports.generateTasksJson = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const constants_1 = require("../../../common/local/constants");
|
|
8
|
-
const comment_json_1 = require("comment-json");
|
|
9
|
-
const commentJson = tslib_1.__importStar(require("comment-json"));
|
|
10
|
-
const constants_2 = require("../../../common/local/constants");
|
|
11
|
-
const constants_3 = require("../../constants");
|
|
12
|
-
function generateTasksJson(includeFrontend, includeBackend, includeBot, includeFuncHostedBot, includeSSO, programmingLanguage) {
|
|
13
|
-
const comment = `
|
|
14
|
-
// This file is automatically generated by Teams Toolkit.
|
|
15
|
-
// The teamsfx tasks defined in this file require Teams Toolkit version >= 4.1.0.
|
|
16
|
-
// See https://aka.ms/teamsfx-debug-tasks for details on how to customize each task and how to integrate with existing Teams Toolkit projects.
|
|
17
|
-
{}
|
|
18
|
-
`;
|
|
19
|
-
return commentJson.assign(commentJson.parse(comment), {
|
|
20
|
-
version: "2.0.0",
|
|
21
|
-
tasks: generateTasks(includeFrontend, includeBackend, includeBot, includeFuncHostedBot, includeSSO, programmingLanguage),
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
exports.generateTasksJson = generateTasksJson;
|
|
25
|
-
function generateM365TasksJson(includeFrontend, includeBackend, includeBot, includeFuncHostedBot, includeSSO, programmingLanguage) {
|
|
26
|
-
const comment = `
|
|
27
|
-
// This file is automatically generated by Teams Toolkit.
|
|
28
|
-
// See https://aka.ms/teamsfx-debug-tasks to know the details and how to customize each task.
|
|
29
|
-
{}
|
|
30
|
-
`;
|
|
31
|
-
return commentJson.assign(commentJson.parse(comment), {
|
|
32
|
-
version: "2.0.0",
|
|
33
|
-
tasks: generateM365Tasks(includeFrontend, includeBackend, includeBot, includeFuncHostedBot, includeSSO, programmingLanguage),
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
exports.generateM365TasksJson = generateM365TasksJson;
|
|
37
|
-
function generateTasks(includeFrontend, includeBackend, includeBot, includeFuncHostedBot, includeSSO, programmingLanguage) {
|
|
38
|
-
/**
|
|
39
|
-
* Referenced by launch.json
|
|
40
|
-
* - Start Teams App Locally
|
|
41
|
-
*
|
|
42
|
-
* Referenced inside tasks.json
|
|
43
|
-
* - Validate & install prerequisites
|
|
44
|
-
* - Install npm packages
|
|
45
|
-
* - Start local tunnel
|
|
46
|
-
* - Set up tab
|
|
47
|
-
* - Set up bot
|
|
48
|
-
* - Set up SSO
|
|
49
|
-
* - Build & upload Teams manifest
|
|
50
|
-
* - Start services
|
|
51
|
-
* - Start frontend
|
|
52
|
-
* - Start backend
|
|
53
|
-
* - Install Azure Functions binding extensions
|
|
54
|
-
* - Watch backend
|
|
55
|
-
* - Start bot
|
|
56
|
-
* - Start Azurite emulator
|
|
57
|
-
*/
|
|
58
|
-
const tasks = [
|
|
59
|
-
startTeamsAppLocally(includeFrontend, includeBackend, includeBot, includeSSO),
|
|
60
|
-
validateAndInstallPrerequisites(includeFrontend, includeBackend, includeBot, includeFuncHostedBot, false),
|
|
61
|
-
installNPMpackages(includeFrontend, includeBackend, includeBot, false),
|
|
62
|
-
];
|
|
63
|
-
if (includeBot) {
|
|
64
|
-
tasks.push(startLocalTunnel());
|
|
65
|
-
}
|
|
66
|
-
if (includeFrontend) {
|
|
67
|
-
tasks.push(setUpTab());
|
|
68
|
-
}
|
|
69
|
-
if (includeBot) {
|
|
70
|
-
tasks.push(setUpBot());
|
|
71
|
-
}
|
|
72
|
-
if (includeSSO) {
|
|
73
|
-
tasks.push(setUpSSO());
|
|
74
|
-
}
|
|
75
|
-
tasks.push(buildAndUploadTeamsManifest());
|
|
76
|
-
tasks.push(startServices(includeFrontend, includeBackend, includeBot));
|
|
77
|
-
if (includeFrontend) {
|
|
78
|
-
tasks.push(startFrontend());
|
|
79
|
-
}
|
|
80
|
-
if (includeBackend) {
|
|
81
|
-
tasks.push(startBackend(programmingLanguage));
|
|
82
|
-
tasks.push(installAzureFunctionsBindingExtensions());
|
|
83
|
-
if (programmingLanguage === constants_3.ProgrammingLanguage.TS) {
|
|
84
|
-
tasks.push(watchBackend());
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
if (includeBot) {
|
|
88
|
-
if (includeFuncHostedBot) {
|
|
89
|
-
tasks.push(startFuncHostedBot(includeFrontend, programmingLanguage));
|
|
90
|
-
tasks.push(startAzuriteEmulator());
|
|
91
|
-
if (programmingLanguage === constants_3.ProgrammingLanguage.TS) {
|
|
92
|
-
tasks.push(watchFuncHostedBot());
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
tasks.push(startBot(includeFrontend));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return tasks;
|
|
100
|
-
}
|
|
101
|
-
exports.generateTasks = generateTasks;
|
|
102
|
-
function generateM365Tasks(includeFrontend, includeBackend, includeBot, includeFuncHostedBot, includeSSO, programmingLanguage) {
|
|
103
|
-
/**
|
|
104
|
-
* Referenced by launch.json
|
|
105
|
-
* - Start Teams App Locally
|
|
106
|
-
* - Start Teams App Locally & Install App
|
|
107
|
-
*
|
|
108
|
-
* Referenced inside tasks.json
|
|
109
|
-
* - Validate & install prerequisites
|
|
110
|
-
* - Install npm packages
|
|
111
|
-
* - Start local tunnel
|
|
112
|
-
* - Set up tab
|
|
113
|
-
* - Set up bot
|
|
114
|
-
* - Set up SSO
|
|
115
|
-
* - Build & upload Teams manifest
|
|
116
|
-
* - Start services
|
|
117
|
-
* - Start frontend
|
|
118
|
-
* - Start backend
|
|
119
|
-
* - Install Azure Functions binding extensions
|
|
120
|
-
* - Watch backend
|
|
121
|
-
* - Start bot
|
|
122
|
-
* - Start Azurite emulator
|
|
123
|
-
* - Install app in Teams
|
|
124
|
-
*/
|
|
125
|
-
const tasks = generateTasks(includeFrontend, includeBackend, includeBot, includeFuncHostedBot, includeSSO, programmingLanguage);
|
|
126
|
-
tasks.splice(1, 0, startTeamsAppLocallyAndInstallApp(includeFrontend, includeBackend, includeBot, includeSSO));
|
|
127
|
-
tasks.push(installAppInTeams());
|
|
128
|
-
return tasks;
|
|
129
|
-
}
|
|
130
|
-
exports.generateM365Tasks = generateM365Tasks;
|
|
131
|
-
function mergeTasksJson(existingData, newData) {
|
|
132
|
-
const mergedData = commentJson.assign(commentJson.parse(`{}`), existingData);
|
|
133
|
-
if (mergedData.version === undefined) {
|
|
134
|
-
mergedData.version = newData.version;
|
|
135
|
-
}
|
|
136
|
-
if (mergedData.tasks === undefined) {
|
|
137
|
-
mergedData.tasks = newData.tasks;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
const existingTasks = mergedData.tasks;
|
|
141
|
-
const newTasks = newData.tasks;
|
|
142
|
-
const keptTasks = new comment_json_1.CommentArray();
|
|
143
|
-
for (const existingTask of existingTasks) {
|
|
144
|
-
if (!newTasks.some((newTask) => existingTask.label === newTask.label && existingTask.type === newTask.type)) {
|
|
145
|
-
keptTasks.push(existingTask);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
mergedData.tasks = new comment_json_1.CommentArray(...keptTasks, ...newTasks);
|
|
149
|
-
}
|
|
150
|
-
if (mergedData.inputs === undefined) {
|
|
151
|
-
mergedData.inputs = newData.inputs;
|
|
152
|
-
}
|
|
153
|
-
else if (newData.inputs !== undefined) {
|
|
154
|
-
const existingInputs = mergedData.inputs;
|
|
155
|
-
const newInputs = newData.inputs;
|
|
156
|
-
const keptInputs = new comment_json_1.CommentArray();
|
|
157
|
-
for (const existingInput of existingInputs) {
|
|
158
|
-
if (!newInputs.some((newInput) => existingInput.id === newInput.id && existingInput.type === newInput.type)) {
|
|
159
|
-
keptInputs.push(existingInput);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
mergedData.inputs = new comment_json_1.CommentArray(...keptInputs, ...newInputs);
|
|
163
|
-
}
|
|
164
|
-
return mergedData;
|
|
165
|
-
}
|
|
166
|
-
exports.mergeTasksJson = mergeTasksJson;
|
|
167
|
-
function startTeamsAppLocally(includeFrontend, includeBackend, includeBot, includeSSO) {
|
|
168
|
-
const result = {
|
|
169
|
-
label: constants_1.TaskOverallLabel.TransparentDefault,
|
|
170
|
-
dependsOn: [constants_2.TaskLabel.PrerequisiteCheck, constants_2.TaskLabel.InstallNpmPackages],
|
|
171
|
-
dependsOrder: "sequence",
|
|
172
|
-
};
|
|
173
|
-
if (includeBot) {
|
|
174
|
-
result.dependsOn.push(constants_2.TaskLabel.StartLocalTunnel);
|
|
175
|
-
}
|
|
176
|
-
if (includeFrontend) {
|
|
177
|
-
result.dependsOn.push(constants_2.TaskLabel.SetUpTab);
|
|
178
|
-
}
|
|
179
|
-
if (includeBot) {
|
|
180
|
-
result.dependsOn.push(constants_2.TaskLabel.SetUpBot);
|
|
181
|
-
}
|
|
182
|
-
if (includeSSO) {
|
|
183
|
-
result.dependsOn.push(constants_2.TaskLabel.SetUpSSO);
|
|
184
|
-
}
|
|
185
|
-
result.dependsOn.push(constants_2.TaskLabel.PrepareManifest, constants_2.TaskLabel.StartServices);
|
|
186
|
-
return result;
|
|
187
|
-
}
|
|
188
|
-
function startTeamsAppLocallyAndInstallApp(includeFrontend, includeBackend, includeBot, includeSSO) {
|
|
189
|
-
const result = startTeamsAppLocally(includeFrontend, includeBackend, includeBot, includeSSO);
|
|
190
|
-
result.label = constants_1.TaskOverallLabel.TransparentM365;
|
|
191
|
-
result.dependsOn.push(constants_2.TaskLabel.InstallAppInTeams);
|
|
192
|
-
return result;
|
|
193
|
-
}
|
|
194
|
-
function validateAndInstallPrerequisites(includeFrontend, includeBackend, includeBot, includeFuncHostedBot, includeSpfx) {
|
|
195
|
-
const prerequisites = [
|
|
196
|
-
`"${constants_2.Prerequisite.nodejs}", // Validate if Node.js is installed.`,
|
|
197
|
-
`"${constants_2.Prerequisite.m365Account}", // Sign-in prompt for Microsoft 365 account, then validate if the account enables the sideloading permission.`,
|
|
198
|
-
];
|
|
199
|
-
const ports = [];
|
|
200
|
-
if (includeFrontend) {
|
|
201
|
-
prerequisites.push(`"${constants_2.Prerequisite.devCert}", // Install localhost SSL certificate. It's used to serve the development sites over HTTPS to debug the Tab app in Teams.`);
|
|
202
|
-
ports.push(`${constants_2.TaskDefaultValue.checkPrerequisites.ports.tabService}, // tab service port`);
|
|
203
|
-
}
|
|
204
|
-
if (includeBackend) {
|
|
205
|
-
prerequisites.push(`"${constants_2.Prerequisite.func}", // Install Azure Functions Core Tools. It's used to serve Azure Functions hosted project locally.`, `"${constants_2.Prerequisite.dotnet}", // Ensure .NET Core SDK is installed. TeamsFx Azure Functions project depends on extra .NET binding extensions for HTTP trigger authorization.`);
|
|
206
|
-
ports.push(`${constants_2.TaskDefaultValue.checkPrerequisites.ports.backendService}, // backend service port`, `${constants_2.TaskDefaultValue.checkPrerequisites.ports.backendDebug}, // backend inspector port for Node.js debugger`);
|
|
207
|
-
}
|
|
208
|
-
if (includeFuncHostedBot && !includeBackend) {
|
|
209
|
-
prerequisites.push(`"${constants_2.Prerequisite.func}", // Install Azure Functions Core Tools. It's used to serve Azure Functions hosted project locally.`);
|
|
210
|
-
}
|
|
211
|
-
if (includeBot) {
|
|
212
|
-
prerequisites.push(`"${constants_2.Prerequisite.ngrok}", // Install Ngrok. Bot project requires a public message endpoint, and ngrok can help create public tunnel for your local service.`);
|
|
213
|
-
ports.push(`${constants_2.TaskDefaultValue.checkPrerequisites.ports.botService}, // bot service port`, `${constants_2.TaskDefaultValue.checkPrerequisites.ports.botDebug}, // bot inspector port for Node.js debugger`);
|
|
214
|
-
}
|
|
215
|
-
if (includeSpfx) {
|
|
216
|
-
ports.push(`${constants_2.TaskDefaultValue.checkPrerequisites.ports.spfxService}, // SPFx service port`);
|
|
217
|
-
}
|
|
218
|
-
prerequisites.push(`"${constants_2.Prerequisite.portOccupancy}", // Validate available ports to ensure those debug ones are not occupied.`);
|
|
219
|
-
const prerequisitesComment = `
|
|
220
|
-
[
|
|
221
|
-
${prerequisites.join("\n ")}
|
|
222
|
-
]`;
|
|
223
|
-
const portsComment = `
|
|
224
|
-
[
|
|
225
|
-
${ports.join("\n ")}
|
|
226
|
-
]
|
|
227
|
-
`;
|
|
228
|
-
const comment = `{
|
|
229
|
-
// Check if all required prerequisites are installed and will install them if not.
|
|
230
|
-
// See https://aka.ms/teamsfx-check-prerequisites-task to know the details and how to customize the args.
|
|
231
|
-
}`;
|
|
232
|
-
const args = {
|
|
233
|
-
prerequisites: commentJson.parse(prerequisitesComment),
|
|
234
|
-
};
|
|
235
|
-
args["portOccupancy"] = commentJson.parse(portsComment);
|
|
236
|
-
const task = {
|
|
237
|
-
label: constants_2.TaskLabel.PrerequisiteCheck,
|
|
238
|
-
type: "teamsfx",
|
|
239
|
-
command: constants_2.TaskCommand.checkPrerequisites,
|
|
240
|
-
args: args,
|
|
241
|
-
};
|
|
242
|
-
return commentJson.assign(commentJson.parse(comment), task);
|
|
243
|
-
}
|
|
244
|
-
function installNPMpackages(includeFrontend, includeBackend, includeBot, includeSpfx) {
|
|
245
|
-
const comment = `{
|
|
246
|
-
// Check if all the npm packages are installed and will install them if not.
|
|
247
|
-
// See https://aka.ms/teamsfx-npm-package-task to know the details and how to customize the args.
|
|
248
|
-
}`;
|
|
249
|
-
const result = {
|
|
250
|
-
label: constants_2.TaskLabel.InstallNpmPackages,
|
|
251
|
-
type: "teamsfx",
|
|
252
|
-
command: constants_2.TaskCommand.npmInstall,
|
|
253
|
-
args: {
|
|
254
|
-
projects: [],
|
|
255
|
-
},
|
|
256
|
-
};
|
|
257
|
-
if (includeFrontend) {
|
|
258
|
-
result.args.projects.push({
|
|
259
|
-
cwd: "${workspaceFolder}/tabs",
|
|
260
|
-
npmInstallArgs: constants_2.TaskDefaultValue.npmInstall.npmInstallArgs,
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
if (includeBackend) {
|
|
264
|
-
result.args.projects.push({
|
|
265
|
-
cwd: "${workspaceFolder}/api",
|
|
266
|
-
npmInstallArgs: constants_2.TaskDefaultValue.npmInstall.npmInstallArgs,
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
if (includeBot) {
|
|
270
|
-
result.args.projects.push({
|
|
271
|
-
cwd: "${workspaceFolder}/bot",
|
|
272
|
-
npmInstallArgs: constants_2.TaskDefaultValue.npmInstall.npmInstallArgs,
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
if (includeSpfx) {
|
|
276
|
-
result.args.projects.push({
|
|
277
|
-
cwd: "${workspaceFolder}/SPFx",
|
|
278
|
-
npmInstallArgs: constants_2.TaskDefaultValue.npmInstall.npmInstallArgs,
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
return commentJson.assign(commentJson.parse(comment), result);
|
|
282
|
-
}
|
|
283
|
-
function installAzureFunctionsBindingExtensions() {
|
|
284
|
-
const comment = `{
|
|
285
|
-
// TeamsFx Azure Functions project depends on extra Azure Functions binding extensions for HTTP trigger authorization.
|
|
286
|
-
}`;
|
|
287
|
-
const task = {
|
|
288
|
-
label: constants_2.TaskLabel.InstallAzureFuncBindingExt,
|
|
289
|
-
type: "shell",
|
|
290
|
-
command: "dotnet build extensions.csproj -o ./bin --ignore-failed-sources",
|
|
291
|
-
options: {
|
|
292
|
-
cwd: "${workspaceFolder}/api",
|
|
293
|
-
env: {
|
|
294
|
-
PATH: "${command:fx-extension.get-dotnet-path}${env:PATH}",
|
|
295
|
-
},
|
|
296
|
-
},
|
|
297
|
-
presentation: {
|
|
298
|
-
reveal: "silent",
|
|
299
|
-
},
|
|
300
|
-
};
|
|
301
|
-
return commentJson.assign(commentJson.parse(comment), task);
|
|
302
|
-
}
|
|
303
|
-
function startLocalTunnel() {
|
|
304
|
-
const comment = `{
|
|
305
|
-
// Start the local tunnel service to forward public ngrok URL to local port and inspect traffic.
|
|
306
|
-
// See https://aka.ms/teamsfx-local-tunnel-task for the detailed args definitions,
|
|
307
|
-
// as well as samples to:
|
|
308
|
-
// - use your own ngrok command / configuration / binary
|
|
309
|
-
// - use your own tunnel solution
|
|
310
|
-
// - provide alternatives if ngrok does not work on your dev machine
|
|
311
|
-
}`;
|
|
312
|
-
const task = {
|
|
313
|
-
label: constants_2.TaskLabel.StartLocalTunnel,
|
|
314
|
-
type: "teamsfx",
|
|
315
|
-
command: constants_2.TaskCommand.startLocalTunnel,
|
|
316
|
-
args: {
|
|
317
|
-
ngrokArgs: constants_2.TaskDefaultValue.startLocalTunnel.ngrokArgs,
|
|
318
|
-
},
|
|
319
|
-
isBackground: true,
|
|
320
|
-
problemMatcher: "$teamsfx-local-tunnel-watch",
|
|
321
|
-
};
|
|
322
|
-
return commentJson.assign(commentJson.parse(comment), task);
|
|
323
|
-
}
|
|
324
|
-
function setUpTab() {
|
|
325
|
-
const comment = `{
|
|
326
|
-
// Prepare local launch information for Tab.
|
|
327
|
-
// See https://aka.ms/teamsfx-debug-set-up-tab-task to know the details and how to customize the args.
|
|
328
|
-
}`;
|
|
329
|
-
const task = {
|
|
330
|
-
label: constants_2.TaskLabel.SetUpTab,
|
|
331
|
-
type: "teamsfx",
|
|
332
|
-
command: constants_2.TaskCommand.setUpTab,
|
|
333
|
-
args: {
|
|
334
|
-
baseUrl: constants_2.TaskDefaultValue.setUpTab.baseUrl,
|
|
335
|
-
},
|
|
336
|
-
};
|
|
337
|
-
return commentJson.assign(commentJson.parse(comment), task);
|
|
338
|
-
}
|
|
339
|
-
function setUpBot() {
|
|
340
|
-
const comment = `{
|
|
341
|
-
// Register resources and prepare local launch information for Bot.
|
|
342
|
-
// See https://aka.ms/teamsfx-debug-set-up-bot-task to know the details and how to customize the args.
|
|
343
|
-
}`;
|
|
344
|
-
const existingBot = `
|
|
345
|
-
{
|
|
346
|
-
//// Enter your own bot information if using the existing bot. ////
|
|
347
|
-
// "botId": "",
|
|
348
|
-
// "botPassword": "", // use plain text or environment variable reference like \${env:BOT_PASSWORD}
|
|
349
|
-
"botMessagingEndpoint": "/api/messages", // use your own routing "/any/path", or full URL "https://contoso.com/any/path"
|
|
350
|
-
}
|
|
351
|
-
`;
|
|
352
|
-
const task = {
|
|
353
|
-
label: constants_2.TaskLabel.SetUpBot,
|
|
354
|
-
type: "teamsfx",
|
|
355
|
-
command: constants_2.TaskCommand.setUpBot,
|
|
356
|
-
args: commentJson.parse(existingBot),
|
|
357
|
-
};
|
|
358
|
-
return commentJson.assign(commentJson.parse(comment), task);
|
|
359
|
-
}
|
|
360
|
-
function setUpSSO() {
|
|
361
|
-
const comment = `{
|
|
362
|
-
// Register resources and prepare local launch information for SSO functionality.
|
|
363
|
-
// See https://aka.ms/teamsfx-debug-set-up-sso-task to know the details and how to customize the args.
|
|
364
|
-
}`;
|
|
365
|
-
const existingAAD = `
|
|
366
|
-
{
|
|
367
|
-
//// Enter your own AAD app information if using the existing AAD app. ////
|
|
368
|
-
// "objectId": "",
|
|
369
|
-
// "clientId": "",
|
|
370
|
-
// "clientSecret": "", // use plain text or environment variable reference like \${env:CLIENT_SECRET}
|
|
371
|
-
// "accessAsUserScopeId": "
|
|
372
|
-
}
|
|
373
|
-
`;
|
|
374
|
-
const task = {
|
|
375
|
-
label: constants_2.TaskLabel.SetUpSSO,
|
|
376
|
-
type: "teamsfx",
|
|
377
|
-
command: constants_2.TaskCommand.setUpSSO,
|
|
378
|
-
args: commentJson.parse(existingAAD),
|
|
379
|
-
};
|
|
380
|
-
return commentJson.assign(commentJson.parse(comment), task);
|
|
381
|
-
}
|
|
382
|
-
function buildAndUploadTeamsManifest() {
|
|
383
|
-
const comment = `
|
|
384
|
-
{
|
|
385
|
-
// Build and upload Teams manifest.
|
|
386
|
-
// See https://aka.ms/teamsfx-debug-prepare-manifest-task to know the details and how to customize the args.
|
|
387
|
-
}`;
|
|
388
|
-
const existingApp = `
|
|
389
|
-
{
|
|
390
|
-
//// Enter your own Teams app package path if using the existing Teams manifest. ////
|
|
391
|
-
// "appPackagePath": ""
|
|
392
|
-
}
|
|
393
|
-
`;
|
|
394
|
-
const task = {
|
|
395
|
-
label: constants_2.TaskLabel.PrepareManifest,
|
|
396
|
-
type: "teamsfx",
|
|
397
|
-
command: constants_2.TaskCommand.prepareManifest,
|
|
398
|
-
args: commentJson.parse(existingApp),
|
|
399
|
-
};
|
|
400
|
-
return commentJson.assign(commentJson.parse(comment), task);
|
|
401
|
-
}
|
|
402
|
-
function startFrontend() {
|
|
403
|
-
return {
|
|
404
|
-
label: constants_2.TaskLabel.StartFrontend,
|
|
405
|
-
type: "shell",
|
|
406
|
-
command: "npm run dev:teamsfx",
|
|
407
|
-
isBackground: true,
|
|
408
|
-
options: {
|
|
409
|
-
cwd: "${workspaceFolder}/tabs",
|
|
410
|
-
},
|
|
411
|
-
problemMatcher: {
|
|
412
|
-
pattern: {
|
|
413
|
-
regexp: "^.*$",
|
|
414
|
-
file: 0,
|
|
415
|
-
location: 1,
|
|
416
|
-
message: 2,
|
|
417
|
-
},
|
|
418
|
-
background: {
|
|
419
|
-
activeOnStart: true,
|
|
420
|
-
beginsPattern: ".*",
|
|
421
|
-
endsPattern: "Compiled|Failed|compiled|failed",
|
|
422
|
-
},
|
|
423
|
-
},
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
function startBackend(programmingLanguage) {
|
|
427
|
-
const result = {
|
|
428
|
-
label: constants_2.TaskLabel.StartBackend,
|
|
429
|
-
type: "shell",
|
|
430
|
-
command: "npm run dev:teamsfx",
|
|
431
|
-
isBackground: true,
|
|
432
|
-
options: {
|
|
433
|
-
cwd: "${workspaceFolder}/api",
|
|
434
|
-
env: {
|
|
435
|
-
PATH: "${command:fx-extension.get-func-path}${env:PATH}",
|
|
436
|
-
},
|
|
437
|
-
},
|
|
438
|
-
problemMatcher: {
|
|
439
|
-
pattern: {
|
|
440
|
-
regexp: "^.*$",
|
|
441
|
-
file: 0,
|
|
442
|
-
location: 1,
|
|
443
|
-
message: 2,
|
|
444
|
-
},
|
|
445
|
-
background: {
|
|
446
|
-
activeOnStart: true,
|
|
447
|
-
beginsPattern: "^.*(Job host stopped|signaling restart).*$",
|
|
448
|
-
endsPattern: "^.*(Worker process started and initialized|Host lock lease acquired by instance ID).*$",
|
|
449
|
-
},
|
|
450
|
-
},
|
|
451
|
-
presentation: {
|
|
452
|
-
reveal: "silent",
|
|
453
|
-
},
|
|
454
|
-
dependsOn: [constants_2.TaskLabel.InstallAzureFuncBindingExt],
|
|
455
|
-
};
|
|
456
|
-
if (programmingLanguage === constants_3.ProgrammingLanguage.TS) {
|
|
457
|
-
result.dependsOn.push(constants_2.TaskLabel.WatchBackend);
|
|
458
|
-
}
|
|
459
|
-
return result;
|
|
460
|
-
}
|
|
461
|
-
function watchBackend() {
|
|
462
|
-
return {
|
|
463
|
-
label: constants_2.TaskLabel.WatchBackend,
|
|
464
|
-
type: "shell",
|
|
465
|
-
command: "npm run watch:teamsfx",
|
|
466
|
-
isBackground: true,
|
|
467
|
-
options: {
|
|
468
|
-
cwd: "${workspaceFolder}/api",
|
|
469
|
-
},
|
|
470
|
-
problemMatcher: "$tsc-watch",
|
|
471
|
-
presentation: {
|
|
472
|
-
reveal: "silent",
|
|
473
|
-
},
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
function watchFuncHostedBot() {
|
|
477
|
-
return {
|
|
478
|
-
label: constants_2.TaskLabel.WatchBot,
|
|
479
|
-
type: "shell",
|
|
480
|
-
command: "npm run watch:teamsfx",
|
|
481
|
-
isBackground: true,
|
|
482
|
-
options: {
|
|
483
|
-
cwd: "${workspaceFolder}/bot",
|
|
484
|
-
},
|
|
485
|
-
problemMatcher: "$tsc-watch",
|
|
486
|
-
presentation: {
|
|
487
|
-
reveal: "silent",
|
|
488
|
-
},
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
function startBot(includeFrontend) {
|
|
492
|
-
const result = {
|
|
493
|
-
label: constants_2.TaskLabel.StartBot,
|
|
494
|
-
type: "shell",
|
|
495
|
-
command: "npm run dev:teamsfx",
|
|
496
|
-
isBackground: true,
|
|
497
|
-
options: {
|
|
498
|
-
cwd: "${workspaceFolder}/bot",
|
|
499
|
-
},
|
|
500
|
-
problemMatcher: {
|
|
501
|
-
pattern: [
|
|
502
|
-
{
|
|
503
|
-
regexp: "^.*$",
|
|
504
|
-
file: 0,
|
|
505
|
-
location: 1,
|
|
506
|
-
message: 2,
|
|
507
|
-
},
|
|
508
|
-
],
|
|
509
|
-
background: {
|
|
510
|
-
activeOnStart: true,
|
|
511
|
-
beginsPattern: "[nodemon] starting",
|
|
512
|
-
endsPattern: "restify listening to|Bot/ME service listening at|[nodemon] app crashed",
|
|
513
|
-
},
|
|
514
|
-
},
|
|
515
|
-
};
|
|
516
|
-
if (includeFrontend) {
|
|
517
|
-
result.presentation = { reveal: "silent" };
|
|
518
|
-
}
|
|
519
|
-
return result;
|
|
520
|
-
}
|
|
521
|
-
function startFuncHostedBot(includeFrontend, programmingLanguage) {
|
|
522
|
-
const result = {
|
|
523
|
-
label: constants_2.TaskLabel.StartBot,
|
|
524
|
-
type: "shell",
|
|
525
|
-
command: "npm run dev:teamsfx",
|
|
526
|
-
isBackground: true,
|
|
527
|
-
options: {
|
|
528
|
-
cwd: "${workspaceFolder}/bot",
|
|
529
|
-
env: {
|
|
530
|
-
PATH: "${command:fx-extension.get-func-path}${env:PATH}",
|
|
531
|
-
},
|
|
532
|
-
},
|
|
533
|
-
problemMatcher: {
|
|
534
|
-
pattern: {
|
|
535
|
-
regexp: "^.*$",
|
|
536
|
-
file: 0,
|
|
537
|
-
location: 1,
|
|
538
|
-
message: 2,
|
|
539
|
-
},
|
|
540
|
-
background: {
|
|
541
|
-
activeOnStart: true,
|
|
542
|
-
beginsPattern: "^.*(Job host stopped|signaling restart).*$",
|
|
543
|
-
endsPattern: "^.*(Worker process started and initialized|Host lock lease acquired by instance ID).*$",
|
|
544
|
-
},
|
|
545
|
-
},
|
|
546
|
-
};
|
|
547
|
-
if (includeFrontend) {
|
|
548
|
-
result.presentation = { reveal: "silent" };
|
|
549
|
-
}
|
|
550
|
-
const dependsOn = [constants_2.TaskLabel.StartAzuriteEmulator];
|
|
551
|
-
if (programmingLanguage === constants_3.ProgrammingLanguage.TS) {
|
|
552
|
-
dependsOn.push(constants_2.TaskLabel.WatchBot);
|
|
553
|
-
}
|
|
554
|
-
result.dependsOn = dependsOn;
|
|
555
|
-
return result;
|
|
556
|
-
}
|
|
557
|
-
function startServices(includeFrontend, includeBackend, includeBot) {
|
|
558
|
-
const dependsOn = [];
|
|
559
|
-
if (includeFrontend) {
|
|
560
|
-
dependsOn.push(constants_2.TaskLabel.StartFrontend);
|
|
561
|
-
}
|
|
562
|
-
if (includeBackend) {
|
|
563
|
-
dependsOn.push(constants_2.TaskLabel.StartBackend);
|
|
564
|
-
}
|
|
565
|
-
if (includeBot) {
|
|
566
|
-
dependsOn.push(constants_2.TaskLabel.StartBot);
|
|
567
|
-
}
|
|
568
|
-
return {
|
|
569
|
-
label: constants_2.TaskLabel.StartServices,
|
|
570
|
-
dependsOn,
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
function startAzuriteEmulator() {
|
|
574
|
-
return {
|
|
575
|
-
label: constants_2.TaskLabel.StartAzuriteEmulator,
|
|
576
|
-
type: "shell",
|
|
577
|
-
command: "npm run prepare-storage:teamsfx",
|
|
578
|
-
isBackground: true,
|
|
579
|
-
problemMatcher: {
|
|
580
|
-
pattern: [
|
|
581
|
-
{
|
|
582
|
-
regexp: "^.*$",
|
|
583
|
-
file: 0,
|
|
584
|
-
location: 1,
|
|
585
|
-
message: 2,
|
|
586
|
-
},
|
|
587
|
-
],
|
|
588
|
-
background: {
|
|
589
|
-
activeOnStart: true,
|
|
590
|
-
beginsPattern: "Azurite",
|
|
591
|
-
endsPattern: "successfully listening",
|
|
592
|
-
},
|
|
593
|
-
},
|
|
594
|
-
options: {
|
|
595
|
-
cwd: "${workspaceFolder}/bot",
|
|
596
|
-
},
|
|
597
|
-
presentation: { reveal: "silent" },
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
function installAppInTeams() {
|
|
601
|
-
return {
|
|
602
|
-
label: constants_2.TaskLabel.InstallAppInTeams,
|
|
603
|
-
type: "shell",
|
|
604
|
-
command: "exit ${command:fx-extension.install-app-in-teams}",
|
|
605
|
-
presentation: {
|
|
606
|
-
reveal: "never",
|
|
607
|
-
},
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
function generateSpfxTasksJson() {
|
|
611
|
-
const comment = `
|
|
612
|
-
// This file is automatically generated by Teams Toolkit.
|
|
613
|
-
// The teamsfx tasks defined in this file require Teams Toolkit version >= 4.1.0.
|
|
614
|
-
// See https://aka.ms/teamsfx-debug-tasks for details on how to customize each task and how to integrate with existing Teams Toolkit projects.
|
|
615
|
-
{}
|
|
616
|
-
`;
|
|
617
|
-
return commentJson.assign(commentJson.parse(comment), {
|
|
618
|
-
version: "2.0.0",
|
|
619
|
-
tasks: generateSpfxTasks(),
|
|
620
|
-
inputs: generateInputs(),
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
exports.generateSpfxTasksJson = generateSpfxTasksJson;
|
|
624
|
-
function generateSpfxTasks() {
|
|
625
|
-
/**
|
|
626
|
-
* Referenced by launch.json
|
|
627
|
-
* - Start Teams App Locally
|
|
628
|
-
*
|
|
629
|
-
* Referenced inside tasks.json
|
|
630
|
-
* - Validate & install prerequisites
|
|
631
|
-
* - Build & upload Teams manifest
|
|
632
|
-
* - gulp serve
|
|
633
|
-
*/
|
|
634
|
-
return [
|
|
635
|
-
startSpfxTeamsAppLocally(),
|
|
636
|
-
startSpfxTeamsAppLocallyAndInstallAppInTeams(),
|
|
637
|
-
validateAndInstallPrerequisites(false, false, false, false, true),
|
|
638
|
-
buildAndUploadTeamsManifest(),
|
|
639
|
-
installNPMpackages(false, false, false, true),
|
|
640
|
-
gulpTrustDevCert(),
|
|
641
|
-
gulpServe(),
|
|
642
|
-
installAppInTeams(),
|
|
643
|
-
terminateAllTasks(),
|
|
644
|
-
];
|
|
645
|
-
}
|
|
646
|
-
function startSpfxTeamsAppLocally() {
|
|
647
|
-
return {
|
|
648
|
-
label: constants_1.TaskOverallLabel.TransparentDefault,
|
|
649
|
-
dependsOn: [constants_2.TaskLabel.PrerequisiteCheck, constants_2.TaskLabel.PrepareManifest, constants_2.TaskLabel.GulpServe],
|
|
650
|
-
dependsOrder: "sequence",
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
function startSpfxTeamsAppLocallyAndInstallAppInTeams() {
|
|
654
|
-
return {
|
|
655
|
-
label: constants_1.TaskOverallLabel.TransparentM365,
|
|
656
|
-
dependsOn: [
|
|
657
|
-
constants_2.TaskLabel.PrerequisiteCheck,
|
|
658
|
-
constants_2.TaskLabel.PrepareManifest,
|
|
659
|
-
constants_2.TaskLabel.GulpServe,
|
|
660
|
-
constants_2.TaskLabel.InstallAppInTeams,
|
|
661
|
-
],
|
|
662
|
-
dependsOrder: "sequence",
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
function gulpTrustDevCert() {
|
|
666
|
-
return {
|
|
667
|
-
label: constants_2.TaskLabel.GulpTrustDevCert,
|
|
668
|
-
type: "process",
|
|
669
|
-
command: "node",
|
|
670
|
-
args: ["${workspaceFolder}/SPFx/node_modules/gulp/bin/gulp.js", "trust-dev-cert"],
|
|
671
|
-
options: {
|
|
672
|
-
cwd: "${workspaceFolder}/SPFx",
|
|
673
|
-
},
|
|
674
|
-
dependsOn: constants_2.TaskLabel.InstallNpmPackages,
|
|
675
|
-
};
|
|
676
|
-
}
|
|
677
|
-
function gulpServe() {
|
|
678
|
-
return {
|
|
679
|
-
label: "gulp serve",
|
|
680
|
-
type: "process",
|
|
681
|
-
command: "node",
|
|
682
|
-
args: ["${workspaceFolder}/SPFx/node_modules/gulp/bin/gulp.js", "serve", "--nobrowser"],
|
|
683
|
-
problemMatcher: [
|
|
684
|
-
{
|
|
685
|
-
pattern: [
|
|
686
|
-
{
|
|
687
|
-
regexp: ".",
|
|
688
|
-
file: 1,
|
|
689
|
-
location: 2,
|
|
690
|
-
message: 3,
|
|
691
|
-
},
|
|
692
|
-
],
|
|
693
|
-
background: {
|
|
694
|
-
activeOnStart: true,
|
|
695
|
-
beginsPattern: "^.*Starting gulp.*",
|
|
696
|
-
endsPattern: "^.*Finished subtask 'reload'.*",
|
|
697
|
-
},
|
|
698
|
-
},
|
|
699
|
-
],
|
|
700
|
-
isBackground: true,
|
|
701
|
-
options: {
|
|
702
|
-
cwd: "${workspaceFolder}/SPFx",
|
|
703
|
-
},
|
|
704
|
-
dependsOn: constants_2.TaskLabel.GulpTrustDevCert,
|
|
705
|
-
};
|
|
706
|
-
}
|
|
707
|
-
function terminateAllTasks() {
|
|
708
|
-
return {
|
|
709
|
-
label: "Terminate All Tasks",
|
|
710
|
-
command: "echo ${input:terminate}",
|
|
711
|
-
type: "shell",
|
|
712
|
-
problemMatcher: [],
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
function generateInputs() {
|
|
716
|
-
return [
|
|
717
|
-
{
|
|
718
|
-
id: "terminate",
|
|
719
|
-
type: "command",
|
|
720
|
-
command: "workbench.action.tasks.terminate",
|
|
721
|
-
args: "terminateAll",
|
|
722
|
-
},
|
|
723
|
-
];
|
|
724
|
-
}
|
|
725
|
-
//# sourceMappingURL=tasksTransparency.js.map
|