This repository contains various dotnet
project templates to be used for creating PeachPie compiled applications.
- 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.
- .NET Core SDK 2.1
- PowerShell (only for building)
- 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
- 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