258 lines
8.3 KiB
JSON
258 lines
8.3 KiB
JSON
{
|
|
"$schema": "http://json.schemastore.org/template",
|
|
"author": "Umbraco HQ",
|
|
"description": "An empty Umbraco Project ready to get started",
|
|
"classifications": [ "Web", "CMS", "Umbraco"],
|
|
"groupIdentity": "Umbraco.Templates.UmbracoProject",
|
|
"identity": "Umbraco.Templates.UmbracoProject.CSharp",
|
|
"name": "Umbraco Project",
|
|
"shortName": "umbraco",
|
|
"defaultName": "UmbracoProject1",
|
|
"preferNameDirectory": true,
|
|
"tags": {
|
|
"language": "C#",
|
|
"type": "project"
|
|
},
|
|
"primaryOutputs": [
|
|
{
|
|
"path": "UmbracoProject.csproj"
|
|
}
|
|
],
|
|
"postActions": [
|
|
{
|
|
"condition": "(!SkipRestore)",
|
|
"description": "Restore NuGet packages required by this project",
|
|
"manualInstructions": [{
|
|
"text": "Run 'dotnet restore'"
|
|
}],
|
|
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
|
|
"continueOnError": true
|
|
}
|
|
],
|
|
"sourceName": "UmbracoProject",
|
|
"symbols": {
|
|
"namespaceReplacer": {
|
|
"type": "generated",
|
|
"generator": "regex",
|
|
"dataType": "string",
|
|
"replaces": "Umbraco.Cms.Web.UI",
|
|
"parameters": {
|
|
"source": "name",
|
|
"steps": [
|
|
{
|
|
"regex": "\\s",
|
|
"replacement": "_"
|
|
},
|
|
{
|
|
"regex": "-",
|
|
"replacement": "_"
|
|
},
|
|
{
|
|
"regex": "^[^a-zA-Z_]+",
|
|
"replacement": "_"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": {
|
|
"type": "parameter",
|
|
"datatype": "string",
|
|
"defaultValue": "9.0.0-rc002",
|
|
"description": "The version of Umbraco to load using NuGet",
|
|
"replaces": "UMBRACO_VERSION_FROM_TEMPLATE"
|
|
},
|
|
"PackageTestSiteName": {
|
|
"type": "parameter",
|
|
"datatype":"text",
|
|
"defaultValue": "",
|
|
"replaces":"PackageTestSiteName",
|
|
"description": "The name of the package this should be a test site for (Default: '')"
|
|
},
|
|
"UseSqlCe":{
|
|
"type": "parameter",
|
|
"datatype":"bool",
|
|
"defaultValue": "false",
|
|
"description": "Adds the required dependencies to use SqlCE (Windows only) (Default: false)"
|
|
},
|
|
"Framework": {
|
|
"type": "parameter",
|
|
"description": "The target framework for the project",
|
|
"datatype": "choice",
|
|
"choices": [
|
|
{
|
|
"choice": "net5.0",
|
|
"description": "Target net5.0"
|
|
},
|
|
{
|
|
"choice": "net6.0",
|
|
"description": "Target net6.0"
|
|
}
|
|
],
|
|
"replaces": "net5.0",
|
|
"defaultValue": "net5.0"
|
|
},
|
|
"SkipRestore": {
|
|
"type": "parameter",
|
|
"datatype": "bool",
|
|
"description": "If specified, skips the automatic restore of the project on create",
|
|
"defaultValue": "false"
|
|
},
|
|
"HttpPort": {
|
|
"type": "generated",
|
|
"generator": "port",
|
|
"replaces": "HTTP_PORT_FROM_TEMPLATE",
|
|
"parameters": {
|
|
"high": 65535,
|
|
"low": 1024,
|
|
"fallback": 5000
|
|
}
|
|
},
|
|
"HttpsPort": {
|
|
"type": "generated",
|
|
"generator": "port",
|
|
"replaces": "HTTPS_PORT_FROM_TEMPLATE",
|
|
"parameters": {
|
|
"low": 44300,
|
|
"high": 44399,
|
|
"fallback": 5001
|
|
}
|
|
},
|
|
"FriendlyName":{
|
|
"type": "parameter",
|
|
"datatype":"text",
|
|
"description": "The friendly name of the user for Umbraco login when using Unattended install (Without installer wizard UI)",
|
|
"defaultValue": ""
|
|
},
|
|
"FriendlyNameReplaced":{
|
|
"type": "generated",
|
|
"generator": "regex",
|
|
"dataType": "string",
|
|
"replaces": "FRIENDLY_NAME_FROM_TEMPLATE",
|
|
"parameters": {
|
|
"source": "FriendlyName",
|
|
"steps": [
|
|
{
|
|
"regex": "\\\\",
|
|
"replacement": "\\\\"
|
|
},
|
|
{
|
|
"regex": "\\\"",
|
|
"replacement": "\\\""
|
|
},
|
|
{
|
|
"regex": "\\\n",
|
|
"replacement": "\\\n"
|
|
},
|
|
{
|
|
"regex": "\\\t",
|
|
"replacement": "\\\t"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Email":{
|
|
"type": "parameter",
|
|
"datatype":"text",
|
|
"description": "Email to use for Umbraco login when using Unattended install (Without installer wizard UI)",
|
|
"defaultValue": ""
|
|
},
|
|
"EmailReplaced":{
|
|
"type": "generated",
|
|
"generator": "regex",
|
|
"dataType": "string",
|
|
"replaces": "EMAIL_FROM_TEMPLATE",
|
|
"parameters": {
|
|
"source": "Email",
|
|
"steps": [
|
|
{
|
|
"regex": "\\\\",
|
|
"replacement": "\\\\"
|
|
},
|
|
{
|
|
"regex": "\\\"",
|
|
"replacement": "\\\""
|
|
},
|
|
{
|
|
"regex": "\\\n",
|
|
"replacement": "\\\n"
|
|
},
|
|
{
|
|
"regex": "\\\t",
|
|
"replacement": "\\\t"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Password":{
|
|
"type": "parameter",
|
|
"datatype":"text",
|
|
"description": "Password to use for Umbraco login when using Unattended install (Without installer wizard UI)",
|
|
"defaultValue": ""
|
|
},
|
|
"PasswordReplaced":{
|
|
"type": "generated",
|
|
"generator": "regex",
|
|
"dataType": "string",
|
|
"replaces": "PASSWORD_FROM_TEMPLATE",
|
|
"parameters": {
|
|
"source": "Password",
|
|
"steps": [
|
|
{
|
|
"regex": "\\\\",
|
|
"replacement": "\\\\"
|
|
},
|
|
{
|
|
"regex": "\\\"",
|
|
"replacement": "\\\""
|
|
},
|
|
{
|
|
"regex": "\\\n",
|
|
"replacement": "\\\n"
|
|
},
|
|
{
|
|
"regex": "\\\t",
|
|
"replacement": "\\\t"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"ConnectionString":{
|
|
"type": "parameter",
|
|
"datatype":"text",
|
|
"description": "Database connection string when using Unattended install (Without installer wizard UI)",
|
|
"defaultValue": ""
|
|
},
|
|
"ConnectionStringReplaced":{
|
|
"type": "generated",
|
|
"generator": "regex",
|
|
"dataType": "string",
|
|
"replaces": "CONNECTION_FROM_TEMPLATE",
|
|
"parameters": {
|
|
"source": "ConnectionString",
|
|
"steps": [
|
|
{
|
|
"regex": "\\\\",
|
|
"replacement": "\\\\"
|
|
},
|
|
{
|
|
"regex": "\\\"",
|
|
"replacement": "\\\""
|
|
},
|
|
{
|
|
"regex": "\\\n",
|
|
"replacement": "\\\n"
|
|
},
|
|
{
|
|
"regex": "\\\t",
|
|
"replacement": "\\\t"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"UsingUnattenedInstall":{
|
|
"type": "computed",
|
|
"value": "(FriendlyName != \"\" && Email != \"\" && Password != \"\" && ConnectionString != \"\")"
|
|
}
|
|
}
|
|
}
|