9678cb8b52 | ||
---|---|---|
build | ||
src | ||
tests | ||
tools | ||
.gitattributes | ||
.gitignore | ||
myget.ps1 | ||
readme.md |
readme.md
PeachPie Templates
This repository contains various dotnet
project templates to be used for creating PeachPie compiled applications.
Using templates
- Install peachpie templates via:
dotnet new -i "Peachpie.Templates::*"
- Create a project based on chosen template e.g.:
dotnet new console -lang PHP
- Restore packages for the newly created project:
dotnet restore
- Run the project:
dotnet run
You need to install PeachPie templates only once. They get stored in ~HOME/.templateengine cache.
Prerequisites
- .NET Core SDK 2.1
- PowerShell (only for building)
Contributing templates & building
Adding a new template:
- Go to
./src/Content
- Create a new folder with name mathing the template's
shortName
- Fill the folder with all that is required for a template
Building & testing
- Invoke
.\build.ps1
which calls a build (1) and a test (2) script- 1: Packages all templates into a nuget package (see
/out/Peachpie.Templates.x.y.z.nupkg
) - 2: Installs the the templates package to current
.templateengine
cache - 2: Tries to create a project from each one, restore it, and build it
- 1: Packages all templates into a nuget package (see
- After invoking the build script your template should be listed among
dotnet new -all