Skip to main content

PartialTemplateConfig

Configures a template and its files to be scaffolded. Docs: https://moonrepo.dev/docs/config/template

Index

Properties

optional$schema

$schema?: null | string = null | string

optionaldescription

description?: null | string

A description on what the template scaffolds.

optionaldestination

destination?: null | string

A pre-populated destination to scaffold to, relative from the workspace root when leading with /, otherwise the working directory.

optionalextends

extends?: null | string[]

Extends one or many other templates.

optionalid

id?: null | string

Overrides the ID of the template, instead of using the folder name.

optionaltitle

title?: null | string

A human-readable title for the template.

optionalvariables

variables?: null | Record<string, PartialTemplateVariable>

A mapping of variables that'll be interpolated within each template file. Variables can also be populated by passing command line arguments.