UNPKG

@liftr/cli

Version:

The Liftr CLI provides scaffolding for the Liftr framework

25 lines (24 loc) 860 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var component_content_1 = require("../component-content"); var creation_factory_1 = require("../create/creation-factory"); var config = { content: component_content_1.routeContent, dependentComponents: [], extraQuestions: function (moduleList) { return [ { message: 'What type of route do you want to create?', name: 'selectedAnswerOne', type: 'list', choices: ['get', 'post', 'patch', 'delete', 'put'], }, { message: 'Which module would you like to insert in', name: 'selectedAnswerTwo', type: 'list', choices: moduleList.slice(), }, ]; }, insertFunction: creation_factory_1.findModuleAndInsertComponents, }; module.exports = config;