-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds order managers mapped role * Add content type item template (#17) * Add Content Type item template * Update README with additional details (#19) Also fix parameter spelling error * Add scheduled job item template (#20) * Add Initialization Module item template (#18) * Add Initialization Module item template * correct parameter name * Add Page Controller template (#23) * Add Content Component template (#24) * Razor page item template (#25) * Add Razor Page Item template * Fix some copy/paste naming errors * List all item templates (#26) * Publish CI packages to GitHub Packages (#27) * Publish CI packages to GitHub Packages * Supress .NET welcome msg during builds * Add license expression to package (#28) * Updates CMS to latest (#30) * Various bugfixes (#31) * Fixes broken link in content * Makes section handling more resilient Now handles created below root directly. * Increases timeout for database creation * Updates the version * Reverts to 1.1 since this will be next release (#32) * Delete old package versions (#29) * Delete old package versions. Keep 10 versions * Split cleanup into separate step * Fixes inconsistent file naming on disk and code files (#35) The template engine replaces whitespace with - in filenames and _ in text files. That means db filenames on disk doesn't match the names in the connection strings. We need to use unambiguous source names, so unfortunately we end up with ugly project names and namespaces. But this ensures everything gets replaced correctly, see https://github.com/dotnet/templating/wiki/Naming-and-default-value-forms. Added restart on failure in Docker compose. Services are just started in correct order, but do not wait until they are ready. The db might take time to set up first time on a slow machine, then the web fails and you have to 'docker up' again. There is no nice way to achieve this in another way, other than making the app itself more resilient. Also updated with our v3 NuGet feed. Co-authored-by: Henrik Nystrom <[email protected]> Co-authored-by: Henrik Nystrom <[email protected]>
- Loading branch information
1 parent
da2b561
commit 1e2a28e
Showing
147 changed files
with
780 additions
and
209 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,59 @@ | ||
# Optimizely Templates | ||
# Optimizely Templates for .NET | ||
|
||
[![Continuous integration](https://github.com/episerver/content-templates/actions/workflows/ci.yml/badge.svg)](https://github.com/episerver/content-templates/actions/workflows/ci.yml) | ||
|
||
## Available templates | ||
- epi-alloy-mvc | ||
- epi-cms-empty | ||
- epi-commerce-empty | ||
This repository contains templates for Optimizely Digital Experience Cloud to be used with `dotnet new` and Visual Studio 2022. | ||
|
||
The templates in this repository are distributed as a NuGet package available from [NuGet.org](https://www.nuget.org/packages/EPiServer.Templates/) and can be installed using the `dotnet new` command. | ||
|
||
```bash | ||
$ dotnet new -i EPiServer.Templates | ||
``` | ||
|
||
Once installed, these templates will also be available in Visual Studio 2022. | ||
Note that Visual Studio currently only supports *Project Templates* and not *Item Templates*. | ||
|
||
To generate code based on the template simply execute the following. | ||
|
||
## Installation | ||
```bash | ||
$ dotnet new -i EPiServer.Templates --force | ||
$ dotnet new epi-alloy-mvc | ||
``` | ||
It's also possible to download the source code or clone this repository and then run each template as a regular project. | ||
|
||
## Update | ||
Replace `epi-alloy-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 --update-apply | ||
$ dotnet new epi-alloy-mvc --help | ||
``` | ||
|
||
For further documentation on how to work with `dotnet new` see https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new. | ||
|
||
## Available templates | ||
|
||
The following templates are included in this repository and available through the `EPiServer.Templates` package. | ||
|
||
### Project Templates | ||
|
||
- epi-alloy-mvc | ||
- epi-cms-empty | ||
- epi-commerce-empty | ||
|
||
|
||
### Item Templates | ||
|
||
- epi-cms-contentcomponent | ||
- epi-cms-contenttype | ||
- epi-cms-initializationmodule | ||
- epi-cms-job | ||
- epi-cms-pagecontroller | ||
- epi-cms-razorpage | ||
|
||
## Contributing | ||
|
||
We would love community contributions here. The easiest way to contribute is to join in with the discussions on Github issues or create new issues with questions, suggestions or any other feedback. | ||
If you want to contribute code or documentation, you are more than welcome to create pull-requests, but make sure that you read the [contribution page](CONTRIBUTING.md) first. | ||
|
||
## License | ||
|
||
This project is licensed with the [Apache license](LICENSE.md) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<!-- This file may be overwritten by automation. Only values allowed here are VersionPrefix and VersionSuffix. --> | ||
<Project> | ||
<PropertyGroup> | ||
<VersionPrefix>1.0.0</VersionPrefix> | ||
<VersionPrefix>1.1.0</VersionPrefix> | ||
<VersionSuffix Condition="'$(Configuration)' == 'Debug'">devbuild</VersionSuffix> | ||
</PropertyGroup> | ||
</Project> |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"symbolInfo": { | ||
"enablelDocker": { | ||
"enableDocker": { | ||
"longName": "enable-docker", | ||
"shortName": "" | ||
}, | ||
|
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
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
File renamed without changes.
Binary file modified
BIN
+48 Bytes
(100%)
templates/Alloy.Mvc/App_Data/DefaultSiteContent.episerverdata
Binary file not shown.
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.