Last active
October 20, 2017 08:40
-
-
Save awright18/8f6750d104e0f6bcaf3322d0aba36031 to your computer and use it in GitHub Desktop.
dotnet new template.json intializing a git repository
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
{ | |
"$schema": "http://json.schemastore.org/template", | |
"author": "Adam", | |
"classifications": [ "classlib" ], | |
"name": "My class lib", | |
"identity": "Adam.ClassLib2.CSharp", | |
"groupIdentity":"MyClassLib", | |
"shortName": "MyClassLib", // You can create the project using this short name instead of the one above. | |
"tags": { | |
"language": "C#", // Specify that this template is in C#. | |
"type":"project" | |
}, | |
"sourceName": "DotNetTemplate", // Will replace the string 'DotNetTemplate' with the value provided via -n. | |
"preferNameDirectory":true, | |
"postActions": [ | |
{ | |
"description": "Run 'git flow init -d'", | |
"actionId": "3A7C4B45-1F5D-4A30-959A-51B88E82B5D2", | |
"manualInstructions": [ | |
{ "text": "Run 'git flow init -d'" } | |
], | |
"args": { | |
"executable": "git", | |
"args": "flow init -d" | |
} | |
}, | |
{ | |
"description": "Run 'git add .'", | |
"actionId": "3A7C4B45-1F5D-4A30-959A-51B88E82B5D2", | |
"manualInstructions": [ | |
{ "text": "Run 'git add .'" } | |
], | |
"args": { | |
"executable": "git", | |
"args": "add ." | |
} | |
}, | |
{ | |
"description": "Run 'git commit -m \"adding required files\"'", | |
"actionId": "3A7C4B45-1F5D-4A30-959A-51B88E82B5D2", | |
"manualInstructions": [ | |
{ "text": "Run 'git commit -m \"adding required files\"'" } | |
], | |
"args": { | |
"executable": "git", | |
"args": "commit -m \"adding required files\"" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment