UNPKG

create-cttq

Version:

CTTQ大前端脚手架项目

23 lines (21 loc) 823 B
module.exports = function(cli) { cli.addQuestions([{ // type: () => answers.appEnv != "out" ? "multiselect" : null, // name: "capability", // message: "选择接入的能力", // choices: [ // { title: "监控", value: "monitor" }, // { title: "埋点", value: "sensors" }, // ], // min: 0, // // hint: "- 用 Space / ← / → 键 来切换选择/取消状态,用 ↑ ↓ 切换问题。回车 确认", // instructions: "\n ↑/↓: 高亮可选项\n ←/→/[space]: 切换选择/取消状态\n a: 全选\n enter/return: 确认选择", // onState: (state) => { // cli.answers.capability = state.value; // }, }]); return; } module.exports.apply = { after: ["base", "cttq", "app"], }