@microsoft/teamsfx-core 2.0.1-alpha.c8eab1a43.0 → 2.0.1-alpha.d4f96cccc.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/local/localStateHelper.d.ts.map +1 -1
- package/build/common/local/localStateHelper.js.map +1 -1
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +2 -2
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +0 -13
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +0 -13
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -1
- package/build/common/tools.d.ts +1 -15
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +53 -138
- package/build/common/tools.js.map +1 -1
- package/build/component/code/appSettingUtils.d.ts +1 -2
- package/build/component/code/appSettingUtils.d.ts.map +1 -1
- package/build/component/code/appSettingUtils.js +1 -46
- package/build/component/code/appSettingUtils.js.map +1 -1
- package/build/component/constant/deployConstant.d.ts.map +1 -1
- package/build/component/constant/deployConstant.js.map +1 -1
- package/build/component/constants.d.ts +3 -210
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +7 -404
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +1 -0
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +21 -10
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deployUtils.d.ts +1 -8
- package/build/component/deployUtils.d.ts.map +1 -1
- package/build/component/deployUtils.js +2 -98
- package/build/component/deployUtils.js.map +1 -1
- package/build/component/driver/add/addWebPart.js +3 -3
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +9 -9
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/interface/buildAndDeployArgs.d.ts +11 -11
- package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +6 -6
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/error.d.ts +0 -3
- package/build/component/error.d.ts.map +1 -1
- package/build/component/error.js +1 -11
- package/build/component/error.js.map +1 -1
- package/build/component/feature/cicd/cicd.d.ts +1 -2
- package/build/component/feature/cicd/cicd.d.ts.map +1 -1
- package/build/component/feature/cicd/cicd.js +2 -87
- package/build/component/feature/cicd/cicd.js.map +1 -1
- package/build/component/feature/sso.d.ts +0 -1
- package/build/component/feature/sso.d.ts.map +1 -1
- package/build/component/feature/sso.js +0 -1
- package/build/component/feature/sso.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +1 -1
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts +8 -0
- package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts.map +1 -0
- package/build/component/generator/spfx/depsChecker/dependencyChecker.js.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.d.ts +1 -4
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.js +0 -39
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.d.ts +1 -4
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.js +0 -33
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -0
- package/build/component/generator/spfx/error.d.ts +8 -0
- package/build/component/generator/spfx/error.d.ts.map +1 -0
- package/build/component/generator/spfx/error.js +55 -0
- package/build/component/generator/spfx/error.js.map +1 -0
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -0
- package/build/component/generator/{spfxGenerator.js → spfx/spfxGenerator.js} +16 -16
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/constants.d.ts +0 -33
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/constants.js +1 -39
- package/build/component/generator/spfx/utils/constants.js.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/progress-helper.d.ts +0 -5
- package/build/component/generator/spfx/utils/progress-helper.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/progress-helper.js +21 -0
- package/build/component/generator/spfx/utils/progress-helper.js.map +1 -0
- package/build/component/generator/spfx/utils/question-helper.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/question-helper.js.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/questions.d.ts +0 -1
- package/build/component/generator/spfx/utils/questions.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/questions.js +1 -23
- package/build/component/generator/spfx/utils/questions.js.map +1 -0
- package/build/component/generator/spfx/utils/telemetry-helper.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/telemetry-helper.js.map +1 -0
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/telemetryEvents.js.map +1 -0
- package/build/component/generator/spfx/utils/utils.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/utils.js.map +1 -0
- package/build/component/generator/utils.js +2 -2
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/provisionUtils.d.ts +2 -23
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +5 -523
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/question.js +1 -1
- package/build/component/question.js.map +1 -1
- package/build/component/registerService.d.ts +0 -3
- package/build/component/registerService.d.ts.map +1 -1
- package/build/component/registerService.js +0 -3
- package/build/component/registerService.js.map +1 -1
- package/build/component/resource/aadApp/utils/aadManifestHelper.js +2 -1
- package/build/component/resource/aadApp/utils/aadManifestHelper.js.map +1 -1
- package/build/component/resource/appManifest/appManifest.d.ts +0 -6
- package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
- package/build/component/resource/appManifest/appManifest.js +24 -247
- package/build/component/resource/appManifest/appManifest.js.map +1 -1
- package/build/component/resource/appManifest/appStudio.d.ts +1 -21
- package/build/component/resource/appManifest/appStudio.d.ts.map +1 -1
- package/build/component/resource/appManifest/appStudio.js +15 -257
- package/build/component/resource/appManifest/appStudio.js.map +1 -1
- package/build/component/resource/botService/errors.d.ts +0 -2
- package/build/component/resource/botService/errors.d.ts.map +1 -1
- package/build/component/resource/botService/errors.js +1 -43
- package/build/component/resource/botService/errors.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +1 -5
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +0 -6
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +2 -2
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils.d.ts +1 -18
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +23 -277
- package/build/component/utils.js.map +1 -1
- package/build/component/workflow.d.ts +0 -1
- package/build/component/workflow.d.ts.map +1 -1
- package/build/component/workflow.js +1 -6
- package/build/component/workflow.js.map +1 -1
- package/build/core/FxCore.d.ts +0 -8
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +0 -12
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +7 -20
- package/build/core/FxCoreImplementV3.js.map +1 -1
- package/build/core/collaborator.d.ts +2 -0
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +2 -0
- package/build/core/collaborator.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 +44 -108
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +1 -34
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +1 -112
- package/build/core/error.js.map +1 -1
- package/build/core/globalVars.d.ts +0 -1
- package/build/core/globalVars.d.ts.map +1 -1
- package/build/core/globalVars.js +1 -15
- package/build/core/globalVars.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +2 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +40 -46
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +9 -20
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.d.ts.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +6 -18
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
- package/build/core/middleware/utils/migrationContext.js +0 -4
- package/build/core/middleware/utils/migrationContext.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +4 -4
- package/build/core/question.js.map +1 -1
- package/build/core/types.d.ts +0 -10
- package/build/core/types.d.ts.map +1 -1
- package/build/index.d.ts +0 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/package.json +7 -11
- package/resource/package.nls.json +3 -177
- 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/azure-hosting/azureAppServiceHosting.d.ts +0 -16
- package/build/common/azure-hosting/azureAppServiceHosting.d.ts.map +0 -1
- package/build/common/azure-hosting/azureAppServiceHosting.js +0 -33
- package/build/common/azure-hosting/azureAppServiceHosting.js.map +0 -1
- package/build/common/azure-hosting/azureFunctionHosting.d.ts +0 -14
- package/build/common/azure-hosting/azureFunctionHosting.d.ts.map +0 -1
- package/build/common/azure-hosting/azureFunctionHosting.js +0 -34
- package/build/common/azure-hosting/azureFunctionHosting.js.map +0 -1
- package/build/common/azure-hosting/azureHosting.d.ts +0 -23
- package/build/common/azure-hosting/azureHosting.d.ts.map +0 -1
- package/build/common/azure-hosting/azureHosting.js +0 -95
- package/build/common/azure-hosting/azureHosting.js.map +0 -1
- package/build/common/azure-hosting/azureOps.d.ts +0 -17
- package/build/common/azure-hosting/azureOps.d.ts.map +0 -1
- package/build/common/azure-hosting/azureOps.js +0 -94
- package/build/common/azure-hosting/azureOps.js.map +0 -1
- package/build/common/azure-hosting/hostingConstant.d.ts +0 -46
- package/build/common/azure-hosting/hostingConstant.d.ts.map +0 -1
- package/build/common/azure-hosting/hostingConstant.js +0 -86
- package/build/common/azure-hosting/hostingConstant.js.map +0 -1
- package/build/common/azure-hosting/hostingError.d.ts +0 -47
- package/build/common/azure-hosting/hostingError.d.ts.map +0 -1
- package/build/common/azure-hosting/hostingError.js +0 -83
- package/build/common/azure-hosting/hostingError.js.map +0 -1
- package/build/common/azure-hosting/hostingFactory.d.ts +0 -6
- package/build/common/azure-hosting/hostingFactory.d.ts.map +0 -1
- package/build/common/azure-hosting/hostingFactory.js +0 -22
- package/build/common/azure-hosting/hostingFactory.js.map +0 -1
- package/build/common/azure-hosting/interfaces.d.ts +0 -58
- package/build/common/azure-hosting/interfaces.d.ts.map +0 -1
- package/build/common/azure-hosting/interfaces.js +0 -12
- package/build/common/azure-hosting/interfaces.js.map +0 -1
- package/build/common/azure-hosting/messages.d.ts +0 -10
- package/build/common/azure-hosting/messages.d.ts.map +0 -1
- package/build/common/azure-hosting/messages.js +0 -16
- package/build/common/azure-hosting/messages.js.map +0 -1
- package/build/common/azure-hosting/utils.d.ts +0 -10
- package/build/common/azure-hosting/utils.d.ts.map +0 -1
- package/build/common/azure-hosting/utils.js +0 -107
- package/build/common/azure-hosting/utils.js.map +0 -1
- package/build/common/samples-config.json +0 -201
- package/build/component/code/spfxTabCode.d.ts +0 -11
- package/build/component/code/spfxTabCode.d.ts.map +0 -1
- package/build/component/code/spfxTabCode.js +0 -237
- package/build/component/code/spfxTabCode.js.map +0 -1
- package/build/component/envManager.d.ts +0 -4
- package/build/component/envManager.d.ts.map +0 -1
- package/build/component/envManager.js +0 -25
- package/build/component/envManager.js.map +0 -1
- package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts +0 -23
- package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts.map +0 -1
- package/build/component/feature/apiconnector/ApiConnectorImpl.js +0 -288
- package/build/component/feature/apiconnector/ApiConnectorImpl.js.map +0 -1
- package/build/component/feature/apiconnector/checker.d.ts +0 -7
- package/build/component/feature/apiconnector/checker.d.ts.map +0 -1
- package/build/component/feature/apiconnector/checker.js +0 -74
- package/build/component/feature/apiconnector/checker.js.map +0 -1
- package/build/component/feature/apiconnector/config.d.ts +0 -23
- package/build/component/feature/apiconnector/config.d.ts.map +0 -1
- package/build/component/feature/apiconnector/config.js +0 -5
- package/build/component/feature/apiconnector/config.js.map +0 -1
- package/build/component/feature/apiconnector/constants.d.ts +0 -50
- package/build/component/feature/apiconnector/constants.d.ts.map +0 -1
- package/build/component/feature/apiconnector/constants.js +0 -61
- package/build/component/feature/apiconnector/constants.js.map +0 -1
- package/build/component/feature/apiconnector/depsHandler.d.ts +0 -14
- package/build/component/feature/apiconnector/depsHandler.d.ts.map +0 -1
- package/build/component/feature/apiconnector/depsHandler.js +0 -109
- package/build/component/feature/apiconnector/depsHandler.js.map +0 -1
- package/build/component/feature/apiconnector/envHandler.d.ts +0 -21
- package/build/component/feature/apiconnector/envHandler.d.ts.map +0 -1
- package/build/component/feature/apiconnector/envHandler.js +0 -128
- package/build/component/feature/apiconnector/envHandler.js.map +0 -1
- package/build/component/feature/apiconnector/errors.d.ts +0 -53
- package/build/component/feature/apiconnector/errors.d.ts.map +0 -1
- package/build/component/feature/apiconnector/errors.js +0 -64
- package/build/component/feature/apiconnector/errors.js.map +0 -1
- package/build/component/feature/apiconnector/questions.d.ts +0 -41
- package/build/component/feature/apiconnector/questions.d.ts.map +0 -1
- package/build/component/feature/apiconnector/questions.js +0 -262
- package/build/component/feature/apiconnector/questions.js.map +0 -1
- package/build/component/feature/apiconnector/result.d.ts +0 -23
- package/build/component/feature/apiconnector/result.d.ts.map +0 -1
- package/build/component/feature/apiconnector/result.js +0 -40
- package/build/component/feature/apiconnector/result.js.map +0 -1
- package/build/component/feature/apiconnector/sampleHandler.d.ts +0 -10
- package/build/component/feature/apiconnector/sampleHandler.d.ts.map +0 -1
- package/build/component/feature/apiconnector/sampleHandler.js +0 -62
- package/build/component/feature/apiconnector/sampleHandler.js.map +0 -1
- package/build/component/feature/apiconnector/telemetry.d.ts +0 -42
- package/build/component/feature/apiconnector/telemetry.d.ts.map +0 -1
- package/build/component/feature/apiconnector/telemetry.js +0 -70
- package/build/component/feature/apiconnector/telemetry.js.map +0 -1
- package/build/component/feature/apiconnector/utils.d.ts +0 -18
- package/build/component/feature/apiconnector/utils.d.ts.map +0 -1
- package/build/component/feature/apiconnector/utils.js +0 -90
- package/build/component/feature/apiconnector/utils.js.map +0 -1
- package/build/component/generator/spfxGenerator.d.ts.map +0 -1
- package/build/component/generator/spfxGenerator.js.map +0 -1
- package/build/component/resource/azureAppService/azureAppService.d.ts +0 -12
- package/build/component/resource/azureAppService/azureAppService.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureAppService.js +0 -48
- package/build/component/resource/azureAppService/azureAppService.js.map +0 -1
- package/build/component/resource/azureAppService/azureFunction.d.ts +0 -36
- package/build/component/resource/azureAppService/azureFunction.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureFunction.js +0 -155
- package/build/component/resource/azureAppService/azureFunction.js.map +0 -1
- package/build/component/resource/azureAppService/azureLibs.d.ts +0 -6
- package/build/component/resource/azureAppService/azureLibs.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureLibs.js +0 -13
- package/build/component/resource/azureAppService/azureLibs.js.map +0 -1
- package/build/component/resource/azureAppService/azureWebApp.d.ts +0 -30
- package/build/component/resource/azureAppService/azureWebApp.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureWebApp.js +0 -43
- package/build/component/resource/azureAppService/azureWebApp.js.map +0 -1
- package/build/component/resource/azureAppService/common.d.ts +0 -10
- package/build/component/resource/azureAppService/common.d.ts.map +0 -1
- package/build/component/resource/azureAppService/common.js +0 -80
- package/build/component/resource/azureAppService/common.js.map +0 -1
- package/build/component/resource/azureAppService/dir-walk.d.ts +0 -4
- package/build/component/resource/azureAppService/dir-walk.d.ts.map +0 -1
- package/build/component/resource/azureAppService/dir-walk.js +0 -21
- package/build/component/resource/azureAppService/dir-walk.js.map +0 -1
- package/build/component/resource/azureSql/actions/configure.d.ts +0 -15
- package/build/component/resource/azureSql/actions/configure.d.ts.map +0 -1
- package/build/component/resource/azureSql/actions/configure.js +0 -92
- package/build/component/resource/azureSql/actions/configure.js.map +0 -1
- package/build/component/resource/azureSql/actions/provision.d.ts +0 -10
- package/build/component/resource/azureSql/actions/provision.d.ts.map +0 -1
- package/build/component/resource/azureSql/actions/provision.js +0 -63
- package/build/component/resource/azureSql/actions/provision.js.map +0 -1
- package/build/component/resource/azureSql/actions/utils.d.ts +0 -12
- package/build/component/resource/azureSql/actions/utils.d.ts.map +0 -1
- package/build/component/resource/azureSql/actions/utils.js +0 -82
- package/build/component/resource/azureSql/actions/utils.js.map +0 -1
- package/build/component/resource/azureSql/azureSql.d.ts +0 -24
- package/build/component/resource/azureSql/azureSql.d.ts.map +0 -1
- package/build/component/resource/azureSql/azureSql.js +0 -75
- package/build/component/resource/azureSql/azureSql.js.map +0 -1
- package/build/component/resource/azureSql/clients/management.d.ts +0 -18
- package/build/component/resource/azureSql/clients/management.d.ts.map +0 -1
- package/build/component/resource/azureSql/clients/management.js +0 -124
- package/build/component/resource/azureSql/clients/management.js.map +0 -1
- package/build/component/resource/azureSql/clients/sql.d.ts +0 -13
- package/build/component/resource/azureSql/clients/sql.d.ts.map +0 -1
- package/build/component/resource/azureSql/clients/sql.js +0 -153
- package/build/component/resource/azureSql/clients/sql.js.map +0 -1
- package/build/component/resource/azureSql/config.d.ts +0 -7
- package/build/component/resource/azureSql/config.d.ts.map +0 -1
- package/build/component/resource/azureSql/config.js +0 -77
- package/build/component/resource/azureSql/config.js.map +0 -1
- package/build/component/resource/azureSql/constants.d.ts +0 -85
- package/build/component/resource/azureSql/constants.d.ts.map +0 -1
- package/build/component/resource/azureSql/constants.js +0 -95
- package/build/component/resource/azureSql/constants.js.map +0 -1
- package/build/component/resource/azureSql/errors.d.ts +0 -63
- package/build/component/resource/azureSql/errors.d.ts.map +0 -1
- package/build/component/resource/azureSql/errors.js +0 -107
- package/build/component/resource/azureSql/errors.js.map +0 -1
- package/build/component/resource/azureSql/index.d.ts +0 -2
- package/build/component/resource/azureSql/index.d.ts.map +0 -1
- package/build/component/resource/azureSql/index.js +0 -7
- package/build/component/resource/azureSql/index.js.map +0 -1
- package/build/component/resource/azureSql/questions.d.ts +0 -6
- package/build/component/resource/azureSql/questions.d.ts.map +0 -1
- package/build/component/resource/azureSql/questions.js +0 -59
- package/build/component/resource/azureSql/questions.js.map +0 -1
- package/build/component/resource/azureSql/results.d.ts +0 -10
- package/build/component/resource/azureSql/results.d.ts.map +0 -1
- package/build/component/resource/azureSql/results.js +0 -34
- package/build/component/resource/azureSql/results.js.map +0 -1
- package/build/component/resource/azureSql/types.d.ts +0 -12
- package/build/component/resource/azureSql/types.d.ts.map +0 -1
- package/build/component/resource/azureSql/types.js +0 -5
- package/build/component/resource/azureSql/types.js.map +0 -1
- package/build/component/resource/azureSql/utils/checkInput.d.ts +0 -10
- package/build/component/resource/azureSql/utils/checkInput.d.ts.map +0 -1
- package/build/component/resource/azureSql/utils/checkInput.js +0 -89
- package/build/component/resource/azureSql/utils/checkInput.js.map +0 -1
- package/build/component/resource/azureSql/utils/common.d.ts +0 -12
- package/build/component/resource/azureSql/utils/common.d.ts.map +0 -1
- package/build/component/resource/azureSql/utils/common.js +0 -51
- package/build/component/resource/azureSql/utils/common.js.map +0 -1
- package/build/component/resource/azureStorage/azureStorage.d.ts +0 -31
- package/build/component/resource/azureStorage/azureStorage.d.ts.map +0 -1
- package/build/component/resource/azureStorage/azureStorage.js +0 -111
- package/build/component/resource/azureStorage/azureStorage.js.map +0 -1
- package/build/component/resource/azureStorage/clients.d.ts +0 -23
- package/build/component/resource/azureStorage/clients.d.ts.map +0 -1
- package/build/component/resource/azureStorage/clients.js +0 -133
- package/build/component/resource/azureStorage/clients.js.map +0 -1
- package/build/component/resource/azureStorage/configs.d.ts +0 -12
- package/build/component/resource/azureStorage/configs.d.ts.map +0 -1
- package/build/component/resource/azureStorage/configs.js +0 -30
- package/build/component/resource/azureStorage/configs.js.map +0 -1
- package/build/component/resource/azureStorage/constants.d.ts +0 -11
- package/build/component/resource/azureStorage/constants.d.ts.map +0 -1
- package/build/component/resource/azureStorage/constants.js +0 -17
- package/build/component/resource/azureStorage/constants.js.map +0 -1
- package/build/component/resource/azureStorage/messages.d.ts +0 -14
- package/build/component/resource/azureStorage/messages.d.ts.map +0 -1
- package/build/component/resource/azureStorage/messages.js +0 -28
- package/build/component/resource/azureStorage/messages.js.map +0 -1
- package/build/component/resource/botService/botService.d.ts +0 -24
- package/build/component/resource/botService/botService.d.ts.map +0 -1
- package/build/component/resource/botService/botService.js +0 -146
- package/build/component/resource/botService/botService.js.map +0 -1
- package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts +0 -11
- package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts.map +0 -1
- package/build/component/resource/spfx/depsChecker/dependencyChecker.js.map +0 -1
- package/build/component/resource/spfx/depsChecker/generatorChecker.d.ts.map +0 -1
- package/build/component/resource/spfx/depsChecker/generatorChecker.js.map +0 -1
- package/build/component/resource/spfx/depsChecker/yoChecker.d.ts.map +0 -1
- package/build/component/resource/spfx/depsChecker/yoChecker.js.map +0 -1
- package/build/component/resource/spfx/error.d.ts +0 -21
- package/build/component/resource/spfx/error.d.ts.map +0 -1
- package/build/component/resource/spfx/error.js +0 -138
- package/build/component/resource/spfx/error.js.map +0 -1
- package/build/component/resource/spfx/index.d.ts +0 -15
- package/build/component/resource/spfx/index.d.ts.map +0 -1
- package/build/component/resource/spfx/index.js +0 -248
- package/build/component/resource/spfx/index.js.map +0 -1
- package/build/component/resource/spfx/spoClient.d.ts +0 -25
- package/build/component/resource/spfx/spoClient.d.ts.map +0 -1
- package/build/component/resource/spfx/spoClient.js +0 -79
- package/build/component/resource/spfx/spoClient.js.map +0 -1
- package/build/component/resource/spfx/utils/constants.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/constants.js.map +0 -1
- package/build/component/resource/spfx/utils/progress-helper.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/progress-helper.js +0 -46
- package/build/component/resource/spfx/utils/progress-helper.js.map +0 -1
- package/build/component/resource/spfx/utils/question-helper.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/question-helper.js.map +0 -1
- package/build/component/resource/spfx/utils/questions.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/questions.js.map +0 -1
- package/build/component/resource/spfx/utils/telemetry-helper.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/telemetry-helper.js.map +0 -1
- package/build/component/resource/spfx/utils/telemetryEvents.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/telemetryEvents.js.map +0 -1
- package/build/component/resource/spfx/utils/utils.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/utils.js.map +0 -1
- package/build/component/utils/backupFiles.d.ts +0 -4
- package/build/component/utils/backupFiles.d.ts.map +0 -1
- package/build/component/utils/backupFiles.js +0 -162
- package/build/component/utils/backupFiles.js.map +0 -1
- package/build/component/utils/executor.d.ts +0 -12
- package/build/component/utils/executor.d.ts.map +0 -1
- package/build/component/utils/executor.js +0 -87
- package/build/component/utils/executor.js.map +0 -1
- package/build/core/downloadSample.d.ts +0 -9
- package/build/core/downloadSample.d.ts.map +0 -1
- package/build/core/downloadSample.js +0 -161
- package/build/core/downloadSample.js.map +0 -1
- package/resource/backup-config-change-logs.md +0 -24
- package/templates/bicep/azureSql.parameters.json +0 -4
- package/templates/bicep/azureSql.provisionDatabase.module.bicep +0 -15
- package/templates/bicep/azureSql.provisionDatabase.orchestration.bicep +0 -5
- package/templates/bicep/azureSql.provisionServer.module.bicep +0 -44
- package/templates/bicep/azureSql.provisionServer.orchestration.bicep +0 -14
- package/templates/bicep/identity.provision.module.bicep +0 -15
- package/templates/bicep/identity.provision.orchestration.bicep +0 -14
- package/templates/bicep/keyVault.provision.module.bicep +0 -57
- package/templates/bicep/keyVault.provision.orchestration.bicep +0 -15
- package/templates/plugins/resource/apiconnector/package.json +0 -5
- package/templates/plugins/resource/apiconnector/sample/footerComment.template +0 -20
- package/templates/plugins/resource/apiconnector/sample/headerComment.template +0 -52
- package/templates/plugins/resource/apiconnector/sample/js/aad.template +0 -31
- package/templates/plugins/resource/apiconnector/sample/js/apikey.template +0 -19
- package/templates/plugins/resource/apiconnector/sample/js/basic.template +0 -14
- package/templates/plugins/resource/apiconnector/sample/js/cert.template +0 -17
- package/templates/plugins/resource/apiconnector/sample/js/custom.template +0 -39
- package/templates/plugins/resource/apiconnector/sample/ts/aad.template +0 -36
- package/templates/plugins/resource/apiconnector/sample/ts/apikey.template +0 -16
- package/templates/plugins/resource/apiconnector/sample/ts/basic.template +0 -14
- package/templates/plugins/resource/apiconnector/sample/ts/cert.template +0 -19
- package/templates/plugins/resource/apiconnector/sample/ts/custom.template +0 -42
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +0 -15
- package/templates/plugins/resource/identity/bicep/provision.template.bicep +0 -14
- package/templates/plugins/resource/identity/parameters.json +0 -12
- package/templates/plugins/resource/identity/template.json +0 -28
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +0 -57
- package/templates/plugins/resource/keyvault/bicep/provision.template.bicep +0 -15
- package/templates/plugins/resource/simpleauth/SimpleAuth.zip +0 -0
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +0 -12
- package/templates/plugins/resource/simpleauth/bicep/provision.template.bicep +0 -14
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +0 -62
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +0 -51
- package/templates/plugins/resource/simpleauth/version.txt +0 -2
- package/templates/plugins/resource/spfx/solution/README.md +0 -82
- package/templates/plugins/resource/spfx/solution/manifest.local.template.json +0 -62
- package/templates/plugins/resource/spfx/solution/manifest_multi_env.json +0 -63
- package/templates/plugins/resource/spfx/solution/rootREADME.md +0 -13
- package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +0 -5
- package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +0 -15
- package/templates/plugins/resource/sql/bicep/parameters.json +0 -4
- package/templates/plugins/resource/sql/bicep/provision.template.bicep +0 -14
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +0 -44
- /package/build/component/{resource → generator}/spfx/depsChecker/dependencyChecker.js +0 -0
- /package/build/component/generator/{spfxGenerator.d.ts → spfx/spfxGenerator.d.ts} +0 -0
- /package/build/component/{resource → generator}/spfx/utils/question-helper.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/question-helper.js +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.js +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.js +0 -0
- /package/build/component/{resource → generator}/spfx/utils/utils.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/utils.js +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare class Messages {
|
|
2
|
-
static generateBicep: (hostType: string) => string;
|
|
3
|
-
static updateBicep: (hostType: string) => string;
|
|
4
|
-
static skipUpdateBicep: (hostType: string) => string;
|
|
5
|
-
static deploy: (endpoint: string, bytes: number) => string;
|
|
6
|
-
static restartFunction: (siteName: string) => string;
|
|
7
|
-
static deployFailed: (status: number) => string;
|
|
8
|
-
static zipDeploy: string;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/common/azure-hosting/messages.ts"],"names":[],"mappings":"AAGA,qBAAa,QAAQ;IACnB,MAAM,CAAC,aAAa,aAAc,MAAM,KAAG,MAAM,CACS;IAC1D,MAAM,CAAC,WAAW,aAAc,MAAM,KAAG,MAAM,CACS;IACxD,MAAM,CAAC,eAAe,aAAc,MAAM,KAAG,MAAM,CACH;IAChD,MAAM,CAAC,MAAM,aAAc,MAAM,SAAS,MAAM,KAAG,MAAM,CACO;IAChE,MAAM,CAAC,eAAe,aAAc,MAAM,KAAG,MAAM,CACJ;IAE/C,MAAM,CAAC,YAAY,WAAY,MAAM,KAAG,MAAM,CACO;IACrD,MAAM,CAAC,SAAS,SAAoC;CACrD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Messages = void 0;
|
|
6
|
-
class Messages {
|
|
7
|
-
}
|
|
8
|
-
exports.Messages = Messages;
|
|
9
|
-
Messages.generateBicep = (hostType) => `Successfully generate bicep template for ${hostType}.`;
|
|
10
|
-
Messages.updateBicep = (hostType) => `Successfully update bicep template for ${hostType}.`;
|
|
11
|
-
Messages.skipUpdateBicep = (hostType) => `Skip update bicep template for ${hostType}.`;
|
|
12
|
-
Messages.deploy = (endpoint, bytes) => `Successfully deploy to endpoint ${endpoint}: ${bytes} bytes`;
|
|
13
|
-
Messages.restartFunction = (siteName) => `Restarting Azure Function App ${siteName}.`;
|
|
14
|
-
Messages.deployFailed = (status) => `Deployment is failed with error code: ${status}.`;
|
|
15
|
-
Messages.zipDeploy = "Uploading application package.";
|
|
16
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/common/azure-hosting/messages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,QAAQ;;AAArB,4BAeC;AAdQ,sBAAa,GAAG,CAAC,QAAgB,EAAU,EAAE,CAClD,4CAA4C,QAAQ,GAAG,CAAC;AACnD,oBAAW,GAAG,CAAC,QAAgB,EAAU,EAAE,CAChD,0CAA0C,QAAQ,GAAG,CAAC;AACjD,wBAAe,GAAG,CAAC,QAAgB,EAAU,EAAE,CACpD,kCAAkC,QAAQ,GAAG,CAAC;AACzC,eAAM,GAAG,CAAC,QAAgB,EAAE,KAAa,EAAU,EAAE,CAC1D,mCAAmC,QAAQ,KAAK,KAAK,QAAQ,CAAC;AACzD,wBAAe,GAAG,CAAC,QAAgB,EAAU,EAAE,CACpD,iCAAiC,QAAQ,GAAG,CAAC;AAExC,qBAAY,GAAG,CAAC,MAAc,EAAU,EAAE,CAC/C,yCAAyC,MAAM,GAAG,CAAC;AAC9C,kBAAS,GAAG,gCAAgC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { ArmTemplateResult } from "../armInterface";
|
|
3
|
-
import { IProgressHandler, TokenProvider } from "@microsoft/teamsfx-api";
|
|
4
|
-
import * as appService from "@azure/arm-appservice";
|
|
5
|
-
import { BicepContext, HandlebarsContext, Logger, ServiceType } from "./interfaces";
|
|
6
|
-
export declare function getHandlebarContext(bicepContext: BicepContext, serviceType: ServiceType): HandlebarsContext;
|
|
7
|
-
export declare function capitalizeFirstLetter([first, ...rest]: Iterable<string>): string;
|
|
8
|
-
export declare function mergeTemplates(templates: ArmTemplateResult[]): ArmTemplateResult;
|
|
9
|
-
export declare function azureWebSiteDeploy(resourceId: string, tokenProvider: TokenProvider, buffer: Buffer, logger?: Logger, progress?: IProgressHandler): Promise<appService.WebSiteManagementClient>;
|
|
10
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/common/azure-hosting/utils.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEzE,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAEL,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACN,WAAW,EACZ,MAAM,cAAc,CAAC;AAYtB,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,GACvB,iBAAiB,CAUnB;AAED,wBAAgB,qBAAqB,CAAC,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAEhF;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,iBAAiB,EAAE,GAAG,iBAAiB,CAuBhF;AAqDD,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAiB7C"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.azureWebSiteDeploy = exports.mergeTemplates = exports.capitalizeFirstLetter = exports.getHandlebarContext = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const appService = tslib_1.__importStar(require("@azure/arm-appservice"));
|
|
8
|
-
const js_base64_1 = require("js-base64");
|
|
9
|
-
const azureOps_1 = require("./azureOps");
|
|
10
|
-
const hostingConstant_1 = require("./hostingConstant");
|
|
11
|
-
const hostingError_1 = require("./hostingError");
|
|
12
|
-
const tools_1 = require("../tools");
|
|
13
|
-
const messages_1 = require("./messages");
|
|
14
|
-
function getHandlebarContext(bicepContext, serviceType) {
|
|
15
|
-
var _a, _b;
|
|
16
|
-
const moduleName = (_b = (_a = bicepContext.moduleNames) === null || _a === void 0 ? void 0 : _a[serviceType]) !== null && _b !== void 0 ? _b : serviceType;
|
|
17
|
-
return {
|
|
18
|
-
plugins: bicepContext.plugins,
|
|
19
|
-
configs: bicepContext.configs,
|
|
20
|
-
moduleName: moduleName,
|
|
21
|
-
moduleNameCapitalized: capitalizeFirstLetter(moduleName),
|
|
22
|
-
moduleAlias: bicepContext.moduleAlias,
|
|
23
|
-
pluginId: bicepContext.pluginId,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.getHandlebarContext = getHandlebarContext;
|
|
27
|
-
function capitalizeFirstLetter([first, ...rest]) {
|
|
28
|
-
return [first === null || first === void 0 ? void 0 : first.toUpperCase(), ...rest].join("");
|
|
29
|
-
}
|
|
30
|
-
exports.capitalizeFirstLetter = capitalizeFirstLetter;
|
|
31
|
-
function mergeTemplates(templates) {
|
|
32
|
-
const existsProvision = templates.some((it) => it.Provision);
|
|
33
|
-
const existsParameters = templates.some((it) => it.Parameters);
|
|
34
|
-
return {
|
|
35
|
-
Provision: existsProvision
|
|
36
|
-
? {
|
|
37
|
-
Orchestration: templates.map((template) => { var _a; return (_a = template.Provision) === null || _a === void 0 ? void 0 : _a.Orchestration; }).join(""),
|
|
38
|
-
Modules: templates
|
|
39
|
-
.map((template) => { var _a; return (_a = template.Provision) === null || _a === void 0 ? void 0 : _a.Modules; })
|
|
40
|
-
.reduce((result, current) => Object.assign(result, current), {}),
|
|
41
|
-
}
|
|
42
|
-
: undefined,
|
|
43
|
-
Configuration: {
|
|
44
|
-
Orchestration: templates.map((template) => { var _a; return (_a = template.Configuration) === null || _a === void 0 ? void 0 : _a.Orchestration; }).join(""),
|
|
45
|
-
Modules: templates
|
|
46
|
-
.map((template) => { var _a; return (_a = template.Configuration) === null || _a === void 0 ? void 0 : _a.Modules; })
|
|
47
|
-
.reduce((result, current) => Object.assign(result, current), {}),
|
|
48
|
-
},
|
|
49
|
-
Parameters: existsParameters
|
|
50
|
-
? Object.assign({}, ...templates.map((template) => template.Parameters))
|
|
51
|
-
: undefined,
|
|
52
|
-
Reference: Object.assign({}, ...templates.map((template) => template.Reference)),
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
exports.mergeTemplates = mergeTemplates;
|
|
56
|
-
async function getAzureAccountCredential(tokenProvider) {
|
|
57
|
-
const credential = await tokenProvider.azureAccountProvider.getIdentityCredentialAsync();
|
|
58
|
-
if (!credential) {
|
|
59
|
-
throw new hostingError_1.PreconditionError(hostingConstant_1.AzureOpsConstant.FAIL_TO_GET_AZURE_CREDENTIALS(), [
|
|
60
|
-
hostingConstant_1.AzureOpsConstant.TRY_LOGIN_AZURE(),
|
|
61
|
-
]);
|
|
62
|
-
}
|
|
63
|
-
return credential;
|
|
64
|
-
}
|
|
65
|
-
async function fetchWebSiteManagementClient(subscriptionId, tokenProvider) {
|
|
66
|
-
return new appService.WebSiteManagementClient(await getAzureAccountCredential(tokenProvider), subscriptionId);
|
|
67
|
-
}
|
|
68
|
-
async function getAzureDeployConfig(subscriptionId, rgName, siteName, tokenProvider) {
|
|
69
|
-
var _a, _b;
|
|
70
|
-
// get publish credentials
|
|
71
|
-
const webSiteMgmtClient = await fetchWebSiteManagementClient(subscriptionId, tokenProvider);
|
|
72
|
-
const listResponse = await azureOps_1.AzureOperations.listPublishingCredentials(webSiteMgmtClient, rgName, siteName);
|
|
73
|
-
const publishingUserName = (_a = listResponse.publishingUserName) !== null && _a !== void 0 ? _a : "";
|
|
74
|
-
const publishingPassword = (_b = listResponse.publishingPassword) !== null && _b !== void 0 ? _b : "";
|
|
75
|
-
const encryptedCredentials = js_base64_1.Base64.encode(`${publishingUserName}:${publishingPassword}`);
|
|
76
|
-
return [
|
|
77
|
-
{
|
|
78
|
-
headers: {
|
|
79
|
-
"Content-Type": "application/octet-stream",
|
|
80
|
-
"Cache-Control": "no-cache",
|
|
81
|
-
Authorization: `Basic ${encryptedCredentials}`,
|
|
82
|
-
},
|
|
83
|
-
maxContentLength: Infinity,
|
|
84
|
-
maxBodyLength: Infinity,
|
|
85
|
-
timeout: hostingConstant_1.AzureOperationCommonConstants.deployTimeoutInMs,
|
|
86
|
-
},
|
|
87
|
-
webSiteMgmtClient,
|
|
88
|
-
];
|
|
89
|
-
}
|
|
90
|
-
async function azureWebSiteDeploy(resourceId, tokenProvider, buffer, logger, progress) {
|
|
91
|
-
var _a;
|
|
92
|
-
const subscriptionId = tools_1.getSubscriptionIdFromResourceId(resourceId);
|
|
93
|
-
const rgName = tools_1.getResourceGroupNameFromResourceId(resourceId);
|
|
94
|
-
const siteName = tools_1.getSiteNameFromResourceId(resourceId);
|
|
95
|
-
const [config, client] = await getAzureDeployConfig(subscriptionId, rgName, siteName, tokenProvider);
|
|
96
|
-
const zipDeployEndpoint = getZipDeployEndpoint(siteName);
|
|
97
|
-
await (progress === null || progress === void 0 ? void 0 : progress.next(messages_1.Messages.zipDeploy));
|
|
98
|
-
const statusUrl = await azureOps_1.AzureOperations.zipDeployPackage(zipDeployEndpoint, buffer, config);
|
|
99
|
-
await azureOps_1.AzureOperations.checkDeployStatus(statusUrl, config);
|
|
100
|
-
(_a = logger === null || logger === void 0 ? void 0 : logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, messages_1.Messages.deploy(zipDeployEndpoint, buffer.byteLength));
|
|
101
|
-
return client;
|
|
102
|
-
}
|
|
103
|
-
exports.azureWebSiteDeploy = azureWebSiteDeploy;
|
|
104
|
-
function getZipDeployEndpoint(siteName) {
|
|
105
|
-
return `https://${siteName}.scm.azurewebsites.net/api/zipdeploy?isAsync=true`;
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/common/azure-hosting/utils.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"baseUrl": "https://github.com/OfficeDev/TeamsFx-Samples/tree/v1.1.0/",
|
|
3
|
-
"defaultPackageLink": "https://github.com/OfficeDev/TeamsFx-Samples/archive/refs/tags/v1.1.0.zip",
|
|
4
|
-
"samples": [
|
|
5
|
-
{
|
|
6
|
-
"id": "hello-world-tab-with-backend",
|
|
7
|
-
"title": "Tab App with Azure Backend",
|
|
8
|
-
"shortDescription": "A Hello World app of Microsoft Teams Tab app which has a backend service",
|
|
9
|
-
"fullDescription": "This is a Hello World app of Microsoft Teams Tab app which accomplishes very simple function like single-sign on. You can run this app locally or deploy it to Microsoft Azure. This app has a Tab frontend and a backend service using Azure Function.",
|
|
10
|
-
"tags": ["Tab", "TS", "Azure function"],
|
|
11
|
-
"time": "5min to run",
|
|
12
|
-
"configuration": "Ready for debug",
|
|
13
|
-
"suggested": true
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"id": "graph-toolkit-contact-exporter",
|
|
17
|
-
"title": "Contact Exporter using Graph Toolkit",
|
|
18
|
-
"shortDescription": "Contact Exporter app of Microsoft Teams Tab app.",
|
|
19
|
-
"fullDescription": "Contact Exporter app can export your teams contact info to Excel files, and it is using Microsoft Graph Toolkit as UI component. This app only has a Tab frontend.",
|
|
20
|
-
"tags": ["Tab", "JS"],
|
|
21
|
-
"time": "5min to run",
|
|
22
|
-
"configuration": "Ready for debug",
|
|
23
|
-
"suggested": true
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"id": "graph-toolkit-one-productivity-hub",
|
|
27
|
-
"title": "One Productivity Hub using Graph Toolkit",
|
|
28
|
-
"shortDescription": "Microsoft Teams tab with SSO to view calendar events, to-do tasks and file folders.",
|
|
29
|
-
"fullDescription": "One Productivity Hub sample shows you how to build a tab for viewing your calendar events, to-do tasks and files by using Microsoft Graph Toolkit components and TeamsFx provider. You can run this app locally or deploy it to Microsoft Azure.",
|
|
30
|
-
"tags": ["Tab", "JS", "SSO"],
|
|
31
|
-
"time": "5min to run",
|
|
32
|
-
"configuration": "Ready for debug",
|
|
33
|
-
"suggested": false
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"id": "bot-sso",
|
|
37
|
-
"title": "Bot App with SSO Enabled",
|
|
38
|
-
"shortDescription": "A Hello World app of Microsoft Teams Bot app with SSO",
|
|
39
|
-
"fullDescription": "This is an extended Hello World app of Microsoft Teams Bot app demonstrating how to integrate with Bot Framework SDK, TeamsFx SDK, and Graph SDK to implement SSO (Single Sign-On) feature that retrieves profile photos for currently signed-in users.",
|
|
40
|
-
"tags": [
|
|
41
|
-
"Bot",
|
|
42
|
-
"TS",
|
|
43
|
-
"Adaptive Cards",
|
|
44
|
-
"SSO"
|
|
45
|
-
],
|
|
46
|
-
"time": "5min to run",
|
|
47
|
-
"configuration": "Ready for debug",
|
|
48
|
-
"suggested": false
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"id": "todo-list-with-Azure-backend",
|
|
52
|
-
"title": "Todo List with backend on Azure",
|
|
53
|
-
"shortDescription": "Todo List app with Azure Function backend and Azure SQL database",
|
|
54
|
-
"fullDescription": "Todo List provides an easy way to manage to-do items in Teams Client. This app helps enabling task collaboration and management for your team. The frontend is a React app and the backend is hosted on Azure. You will need an Azure subscription to run the app.",
|
|
55
|
-
"tags": ["React", "Azure function", "Azure SQL", "JS", "CI/CD"],
|
|
56
|
-
"time": "30min to run",
|
|
57
|
-
"configuration": "Manual configurations required",
|
|
58
|
-
"suggested": false
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"id": "todo-list-SPFx",
|
|
62
|
-
"title": "Todo List with SPFx",
|
|
63
|
-
"shortDescription": "Todo List app hosting on SharePoint",
|
|
64
|
-
"fullDescription": "Todo List with SPFx is a Todo List for individuals to manage his/her personal to-do items. This app is hosted on Sharepoint. There is no requirements to deploy Azure resources.",
|
|
65
|
-
"tags": ["SharePoint", "SPFx", "TS"],
|
|
66
|
-
"time": "1hr to run",
|
|
67
|
-
"configuration": "Manual configurations required",
|
|
68
|
-
"suggested": false
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"id": "share-now",
|
|
72
|
-
"title": "Share Now",
|
|
73
|
-
"shortDescription": "Knowledge sharing app contains a Tab and a Message extension",
|
|
74
|
-
"fullDescription": "Share Now promotes the exchange of information between colleagues by enabling users to share content within the Teams environment. Users engage the app to share items of interest, discover new shared content, set preferences, and bookmark favorites for later reading.",
|
|
75
|
-
"tags": ["Tab", "Message extension", "TS"],
|
|
76
|
-
"time": "30min to run",
|
|
77
|
-
"configuration": "Ready for debug",
|
|
78
|
-
"suggested": false
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"id": "hello-world-in-meeting",
|
|
82
|
-
"title": "My First Meeting App",
|
|
83
|
-
"shortDescription": "A template for apps using only in the context of a Teams meeting",
|
|
84
|
-
"fullDescription": "My first meeting app is a simple template to show how to build a tab app that can be installed and used in a meeting, in all of meeting lifecycles: pre-meeting chat, in-meeting, post-meeting chat. This sample contains tab as side panel, meeting chat tab, or meeting details tab. The template also includes simple codes to fetch meeting info and user profile.",
|
|
85
|
-
"tags": ["Meeting extension", "JS"],
|
|
86
|
-
"time": "30min to run",
|
|
87
|
-
"configuration": "Ready for debug",
|
|
88
|
-
"suggested": false
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"id": "todo-list-with-Azure-backend-M365",
|
|
92
|
-
"title": "Todo List (Works in Teams, Outlook and Office)",
|
|
93
|
-
"shortDescription": "Todo List app that runs across Microsoft 365 including Teams, Outlook and Office",
|
|
94
|
-
"fullDescription": "Todo List app helps to manage personal to do items and also runs across Microsoft 365, including Teams, Outlook and Office. The frontend is a React app and the backend is an Azure Function. You can optionally deploy and host the app in Azure.",
|
|
95
|
-
"tags": ["React", "Azure function", "JS", "Outlook", "Office"],
|
|
96
|
-
"time": "30min to run",
|
|
97
|
-
"configuration": "Manual configurations required",
|
|
98
|
-
"suggested": false
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"id": "NPM-search-connector-M365",
|
|
102
|
-
"title": "NPM Search Connector",
|
|
103
|
-
"shortDescription": "Search and Share an NPM Package in Teams and Outlook (Web)",
|
|
104
|
-
"fullDescription": "NPM Search Connector is a Message Extension that runs across Microsoft 365 including Teams and Outlook (Web). It allows you to perform a quick search for a NPM package and insert package details into conversations for easy sharing. The front end is built with Adaptive Cards and the backend is an Azure Bot Service.",
|
|
105
|
-
"tags": ["Message extension", "JS", "Outlook"],
|
|
106
|
-
"time": "45min to run",
|
|
107
|
-
"configuration": "Manual configurations required",
|
|
108
|
-
"suggested": false
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"id": "bot-proactive-messaging-teamsfx",
|
|
112
|
-
"title": "Proactive Messaging",
|
|
113
|
-
"shortDescription": "Demonstrates how to send proactive messages to users.",
|
|
114
|
-
"fullDescription": "This is a sample which shows how to save user's conversation reference information to send proactive reminder message using Bots.",
|
|
115
|
-
"tags": [
|
|
116
|
-
"Bot",
|
|
117
|
-
"JS"
|
|
118
|
-
],
|
|
119
|
-
"time": "5min to run",
|
|
120
|
-
"configuration": "Ready for debug",
|
|
121
|
-
"suggested": false,
|
|
122
|
-
"url": "https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-proactive-messaging-teamsfx",
|
|
123
|
-
"packageLink": "https://github.com/OfficeDev/Microsoft-Teams-Samples/archive/refs/heads/main.zip",
|
|
124
|
-
"relativePath": "Microsoft-Teams-Samples-main/samples/bot-proactive-messaging-teamsfx"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"id": "adaptive-card-notification",
|
|
128
|
-
"title": "Adaptive Card Notification",
|
|
129
|
-
"shortDescription": "Demonstrates how to send adaptive card notification to users.",
|
|
130
|
-
"fullDescription": "This is a sample which shows how to send notification with different adaptive cards using Bots.",
|
|
131
|
-
"tags": [
|
|
132
|
-
"Bot", "TS"
|
|
133
|
-
],
|
|
134
|
-
"time": "5min to run",
|
|
135
|
-
"configuration": "Ready for debug",
|
|
136
|
-
"suggested": false
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"id": "incoming-webhook-notification",
|
|
140
|
-
"title": "Incoming Webhook Notification",
|
|
141
|
-
"shortDescription": "Demonstrates how to send notification via Incoming Webhook.",
|
|
142
|
-
"fullDescription": "This is a sample which shows how to send notification via Incoming Webhook in Microsoft Teams channels.",
|
|
143
|
-
"tags": [
|
|
144
|
-
"Bot", "TS"
|
|
145
|
-
],
|
|
146
|
-
"time": "5min to run",
|
|
147
|
-
"configuration": "Manual configurations required",
|
|
148
|
-
"suggested": false
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"id": "graph-connector-app",
|
|
152
|
-
"title": "Graph Connector App",
|
|
153
|
-
"shortDescription": "Showcases how to build custom Graph Connector",
|
|
154
|
-
"fullDescription": "This sample app showcases how to build custom Graph Connector with Azure Functions and query data using Microsoft Graph Client and TeamsFx SDK.",
|
|
155
|
-
"tags": ["Tab", "Azure function", "TS", "SSO"],
|
|
156
|
-
"time": "10min to run",
|
|
157
|
-
"configuration": "Manual configurations required",
|
|
158
|
-
"suggested": false
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"id": "stocks-update-notification-bot",
|
|
162
|
-
"title": "Stocks Update",
|
|
163
|
-
"shortDescription": "Keep up to date with the latest stock price in Microsoft Teams.",
|
|
164
|
-
"fullDescription": "This sample demonstrates how a Notification Bot can be used to call an external API using API Key authentication, on a pre-defined schedule of every 30 seconds, to obtain the latest stock information and render the results as an Adaptive Card.",
|
|
165
|
-
"tags": ["Bot", "TS", "Azure function", "API Key"],
|
|
166
|
-
"time": "5min to run",
|
|
167
|
-
"configuration": "Ready for debug",
|
|
168
|
-
"suggested": false
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"id": "query-org-user-with-message-extension-sso",
|
|
172
|
-
"title": "Org User Search Connector",
|
|
173
|
-
"shortDescription": "Query Org User with Message Extension SSO",
|
|
174
|
-
"fullDescription": "This is a simple search-based message extension app demonstrating how to integrate with Bot Framework SDK, TeamsFx SDK and Microsoft Graph API to implement a feature that queries organization's user with single sign on (SSO) capability.",
|
|
175
|
-
"tags": ["Message extension", "SSO"],
|
|
176
|
-
"time": "5min to run",
|
|
177
|
-
"configuration": "Ready for debug",
|
|
178
|
-
"suggested": false
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"id": "teams-videoapp-sample",
|
|
182
|
-
"title": "Minimal Teams Video App",
|
|
183
|
-
"shortDescription": "A minimal sample app with basic video processing capabilities",
|
|
184
|
-
"fullDescription": "A minimal sample app with basic video processing capabilities.",
|
|
185
|
-
"tags": ["Video filter", "JS"],
|
|
186
|
-
"time": "5min to run",
|
|
187
|
-
"configuration": "Ready for debug",
|
|
188
|
-
"suggested": false
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"id": "deep-linking-hello-world-tab-without-sso-M365",
|
|
192
|
-
"title": "Hello World Deeplinking Navigation Tab App",
|
|
193
|
-
"shortDescription": "This sample app shows, how to use new Teams SDK V2 capabilities to simplify the process of deeplink navigation across the hubs (on Teams, Outlook and Office).",
|
|
194
|
-
"fullDescription": "The Microsoft Teams JavaScript client SDK (TeamsJS) simplifies the process of deeplink navigation. For many scenarios, such as navigating to content and information within your tab or launching a chat dialog. It covers scenarios like, deeplinking from outside app/hub and navigating within app/hub.",
|
|
195
|
-
"tags": ["Tab", "TS", "ReactJS", "Teams-JS 2.0"],
|
|
196
|
-
"time": "7min to run",
|
|
197
|
-
"configuration": "Ready for debug",
|
|
198
|
-
"suggested": false
|
|
199
|
-
}
|
|
200
|
-
]
|
|
201
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ContextV3, FxError, InputsWithProjectPath, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import "reflect-metadata";
|
|
3
|
-
/**
|
|
4
|
-
* SPFx tab scaffold
|
|
5
|
-
*/
|
|
6
|
-
export declare class SPFxTabCodeProvider {
|
|
7
|
-
name: string;
|
|
8
|
-
generate(context: ContextV3, inputs: InputsWithProjectPath): Promise<Result<undefined, FxError>>;
|
|
9
|
-
}
|
|
10
|
-
export declare function scaffoldSPFx(context: ContextV3, inputs: InputsWithProjectPath, outputFolderPath: string): Promise<Result<any, FxError>>;
|
|
11
|
-
//# sourceMappingURL=spfxTabCode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spfxTabCode.d.ts","sourceRoot":"","sources":["../../../src/component/code/spfxTabCode.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,SAAS,EAET,OAAO,EAEP,qBAAqB,EAKrB,MAAM,EAGP,MAAM,wBAAwB,CAAC;AAIhC,OAAO,kBAAkB,CAAC;AAwB1B;;GAEG;AACH,qBACa,mBAAmB;IAC9B,IAAI,SAA8B;IAS5B,QAAQ,CACZ,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;CAWvC;AAED,wBAAsB,YAAY,CAChC,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,EAC7B,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAgO/B"}
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.scaffoldSPFx = exports.SPFxTabCodeProvider = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const lib_1 = require("@feathersjs/hooks/lib");
|
|
8
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
10
|
-
const lodash_1 = require("lodash");
|
|
11
|
-
const path = tslib_1.__importStar(require("path"));
|
|
12
|
-
require("reflect-metadata");
|
|
13
|
-
const typedi_1 = require("typedi");
|
|
14
|
-
const util = tslib_1.__importStar(require("util"));
|
|
15
|
-
const featureFlags_1 = require("../../common/featureFlags");
|
|
16
|
-
const tools_1 = require("../../common/tools");
|
|
17
|
-
const folder_1 = require("../../folder");
|
|
18
|
-
const constants_1 = require("../resource/appManifest/constants");
|
|
19
|
-
const generatorChecker_1 = require("../resource/spfx/depsChecker/generatorChecker");
|
|
20
|
-
const yoChecker_1 = require("../resource/spfx/depsChecker/yoChecker");
|
|
21
|
-
const error_1 = require("../resource/spfx/error");
|
|
22
|
-
const constants_2 = require("../resource/spfx/utils/constants");
|
|
23
|
-
const progress_helper_1 = require("../resource/spfx/utils/progress-helper");
|
|
24
|
-
const questions_1 = require("../resource/spfx/utils/questions");
|
|
25
|
-
const utils_1 = require("../resource/spfx/utils/utils");
|
|
26
|
-
const cpUtils_1 = require("../utils/depsChecker/cpUtils");
|
|
27
|
-
const constants_3 = require("../constants");
|
|
28
|
-
const actionExecutionMW_1 = require("../middleware/actionExecutionMW");
|
|
29
|
-
const manifestProvider_1 = require("../resource/appManifest/manifestProvider");
|
|
30
|
-
const workflow_1 = require("../workflow");
|
|
31
|
-
const common_1 = require("../../error/common");
|
|
32
|
-
/**
|
|
33
|
-
* SPFx tab scaffold
|
|
34
|
-
*/
|
|
35
|
-
let SPFxTabCodeProvider = class SPFxTabCodeProvider {
|
|
36
|
-
constructor() {
|
|
37
|
-
this.name = constants_3.ComponentNames.SPFxTabCode;
|
|
38
|
-
}
|
|
39
|
-
async generate(context, inputs) {
|
|
40
|
-
const projectSettings = context.projectSetting;
|
|
41
|
-
const folder = inputs.folder || "SPFx";
|
|
42
|
-
const teamsTab = workflow_1.getComponent(projectSettings, constants_3.ComponentNames.TeamsTab);
|
|
43
|
-
if (!teamsTab)
|
|
44
|
-
return teamsfx_api_1.ok(undefined);
|
|
45
|
-
lodash_1.merge(teamsTab, { build: true, folder: folder });
|
|
46
|
-
const workingDir = path.resolve(inputs.projectPath, folder);
|
|
47
|
-
const scaffoldRes = await scaffoldSPFx(context, inputs, workingDir);
|
|
48
|
-
if (scaffoldRes.isErr())
|
|
49
|
-
return teamsfx_api_1.err(scaffoldRes.error);
|
|
50
|
-
return teamsfx_api_1.ok(undefined);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
tslib_1.__decorate([
|
|
54
|
-
lib_1.hooks([
|
|
55
|
-
actionExecutionMW_1.ActionExecutionMW({
|
|
56
|
-
enableTelemetry: true,
|
|
57
|
-
telemetryComponentName: "fx-resource-spfx",
|
|
58
|
-
telemetryEventName: "scaffold",
|
|
59
|
-
errorSource: "SPFx",
|
|
60
|
-
}),
|
|
61
|
-
]),
|
|
62
|
-
tslib_1.__metadata("design:type", Function),
|
|
63
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
64
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
65
|
-
], SPFxTabCodeProvider.prototype, "generate", null);
|
|
66
|
-
SPFxTabCodeProvider = tslib_1.__decorate([
|
|
67
|
-
typedi_1.Service(constants_3.ComponentNames.SPFxTabCode)
|
|
68
|
-
], SPFxTabCodeProvider);
|
|
69
|
-
exports.SPFxTabCodeProvider = SPFxTabCodeProvider;
|
|
70
|
-
async function scaffoldSPFx(context, inputs, outputFolderPath) {
|
|
71
|
-
var _a, _b, _c, _d, _e;
|
|
72
|
-
const ui = context.userInteraction;
|
|
73
|
-
const progressHandler = await progress_helper_1.ProgressHelper.startScaffoldProgressHandler(ui);
|
|
74
|
-
try {
|
|
75
|
-
const isAddSpfx = inputs.stage === teamsfx_api_1.Stage.addFeature && featureFlags_1.isSPFxMultiTabEnabled();
|
|
76
|
-
const webpartName = inputs[questions_1.SPFXQuestionNames.webpart_name];
|
|
77
|
-
const framework = (_a = inputs[questions_1.SPFXQuestionNames.framework_type]) !== null && _a !== void 0 ? _a : undefined;
|
|
78
|
-
let solutionName = undefined;
|
|
79
|
-
if (!isAddSpfx) {
|
|
80
|
-
solutionName = context.projectSetting.appName;
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
const yorcPath = path.join(inputs.projectPath, "SPFx", ".yo-rc.json");
|
|
84
|
-
if (!(await fs_extra_1.default.pathExists(yorcPath))) {
|
|
85
|
-
throw error_1.NoConfigurationError();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
const componentName = utils_1.Utils.normalizeComponentName(webpartName);
|
|
89
|
-
const componentNameCamelCase = lodash_1.camelCase(componentName);
|
|
90
|
-
const templateFolder = path.join(folder_1.getTemplatesFolder(), "plugins", "resource", "spfx");
|
|
91
|
-
const replaceMap = new Map();
|
|
92
|
-
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.next(constants_2.ScaffoldProgressMessage.DependencyCheck));
|
|
93
|
-
const yoChecker = new yoChecker_1.YoChecker(context.logProvider);
|
|
94
|
-
const spGeneratorChecker = new generatorChecker_1.GeneratorChecker(context.logProvider);
|
|
95
|
-
const yoInstalled = await yoChecker.isInstalled();
|
|
96
|
-
const generatorInstalled = await spGeneratorChecker.isInstalled();
|
|
97
|
-
if (!yoInstalled || !generatorInstalled) {
|
|
98
|
-
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.next(constants_2.ScaffoldProgressMessage.DependencyInstall));
|
|
99
|
-
const yoRes = await yoChecker.ensureDependency(context);
|
|
100
|
-
if (yoRes.isErr()) {
|
|
101
|
-
throw new common_1.InstallSoftwareError("spfx", "yo");
|
|
102
|
-
}
|
|
103
|
-
const spGeneratorRes = await spGeneratorChecker.ensureDependency(context);
|
|
104
|
-
if (spGeneratorRes.isErr()) {
|
|
105
|
-
throw new common_1.InstallSoftwareError("spfx", "sharepoint generator");
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.next(constants_2.ScaffoldProgressMessage.ScaffoldProject));
|
|
109
|
-
if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
|
|
110
|
-
context.logProvider.outputChannel.show();
|
|
111
|
-
}
|
|
112
|
-
const yoEnv = process.env;
|
|
113
|
-
yoEnv.PATH = `${await (await yoChecker.getBinFolders()).join(path.delimiter)}${path.delimiter}${(_b = process.env.PATH) !== null && _b !== void 0 ? _b : ""}`;
|
|
114
|
-
const args = [
|
|
115
|
-
spGeneratorChecker.getSpGeneratorPath(),
|
|
116
|
-
"--skip-install",
|
|
117
|
-
"true",
|
|
118
|
-
"--component-type",
|
|
119
|
-
"webpart",
|
|
120
|
-
"--component-name",
|
|
121
|
-
webpartName,
|
|
122
|
-
"--environment",
|
|
123
|
-
"spo",
|
|
124
|
-
"--skip-feature-deployment",
|
|
125
|
-
"true",
|
|
126
|
-
"--is-domain-isolated",
|
|
127
|
-
"false",
|
|
128
|
-
];
|
|
129
|
-
if (framework) {
|
|
130
|
-
args.push("--framework", framework);
|
|
131
|
-
}
|
|
132
|
-
if (solutionName) {
|
|
133
|
-
args.push("--solution-name", solutionName);
|
|
134
|
-
}
|
|
135
|
-
await cpUtils_1.cpUtils.executeCommand(isAddSpfx ? path.join(inputs.projectPath, "SPFx") : inputs.projectPath, context.logProvider, {
|
|
136
|
-
timeout: 2 * 60 * 1000,
|
|
137
|
-
env: yoEnv,
|
|
138
|
-
}, "yo", ...args);
|
|
139
|
-
const newPath = path.join(inputs.projectPath, "SPFx");
|
|
140
|
-
if (!isAddSpfx) {
|
|
141
|
-
const currentPath = path.join(inputs.projectPath, solutionName);
|
|
142
|
-
await fs_extra_1.default.rename(currentPath, newPath);
|
|
143
|
-
}
|
|
144
|
-
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.next(constants_2.ScaffoldProgressMessage.UpdateManifest));
|
|
145
|
-
const manifestPath = `${newPath}/src/webparts/${componentNameCamelCase}/${componentName}WebPart.manifest.json`;
|
|
146
|
-
const manifest = await fs_extra_1.default.readFile(manifestPath, "utf8");
|
|
147
|
-
let manifestString = manifest.toString();
|
|
148
|
-
manifestString = manifestString.replace(`"supportedHosts": ["SharePointWebPart"]`, `"supportedHosts": ["SharePointWebPart", "TeamsPersonalApp", "TeamsTab"]`);
|
|
149
|
-
await fs_extra_1.default.writeFile(manifestPath, manifestString);
|
|
150
|
-
const matchHashComment = new RegExp(/(\/\/ .*)/, "gi");
|
|
151
|
-
const manifestJson = JSON.parse(manifestString.replace(matchHashComment, "").trim());
|
|
152
|
-
const componentId = manifestJson.id;
|
|
153
|
-
replaceMap.set(constants_2.PlaceHolders.componentId, componentId);
|
|
154
|
-
replaceMap.set(constants_2.PlaceHolders.componentNameUnescaped, webpartName);
|
|
155
|
-
// remove dataVersion() function, related issue: https://github.com/SharePoint/sp-dev-docs/issues/6469
|
|
156
|
-
const webpartFile = `${newPath}/src/webparts/${componentNameCamelCase}/${componentName}WebPart.ts`;
|
|
157
|
-
const codeFile = await fs_extra_1.default.readFile(webpartFile, "utf8");
|
|
158
|
-
let codeString = codeFile.toString();
|
|
159
|
-
codeString = codeString.replace(` protected get dataVersion(): Version {\r\n return Version.parse('1.0');\r\n }\r\n\r\n`, ``);
|
|
160
|
-
codeString = codeString.replace(`import { Version } from '@microsoft/sp-core-library';\r\n`, ``);
|
|
161
|
-
await fs_extra_1.default.writeFile(webpartFile, codeString);
|
|
162
|
-
// remove .vscode
|
|
163
|
-
const debugPath = `${newPath}/.vscode`;
|
|
164
|
-
if (await fs_extra_1.default.pathExists(debugPath)) {
|
|
165
|
-
await fs_extra_1.default.remove(debugPath);
|
|
166
|
-
}
|
|
167
|
-
// update readme
|
|
168
|
-
if (!isAddSpfx) {
|
|
169
|
-
await fs_extra_1.default.copyFile(path.resolve(templateFolder, "./solution/README.md"), `${outputFolderPath}/README.md`);
|
|
170
|
-
}
|
|
171
|
-
const manifestProvider = context.manifestProvider || new manifestProvider_1.DefaultManifestProvider();
|
|
172
|
-
const capabilitiesToAddManifest = [];
|
|
173
|
-
const remoteStaticSnippet = {
|
|
174
|
-
entityId: componentId,
|
|
175
|
-
name: webpartName,
|
|
176
|
-
contentUrl: util.format(constants_2.ManifestTemplate.REMOTE_CONTENT_URL, componentId, componentId),
|
|
177
|
-
websiteUrl: constants_2.ManifestTemplate.WEBSITE_URL,
|
|
178
|
-
scopes: ["personal"],
|
|
179
|
-
};
|
|
180
|
-
if (isAddSpfx) {
|
|
181
|
-
capabilitiesToAddManifest.push({
|
|
182
|
-
name: "staticTab",
|
|
183
|
-
snippet: remoteStaticSnippet,
|
|
184
|
-
});
|
|
185
|
-
const addCapRes = await manifestProvider.addCapabilities(context, inputs, capabilitiesToAddManifest);
|
|
186
|
-
if (addCapRes.isErr())
|
|
187
|
-
return teamsfx_api_1.err(addCapRes.error);
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
const appDirectory = await tools_1.getAppDirectory(inputs.projectPath);
|
|
191
|
-
await utils_1.Utils.configure(path.join(appDirectory, constants_1.MANIFEST_TEMPLATE_CONSOLIDATE), replaceMap);
|
|
192
|
-
const remoteConfigurableSnippet = {
|
|
193
|
-
configurationUrl: util.format(constants_2.ManifestTemplate.REMOTE_CONFIGURATION_URL, componentId, componentId),
|
|
194
|
-
canUpdateConfiguration: true,
|
|
195
|
-
scopes: ["team"],
|
|
196
|
-
};
|
|
197
|
-
capabilitiesToAddManifest.push({
|
|
198
|
-
name: "staticTab",
|
|
199
|
-
snippet: remoteStaticSnippet,
|
|
200
|
-
}, {
|
|
201
|
-
name: "configurableTab",
|
|
202
|
-
snippet: remoteConfigurableSnippet,
|
|
203
|
-
});
|
|
204
|
-
for (const capability of capabilitiesToAddManifest) {
|
|
205
|
-
const addCapRes = await manifestProvider.updateCapability(context, inputs, capability);
|
|
206
|
-
if (addCapRes.isErr())
|
|
207
|
-
return teamsfx_api_1.err(addCapRes.error);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.end(true));
|
|
211
|
-
return teamsfx_api_1.ok(undefined);
|
|
212
|
-
}
|
|
213
|
-
catch (error) {
|
|
214
|
-
if (error instanceof common_1.InstallSoftwareError) {
|
|
215
|
-
const globalYoVersion = utils_1.Utils.getPackageVersion("yo");
|
|
216
|
-
const globalGenVersion = utils_1.Utils.getPackageVersion("@microsoft/generator-sharepoint");
|
|
217
|
-
const yoInfo = yoChecker_1.YoChecker.getDependencyInfo();
|
|
218
|
-
const genInfo = generatorChecker_1.GeneratorChecker.getDependencyInfo();
|
|
219
|
-
const yoMessage = globalYoVersion === undefined
|
|
220
|
-
? " yo not installed"
|
|
221
|
-
: ` globally installed yo@${globalYoVersion}`;
|
|
222
|
-
const generatorMessage = globalGenVersion === undefined
|
|
223
|
-
? " @microsoft/generator-sharepoint not installed"
|
|
224
|
-
: ` globally installed @microsoft/generator-sharepoint@${globalYoVersion}`;
|
|
225
|
-
(_c = context.logProvider) === null || _c === void 0 ? void 0 : _c.error(`We've encountered some issues when trying to install prerequisites under HOME/.fx folder. Learn how to remediate by going to this link(aka.ms/teamsfx-spfx-help) and following the steps applicable to your system: \n ${yoMessage} \n ${generatorMessage}`);
|
|
226
|
-
(_d = context.logProvider) === null || _d === void 0 ? void 0 : _d.error(`Teams Toolkit recommends using ${yoInfo.displayName} ${genInfo.displayName}`);
|
|
227
|
-
}
|
|
228
|
-
if (error.message &&
|
|
229
|
-
error.message.includes("'yo' is not recognized as an internal or external command")) {
|
|
230
|
-
(_e = context.logProvider) === null || _e === void 0 ? void 0 : _e.error("NPM v6.x with Node.js v12.13.0+ (Erbium) or Node.js v14.15.0+ (Fermium) is recommended for spfx scaffolding and later development. You can use correct version and try again.");
|
|
231
|
-
}
|
|
232
|
-
await (progressHandler === null || progressHandler === void 0 ? void 0 : progressHandler.end(false));
|
|
233
|
-
return teamsfx_api_1.err(error_1.ScaffoldError(error));
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
exports.scaffoldSPFx = scaffoldSPFx;
|
|
237
|
-
//# sourceMappingURL=spfxTabCode.js.map
|