Skip to content

Commit 1f5bbf3

Browse files
author
Highlander Paiva
committed
adding template configuration
1 parent 1a10ca0 commit 1f5bbf3

File tree

1 file changed

+146
-0
lines changed

1 file changed

+146
-0
lines changed
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
{
2+
"$schema": "http://json.schemastore.org/template",
3+
"author": "Highlander Paiva",
4+
"classifications": [ "Web", "WebAPI", "SPA" ],
5+
"groupIdentity": "AspDotnetVueJs",
6+
"identity": "AspDotnetVueJs",
7+
"name": "ASP.NET Core with VueJs",
8+
"preferNameDirectory": true,
9+
"primaryOutputs": [
10+
{
11+
"path": "AspDotnetVueJs.csproj"
12+
}
13+
],
14+
"shortName": "aspdotnet-vuejs",
15+
"sourceName": "AspDotnetVueJs",
16+
"sources": [
17+
{
18+
"source": "./",
19+
"target": "./",
20+
"exclude": [
21+
".template.config/**"
22+
],
23+
"modifiers": [
24+
{
25+
"condition": "(TargetFrameworkOverride == '')",
26+
"exclude": [
27+
"app.config"
28+
]
29+
},
30+
{
31+
"condition": "(ExcludeLaunchSettings)",
32+
"exclude": [
33+
"Properties/launchSettings.json"
34+
]
35+
}
36+
]
37+
}
38+
],
39+
"symbols": {
40+
"ExcludeLaunchSettings": {
41+
"type": "parameter",
42+
"datatype": "bool",
43+
"defaultValue": "false",
44+
"description": "Whether to exclude launchSettings.json from the generated template."
45+
},
46+
"HttpPort": {
47+
"type": "parameter",
48+
"datatype": "integer",
49+
"description": "Port number to use for the HTTP endpoint in launchSettings.json."
50+
},
51+
"HttpPortGenerated": {
52+
"type": "generated",
53+
"generator": "port"
54+
},
55+
"HttpPortReplacer": {
56+
"type": "generated",
57+
"generator": "coalesce",
58+
"parameters": {
59+
"sourceVariableName": "HttpPort",
60+
"fallbackVariableName": "HttpPortGenerated"
61+
},
62+
"replaces": "8080"
63+
},
64+
"HttpsPort": {
65+
"type": "parameter",
66+
"datatype": "integer",
67+
"description": "Port number to use for the HTTPS endpoint in launchSettings.json. This option is only applicable when the parameter no-https is not used (no-https will be ignored if either IndividualAuth or OrganizationalAuth is used)."
68+
},
69+
"HttpsPortGenerated": {
70+
"type": "generated",
71+
"generator": "port",
72+
"parameters": {
73+
"low": 44300,
74+
"high": 44399
75+
}
76+
},
77+
"HttpsPortReplacer": {
78+
"type": "generated",
79+
"generator": "coalesce",
80+
"parameters": {
81+
"sourceVariableName": "HttpsPort",
82+
"fallbackVariableName": "HttpsPortGenerated"
83+
},
84+
"replaces": "44300"
85+
},
86+
"TargetFrameworkOverride": {
87+
"type": "parameter",
88+
"description": "Overrides the target framework",
89+
"replaces": "TargetFrameworkOverride",
90+
"datatype": "string",
91+
"defaultValue": ""
92+
},
93+
"Framework": {
94+
"type": "parameter",
95+
"description": "The target framework for the project.",
96+
"datatype": "choice",
97+
"choices": [
98+
{
99+
"choice": "netcoreapp2.2",
100+
"description": "Target netcoreapp2.2"
101+
}
102+
],
103+
"replaces": "netcoreapp2.2",
104+
"defaultValue": "netcoreapp2.2"
105+
},
106+
"HostIdentifier": {
107+
"type": "bind",
108+
"binding": "HostIdentifier"
109+
},
110+
"skipRestore": {
111+
"type": "parameter",
112+
"datatype": "bool",
113+
"description": "If specified, skips the automatic restore of the project on create.",
114+
"defaultValue": "false"
115+
},
116+
"NoHttps": {
117+
"type": "parameter",
118+
"datatype": "bool",
119+
"defaultValue": "false",
120+
"description": "Whether to turn off HTTPS. This option only applies if Individual, IndividualB2C, SingleOrg, or MultiOrg aren't used for --auth."
121+
}
122+
},
123+
"tags": {
124+
"language": "C#",
125+
"type": "project"
126+
},
127+
128+
129+
"precedence": 100,
130+
"guids": [
131+
"6B3E8EE8-92E3-41CE-A356-A5F880EEA367"
132+
],
133+
"postActions": [
134+
{
135+
"condition": "(!skipRestore)",
136+
"description": "Restore NuGet packages required by this project.",
137+
"manualInstructions": [
138+
{
139+
"text": "Run 'dotnet restore'"
140+
}
141+
],
142+
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
143+
"continueOnError": true
144+
}
145+
]
146+
}

0 commit comments

Comments
 (0)