Peachpie project templates.
Перейти к файлу
Jakub Míšek 0f2a0117a3 v1.1.2 2022-10-08 19:09:32 +02:00
build version number variable 2017-12-12 14:33:24 +01:00
src v1.1.2 2022-10-08 19:09:32 +02:00
tests Improve test script. 2017-07-29 14:50:36 +02:00
tools Initial nuget packaging work. 2017-04-23 15:21:36 +02:00
.gitattributes 🎪 Added .gitattributes 2017-04-23 02:58:20 +02:00
.gitignore Add launch settings 2021-08-25 14:38:08 +02:00
myget.ps1 version number variable 2017-12-12 14:33:24 +01:00
readme.md Update readme.md 2019-05-24 14:08:17 +02:00

readme.md

PeachPie Templates

This repository contains various dotnet project templates to be used for creating PeachPie compiled applications.

Using templates

  1. Install peachpie templates via: dotnet new -i "Peachpie.Templates::*"
  2. Create a project based on chosen template e.g.: dotnet new console -lang PHP
  3. Restore packages for the newly created project: dotnet restore
  4. 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:

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
  • After invoking the build script your template should be listed among dotnet new -all