forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dotnet new template for Azure.Template (Azure#23984)
Resolves Azure#22782
- Loading branch information
Showing
5 changed files
with
160 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
eng/templates/Azure.ResourceManager.Template/.template.config/template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/template", | ||
"author": "[email protected]", | ||
"classifications": [ "ClassLibrary" ], | ||
"classifications": [ "Azure", "ClassLibrary" ], | ||
"identity": "Azure.Management.TemplateProject", | ||
"name": "Azure Management SDK template: client project", | ||
"shortName": "azuremgmt", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/template", | ||
"author": "Azure SDK for .NET", | ||
"description": "Create a new Azure SDK e.g. dotnet new azuresdk --name Azure.MyService --output sdk/myservice --ServiceDirectory myservice --ProjectName Azure.MyService", | ||
"classifications": [ "Azure", "ClassLibrary" ], | ||
"identity": "Azure.Template", | ||
"name": "Azure SDK", | ||
"shortName": "azuresdk", | ||
"tags": { | ||
"language": "C#", | ||
"type": "project" | ||
}, | ||
"sourceName": "Azure.Template", | ||
"preferNameDirectory": true, | ||
"symbols": { | ||
"ServiceDirectory": { | ||
"type": "parameter", | ||
"description": "This must match the name of the directory you create under the \"sdk\" directory e.g., \"myservice\" if outputting \"sdk/mysevice\".", | ||
"datatype": "text", | ||
"isRequired": true | ||
}, | ||
"ProjectName": { | ||
"type": "parameter", | ||
"description": "This must match the name of the project e.g. pass the same value as you do to the built-in \"--name\" parameter.", | ||
"datatype": "text", | ||
"isRequired": true | ||
}, | ||
"ServiceDirectoryPath": { | ||
"type": "generated", | ||
"generator": "join", | ||
"parameters": { | ||
"symbols": [ | ||
{ | ||
"type": "const", | ||
"value": "sdk/" | ||
}, | ||
{ | ||
"type": "ref", | ||
"value": "ServiceDirectory" | ||
} | ||
], | ||
"separator": "" | ||
}, | ||
"replaces": "sdk/template" | ||
}, | ||
"SafeProjectName": { | ||
"type": "generated", | ||
"generator": "regex", | ||
"parameters": { | ||
"source": "ProjectName", | ||
"steps": [ | ||
{ | ||
"regex": "\\.", | ||
"replacement": "" | ||
} | ||
] | ||
}, | ||
"replaces": "AzureTemplate" | ||
}, | ||
"YamlServiceDirectory": { | ||
"type": "generated", | ||
"generator": "join", | ||
"parameters": { | ||
"symbols": [ | ||
{ | ||
"type": "const", | ||
"value": "ServiceDirectory: " | ||
}, | ||
{ | ||
"type": "ref", | ||
"value": "ServiceDirectory" | ||
} | ||
], | ||
"separator": "" | ||
}, | ||
"replaces": "ServiceDirectory: template" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters