Template Configuration
Type
interface TemplateConfig {
answers: TemplateConfigAnswers;
opts: TemplateConfigOptions;
}
Answers
Type
interface TemplateConfigAnswers {
[name: string]: any;
}
Object containing answers to prompts.
.tpsrc
{
"some-template": {
"answers": {
"<prompt-name>": "<prompt-value>"
}
}
}
Example
.tpsrc
{
"react-component": {
"answers": {
"css": true
}
}
}
Options
Type
interface TemplateConfigOptions {
[name: string]: any;
}
Object containing options for templates. See Template Option API for template options.
.tpsrc
{
"some-template": {
"opts": {
"<option-name>": "<option-value>"
}
}
}
Example
.tpsrc
{
"react-component": {
"opts": {
"wipe": true
}
}
}