-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1449 from glopesdev/item-template
Add source item template for dotnet new
- Loading branch information
Showing
7 changed files
with
58 additions
and
6 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
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
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
51 changes: 51 additions & 0 deletions
51
Bonsai.Templates/Bonsai.SourceTemplate/.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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/template", | ||
"author": "Bonsai", | ||
"classifications": [ "Bonsai", "Source" ], | ||
"description": "A class used to create a simple Bonsai observable source", | ||
"identity": "Bonsai.SourceTemplate", | ||
"name": "Bonsai Source", | ||
"tags": { | ||
"language": "C#", | ||
"type": "item" | ||
}, | ||
"sources": [ | ||
{ | ||
"modifiers": [ | ||
{ | ||
"exclude": [ | ||
"**/[Bb]in/**", | ||
"**/[Oo]bj/**", | ||
"**/[Pp]roperties/**", | ||
"**/*.ico", | ||
"**/*.vstemplate", | ||
"Bonsai.SourceTemplate.csproj" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"symbols": { | ||
"itemName": { | ||
"type": "derived", | ||
"valueSource": "name", | ||
"valueTransform": "safe_name", | ||
"replaces": "$safeitemname$", | ||
"fileRename": "SourceTemplate" | ||
}, | ||
"namespace": { | ||
"type": "bind", | ||
"binding": "msbuild:RootNamespace", | ||
"replaces": "$rootnamespace$" | ||
} | ||
}, | ||
"constraints": { | ||
"csharp-only": { | ||
"type": "project-capability", | ||
"args": "CSharp" | ||
} | ||
}, | ||
"shortName": "bonsaisource", | ||
"defaultName": "Source1", | ||
"preferDefaultName": true | ||
} |
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