Default properties for new track 2 mgmt packages
Try to default the repopath, servicename and dislayname based on the name of the arm packages
This commit is contained in:
Родитель
0facdbaabe
Коммит
c21d8c00ae
|
@ -66,8 +66,6 @@
|
|||
"@azure/ai-text-analytics","5.1.0","5.2.0-beta.1","Text Analytics","Text Analytics","textanalytics","","","client","true","","06/09/2020","active","","@azure/cognitiveservices-textanalytics",""
|
||||
"@azure/web-pubsub","","1.0.0-beta.3","Web PubSub","Web PubSub","web-pubsub","","","client","true","","","","","",""
|
||||
"@azure/web-pubsub-express","","1.0.0-beta.3","Web PubSub CloudEvents Handlers for Express","Web PubSub","web-pubsub","","","client","true","","","","","",""
|
||||
"@azure/arm-extendedlocation","","1.0.0-beta.1","@azure/arm-extendedlocation","","NA","NA","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-quota","","1.0.0-beta.1","@azure/arm-quota","","NA","NA","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-resources-subscriptions","","1.0.0-beta.1","Resouce Management - Resources Subscriptions","Resources Subscriptions","resources-subscriptions","","","mgmt","true","","","","","",""
|
||||
"@azure/arm-apimanagement","7.1.1","","Resource Management - Api Management","API Management","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-appservice","9.0.0","","Resource Management - App Service","App Service","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appservice/arm-appservice","","NA","mgmt","true","","","","","",""
|
||||
|
@ -75,6 +73,7 @@
|
|||
"@azure/arm-compute","16.4.0","","Resource Management - Compute","Compute","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-eventgrid","11.0.1","","Resource Management - Event Grid","Event Grid","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/arm-eventgrid","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-eventhub","4.0.0","","Resource Management - Event Hubs","Event Hubs","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-extendedlocation","","1.0.0-beta.1","Resource Management - Extendedlocation","Extendedlocation","extendedlocation","NA","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-features","2.0.0","","Resource Management - Features","Features","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/features/arm-features","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-keyvault","1.3.2","","Resource Management - Key Vault","Key Vault","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/keyvault/arm-keyvault","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-links","1.1.2","","Resource Management - Links","Links","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/links/arm-links","","NA","mgmt","true","","","","","",""
|
||||
|
@ -82,7 +81,8 @@
|
|||
"@azure/arm-managedapplications","1.1.2","","Resource Management - Managed Applications","Managed Applications","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managedapplications/arm-managedapplications","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-network","25.2.0","","Resource Management - Network","Virtual Network","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-policy","4.1.2","","Resource Management - Policy","Policy","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/policy/arm-policy","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-purview","","1.0.0-beta.1","Resource Management - Purview","Purview","purview","","","mgmt","true","","","","","",""
|
||||
"@azure/arm-purview","","1.0.0-beta.1","Resource Management - Purview","Purview","purview","NA","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-quota","","1.0.0-beta.1","Resource Management - Quota","Quota","quota","NA","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-rediscache","5.0.0","","Resource Management - Redis Cache","Redis Cache","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redis/arm-rediscache","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-resources","4.2.2","","Resource Management - Resources","Resources","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources/arm-resources","","NA","mgmt","true","","","","","",""
|
||||
"@azure/arm-servicebus","4.1.1","","Resource Management - Service Bus","Service Bus","https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicebus/arm-servicebus","","NA","mgmt","true","","","","","",""
|
||||
|
|
|
|
@ -109,10 +109,14 @@ function Get-js-Packages
|
|||
{
|
||||
# If package starts with arm- and we shipped it recently because it is in the last months repo tags
|
||||
# then treat it as a new mgmt library
|
||||
if ($package.Package.StartsWith("@azure/arm-") -and $repoTags.ContainsKey($package.Package))
|
||||
if ($package.Package -match "@azure/arm-(?<serviceName>.*)" -and $repoTags.ContainsKey($package.Package))
|
||||
{
|
||||
$serviceName = (Get-Culture).TextInfo.ToTitleCase($matches["serviceName"])
|
||||
$package.Type = "mgmt"
|
||||
$package.New = "true"
|
||||
$package.RepoPath = $matches["serviceName"]
|
||||
$package.ServiceName = $serviceName
|
||||
$package.DisplayName = "Resource Management - $serviceName"
|
||||
Write-Host "Marked package $($package.Package) as new mgmt package with version $($package.VersionGA + $package.VersionPreview)"
|
||||
}
|
||||
}
|
||||
|
@ -220,6 +224,14 @@ function Write-Latest-Versions($lang)
|
|||
$pkgEntry.New = $pkg.New
|
||||
}
|
||||
|
||||
if (!$pkgEntry.RepoPath -or $pkgEntry.RepoPath -eq "NA" -and $pkg.RepoPath) {
|
||||
$pkgEntry.RepoPath = $pkg.RepoPath
|
||||
}
|
||||
|
||||
if (!$pkgEntry.ServiceName -and $pkg.ServiceName) {
|
||||
$pkgEntry.ServiceName = $pkg.ServiceName
|
||||
}
|
||||
|
||||
if ($pkgEntry.VersionGA.StartsWith("0")) {
|
||||
$pkgEntry.VersionGA = ""
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче