Skip to main content

TemplateConfig

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

Index

Properties

$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.

extends

extends: string[]

Extends one or many other templates.

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.