Source Code

Last Updated: 2018-10-22

If you want to get your hands on the latest version and/or maybe contribute to the project the best way is to fork the repo to your user account and get going.

Clone And Restore

Getting started with the source code is easy. After you've clone the repository, simply perform the following steps on your development machine.

> git clone <your repo here>
> cd piranha.core
> dotnet restore
> cd core/Piranha.Manager
> npm install
> bower install
> cd ../../
> cd examples/CoreWeb
> npm install
> bower install
> cd ../../

This process will restore all NuGet packages as well as all front-end libraries used by the manager and example project.

Build And Run

To run the project to can start the included example project. Please note that the example project is intended to be used for development, it's not a template, theme and is not in any way included as part of the distribution packages.

> cd examples/CoreWeb
> dotnet build
> dotnet run

Recompiling Assets

Both the manager and the example project uses Gulp to build front-end assets. This is the commands available for building assets.

Manager

> gulp min:css    // compiles and minifies stylesheets
> gulp min:js // combines and minifies javascripts
> gulp min:editor // compiles and minifies stylesheets used by the TinyMCE editor

Example Project

> gulp min:css    // compiles and minifies stylesheets
> gulp min:js // combines and minifies javascripts