-
Notifications
You must be signed in to change notification settings - Fork 397
Templates for template authoring: first edition #5739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
33eead9
templates for template authoring: first draft
vlada-shubina 4a571fd
renamed comment properties
vlada-shubina 5efe17e
removed extra readme
vlada-shubina 62b03c3
added tests
vlada-shubina 1f43d4b
added TODO instructions using post action
vlada-shubina 2a97d23
replaced the links, polishing
vlada-shubina bad06a9
updated the target framework in the template
vlada-shubina 874c739
added link to classification in the reference, improved description i…
vlada-shubina 577271c
excluded authoring templates from source-build
vlada-shubina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
39 changes: 39 additions & 0 deletions
39
...ft.TemplateEngine.Authoring.Templates/Microsoft.TemplateEngine.Authoring.Templates.csproj
This file contains hidden or 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,39 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>$(NETCoreTargetFramework)</TargetFramework> | ||
| <IncludeBuildOutput>False</IncludeBuildOutput> | ||
| <IncludeSource>False</IncludeSource> | ||
| <GenerateAssemblyInfo>False</GenerateAssemblyInfo> | ||
| <OutputPath>$(ArtifactsTmpDir)</OutputPath> | ||
| <EnableDefaultItems>False</EnableDefaultItems> | ||
| <UsingToolTemplateLocalizer>true</UsingToolTemplateLocalizer> | ||
| <IsPackable>true</IsPackable> | ||
| <IsShipping>true</IsShipping> | ||
| <IsShippingPackage>true</IsShippingPackage> | ||
| <NoWarn>2008;NU5105</NoWarn> | ||
| <NoPackageAnalysis>true</NoPackageAnalysis> | ||
| <PackageId>Microsoft.TemplateEngine.Authoring.Templates</PackageId> | ||
| <Authors>Microsoft</Authors> | ||
| <Description>The templates for useful items and projects for template authoring.</Description> | ||
| <language>en-US</language> | ||
| <PackageProjectUrl>https://github.com/dotnet/templating</PackageProjectUrl> | ||
| <PackageType>Template</PackageType> | ||
| <SuppressDependenciesWhenPacking>True</SuppressDependenciesWhenPacking> | ||
| <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Remove="Microsoft.NETCore.App" /> | ||
| <Content Include="content\**"> | ||
| <PackagePath>content</PackagePath> | ||
| </Content> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <Content Remove="content\README.md" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <None Include="README.md" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <Folder Include="content\TemplatePackage\.template.config\localize\" /> | ||
| </ItemGroup> | ||
| </Project> |
10 changes: 10 additions & 0 deletions
10
template_feed/Microsoft.TemplateEngine.Authoring.Templates/README.md
This file contains hidden or 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,10 @@ | ||
| ## The templates for template authoring | ||
|
|
||
| The package contains the templates useful for the template authoring: | ||
| | Template name | Short name | Description| | ||
| |---|---|---| | ||
| |`template.json` configuration file|`template.json`|A template for template.json configuration file for .NET template.| | ||
| |Template Package|`template-package`|A project for creating template package containing .NET templates.| | ||
|
|
||
| The package is available for download from nuget.org. | ||
| Please feel to contribute or provide the feedback in discussions or via opening the issue in dotnet/templating repo. | ||
21 changes: 21 additions & 0 deletions
21
...plateEngine.Authoring.Templates/content/TemplateJson/.template.config/dotnetcli.host.json
This file contains hidden or 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,21 @@ | ||
| { | ||
| "$schema": "http://json.schemastore.org/dotnetcli.host", | ||
| "symbolInfo": { | ||
| "CreateTemplateConfigFolder": { | ||
| "longName": "create-template-config-folder", | ||
| "shortName": "" | ||
| }, | ||
| "TemplateName": { | ||
| "longName": "template-name", | ||
| "shortName": "tn" | ||
| }, | ||
| "TemplateShortName": { | ||
| "longName": "short-name", | ||
| "shortName": "sn" | ||
| }, | ||
| "TemplateIdentity": { | ||
| "longName": "template-identity", | ||
| "shortName": "ti" | ||
| } | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.cs.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.de.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.en.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json configuration file", | ||
| "description": "A template for template.json configuration file for .NET template. See https://github.com/dotnet/templating/wiki/Reference-for-template.json for complete configuration description", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.es.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.fr.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.it.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.ja.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.ko.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.pl.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...oring.Templates/content/TemplateJson/.template.config/localize/templatestrings.pt-BR.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
15 changes: 15 additions & 0 deletions
15
...uthoring.Templates/content/TemplateJson/.template.config/localize/templatestrings.ru.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "author": "Microsoft", | ||
| "name": "template.json", | ||
| "description": "A template for template.json configuration file for .NET template.", | ||
| "symbols/CreateTemplateConfigFolder/description": "True when template.json should be created in .template.config folder.", | ||
| "symbols/CreateTemplateConfigFolder/displayName": "Create .template.config folder", | ||
| "symbols/TemplateName/description": "The template name.", | ||
| "symbols/TemplateName/displayName": "Template name", | ||
| "symbols/TemplateShortName/description": "The template short name.", | ||
| "symbols/TemplateShortName/displayName": "Template short name", | ||
| "symbols/TemplateIdentity/description": "The template identity (should be unique).", | ||
| "symbols/TemplateIdentity/displayName": "Template identity", | ||
| "postActions/instructions/description": "Manual actions required", | ||
| "postActions/instructions/manualInstructions/default/text": "Open template.json in the editor and complete the configuration." | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.