jmayntzhusen / Package.Templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Umbraco Package Templates

This repository contains some templates for starting new Umbraco package projects.

The templates can be used via the dotnet new command.

Pre-requisite

You must be using Visual Studio 2019 to work with these templates.

Installation

You can install all the templates from a NuGet package:

dotnet new -i Umbraco.Tools.Packages.Templates

Updating

To check for any updates you can run the dotnet new --update-check command.

The dotnet new --update-apply command will update any of the installed template packages you have installed.

Usage

All Umbraco package templates are prefixed umbraco-. To see what Umbraco related templates you have installed:

dotnet new umbraco -l

You can get a list of all available templates in the docs

Example: To start a new package project

Supply the name of the project on the command line, this will setup the namespaces and folders within the project:

dotnet new umbraco-v8-package -n MySuperNewPackage

Contributing

Contributions are welcome! Please read our Contribution Guidelines for the steps to add new templates.

Developing your own templates

If you want to develop/extend these templates for your own use you should install them individually from your source folder. For example:

dotnet new -i c:\source\Package.Templates\ItemTemplates\Dashboard

About

License:MIT License


Languages

Language:HTML 42.4%Language:JavaScript 32.2%Language:C# 16.1%Language:ASP.NET 9.4%