generator-begcode
Version:
Spring Boot + Angular/React/Vue in one handy generator
28 lines (27 loc) • 759 B
JavaScript
import { BASE_NAME_DESCRIPTION } from './constants.js';
const command = {
configs: {
defaultBaseName: {
internal: true,
scope: 'generator',
},
validateBaseName: {
internal: true,
scope: 'generator',
},
baseName: {
description: BASE_NAME_DESCRIPTION,
cli: {
type: String,
},
prompt: gen => ({
type: 'input',
validate: input => gen.validateBaseName(input),
message: 'What is the base name of your application?',
default: () => gen.defaultBaseName(),
}),
scope: 'storage',
},
},
};
export default command;