Skip to main content

TemplateConfig

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

Index

Properties

optional$schema

$schema?: string = ```ts 'https://moonrepo.dev/schemas/template.json' ```

description

description: string

A description on what the template scaffolds.

destination

destination: null | string

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

extends

extends: string[]

Extends one or many other templates.

id

id: null | string

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

title

title: string

A human-readable title for the template.

variables

variables: Record<string, TemplateVariable>

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