templates-mo
Version:
Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting
37 lines (35 loc) • 872 B
JavaScript
// @ts-check
/** @type {import('../../src/types/settings').SettingsFile} */
module.exports = {
prompts: [
{
name: 'type',
type: 'list',
tpsType: 'package',
message: 'What type of settings file do you want?',
description: 'Type of settings file you want generated',
choices: ['js', 'json'],
hidden: true,
default: 'json',
},
{
name: 'annotate',
type: 'confirm',
tpsType: 'data',
message:
'Do you want to include helpful comments and examples to help you get started?',
description:
'Generates more verbose comments and examples in the output to help users get started',
default: true,
},
{
name: 'experimental',
type: 'confirm',
tpsType: 'data',
message: 'Would you like to enable experimental features?',
description: 'Use experimental features',
hidden: true,
default: false,
},
],
};