Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ Note that Visual Studio currently only supports *Project Templates* and not *Ite
To generate code based on the template simply execute the following.

```bash
$ dotnet new epi-alloy-mvc
$ dotnet new epi-stride-mvc
```

Replace `epi-alloy-mvc` with the name of the template you want to use.
Replace `epi-stride-mvc` with the name of the template you want to use.

See below for a list of available templates and details on each individual template. For direct access to documentation on each template, execute:

```bash
$ dotnet new epi-alloy-mvc --help
$ dotnet new epi-stride-mvc --help
```

For further documentation on how to work with `dotnet new` see https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new.
Expand All @@ -36,6 +36,7 @@ The following templates are included in this repository and available through th
### Project Templates

- epi-alloy-mvc
- epi-stride-mvc
- epi-cms-empty
- epi-commerce-empty

Expand Down
1 change: 1 addition & 0 deletions content-templates.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<Project Path="templates/Cms.Empty/Cms.Empty.1.csproj" />
<Project Path="templates/Cms.Item/Cms.Item.csproj" />
<Project Path="templates/Commerce.Empty/Commerce.Empty.1.csproj" />
<Project Path="templates/Stride.Mvc/Stride.Mvc.1.csproj" />
</Folder>
<Project Path="templates/EPiServer.Templates.csproj" />
</Solution>
2 changes: 2 additions & 0 deletions templates/EPiServer.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
<Content Include="$(SolutionDir).gitignore" LinkBase="Alloy.Mvc" PackagePath="content\Alloy.Mvc" />
<Content Include="$(SolutionDir).gitignore" LinkBase="Cms.Empty" PackagePath="content\Cms.Empty" />
<Content Include="$(SolutionDir).gitignore" LinkBase="Commerce.Empty" PackagePath="content\Commerce.Empty" />
<Content Include="$(SolutionDir).gitignore" LinkBase="Stride.Mvc" PackagePath="content\Stride.Mvc" />

<Content Include="$(SolutionDir)shared\icon.png" LinkBase="Alloy.Mvc\.template.config" PackagePath="content\Alloy.Mvc\.template.config" />
<Content Include="$(SolutionDir)shared\icon.png" LinkBase="Cms.Empty\.template.config" PackagePath="content\Cms.Empty\.template.config" />
<Content Include="$(SolutionDir)shared\icon.png" LinkBase="Commerce.Empty\.template.config" PackagePath="content\Commerce.Empty\.template.config" />
<Content Include="$(SolutionDir)shared\icon.png" LinkBase="Stride.Mvc\.template.config" PackagePath="content\Stride.Mvc\.template.config" />
</ItemGroup>

<!-- Include everything but do not compile anything when packing the templates -->
Expand Down
4 changes: 4 additions & 0 deletions templates/Stride.Mvc/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These variables are used for passing values into docker-compose.yml and the containers
SA_PASSWORD=Qwerty12345!
DB_NAME=Stride.Mvc.1
DB_DIRECTORY=Stride.Mvc.1
12 changes: 12 additions & 0 deletions templates/Stride.Mvc/.template.config/dotnetcli.host.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"symbolInfo": {
"enableDocker": {
"longName": "enable-docker",
"shortName": ""
},
"saPassword": {
"longName": "sa-password",
"shortName": ""
}
}
}
55 changes: 55 additions & 0 deletions templates/Stride.Mvc/.template.config/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Episerver AB",
"sourceName": "Stride.Mvc.1",
"classifications": [ "Web" ],
"identity": "EPiServer.Templates.Stride.Mvc",
"name": "Optimizely Stride MVC",
"shortName": "epi-stride-mvc",
"description": "Modern CMS template with Visual Builder, Tailwind CSS, and traditional page/block patterns for Optimizely CMS.",
"tags": {
"language": "C#",
"type": "project"
},
"sources": [
{
"modifiers": [
{
"condition": "(!enableDocker)",
"exclude": [
"Directory.Build.props",
"docker-compose.yml",
"Docker/**/*",
".env"
]
},
{
"exclude": [
"node_modules/**",
"bin/**",
"obj/**",
"modules/**",
"package-lock.json"
]
}
]
}
],
"symbols": {
"enableDocker": {
"type": "parameter",
"datatype": "bool",
"defaultValue": "false",
"displayName": "Enable Docker support",
"description": "Enable Docker support"
},
"saPassword": {
"type": "parameter",
"datatype": "string",
"defaultValue": "Qwerty12345!",
"displayName": "Password SA database account",
"description": "The password the SA database account should have",
"replaces": "Qwerty12345!"
}
}
}
Binary file not shown.
Binary file not shown.
Loading
Loading