Skip to content

Commit

Permalink
added aliases for item templates
Browse files Browse the repository at this point in the history
  • Loading branch information
vlada-shubina committed Aug 26, 2022
1 parent 48b50fa commit 26507c0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,15 @@ public void AllCommonProjectsCreate_NoRestore(string expectedTemplateName, strin
[InlineData("dotnet gitignore file", "gitignore")]
[InlineData("global.json file", "globaljson")]
[InlineData("NuGet Config", "nugetconfig")]
[InlineData("dotnet gitignore file", "git.ignore")]
[InlineData("global.json file", "global.json")]
[InlineData("NuGet Config", "nuget.config")]
[InlineData("Solution File", "sln")]
[InlineData("Solution File", "solution")]
[InlineData("Dotnet local tool manifest file", "tool-manifest")]
[InlineData("Web Config", "webconfig")]
[InlineData("EditorConfig file", "editorconfig")]
[InlineData("EditorConfig file", ".editorconfig")]
public void AllCommonItemsCreate(string expectedTemplateName, string templateShortName)
{
string workingDir = TestUtils.CreateTemporaryFolder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"identity": "Microsoft.Standard.QuickStarts.EditorConfigFile",
"shortName": "editorconfig",
"shortName": [ "editorconfig", ".editorconfig" ],
"symbols": {
"Empty": {
"type": "parameter",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"groupIdentity": "GitignoreFile",
"precedence": "100",
"identity": "Microsoft.Standard.QuickStarts.GitignoreFile",
"shortName": "gitignore",
"shortName": [ "gitignore", ".gitignore" ],
"primaryOutputs": [
{
"path": ".gitignore"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"groupIdentity": "GlobalJsonFile",
"precedence": "100",
"identity": "Microsoft.Standard.QuickStarts.GlobalJsonFile",
"shortName": "globaljson",
"shortName": [ "globaljson", "global.json" ],
"sourceName": "unused",
"primaryOutputs": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"groupIdentity": "ItemNugetConfig",
"precedence": "100",
"identity": "Microsoft.Standard.QuickStarts.Nuget.Config",
"shortName": "nugetconfig",
"shortName": [ "nugetconfig", "nuget.config" ],
"primaryOutputs": [
{
"path": "nuget.config"
Expand Down

0 comments on commit 26507c0

Please sign in to comment.