Files
Umbraco-CMS/templates/UmbracoExtension/.template.config
Jacob Overgaard df6a88b4d5 V15: Enable umbraco-extension client to auto-build (#18597)
* feat: adds autobuild of umbraco extensions created by the dotnet template

* adds file extensions to imports to follow the esmodule convention + apply formatting

* build(deps): upgrade hey-api, vite, typescript and generate new api

* chore: formatting

* clean up actions as client is now automatically being built when starting the site

* revert change with UMBRACO_VERSION_FROM_TEMPLATE

* revert if(includeExample)

* use template name

* use template name

* feat: update the way it sets the auth token

* add back in IncludeExample if

* fix: rename allowPackageTelemetry to allowTelemetry because that is what it is actually called

* `.csproj` amends

- Adds `BeforeTargets` to "BuildClient" target
- Adds "package.json" to "RestoreClient" target input
- Removes extra parameters from `npm i` command

---------

Co-authored-by: leekelleher <leekelleher@gmail.com>
2025-03-11 16:14:47 +00:00
..

Customising the umbraco-extension template

Source Name

The source name is set to Umbraco.Extension

The templating engine will rename any folder or file whose name contains Umbraco.Extension replacing it with the provided name.

The templating engine will replace the text in any file as follows:

  • Umbraco.Extension with the safe namespace for the provided name
  • Umbraco_Extension with the safe default class name for the provided name
  • umbraco.extension with the safe namespace for the provided name, in lower case
  • umbraco_extension with the safe default class name for the provided name, in lower case

Custom Replacements

The following custom placeholders have been configured in template.json:

  • UmbracoExtension will be replaced with the safe namespace but without . or _
  • umbracoextension will be replaced with the safe namespace but without . or _ , in lower case
  • umbraco-extension will be replaced with the kebab case transform of the provided name
  • Umbraco Extension will be replaced with a 'friendly' version of the provided name, e.g. MyProject > My Project. NB it will render a trailing space so you don't need to add one.

The first three custom placeholders have been configured to replace the text in both files and filenames.