UNPKG

@curvenote/cli

Version:
72 lines (71 loc) 1.73 kB
function title(opts) { return { name: 'title', type: 'input', message: 'What is the title of your website?', default: opts.title, }; } function content(opts) { return { name: 'content', type: 'list', message: 'What content would you like to use?', choices: [ { name: 'Import from Curvenote', value: 'curvenote', }, { name: 'Use the content & notebooks in this folder', value: 'folder', disabled: opts.folderIsEmpty, }, { name: 'Show me some demo content!', value: 'demo', disabled: true, }, ], }; } function projectLink(opts) { return { name: 'projectLink', message: 'Link to Curvenote project:', type: 'input', default: (opts === null || opts === void 0 ? void 0 : opts.projectLink) || 'https://curvenote.com/@templates/web', }; } function projectPath(path) { return { name: 'projectPath', message: `Project will be cloned into "${path}" and existing files overwritten. Are you sure?`, type: 'confirm', default: true, }; } function start() { return { name: 'start', message: `Would you like to start a local server now?`, type: 'confirm', default: true, }; } function pull() { return { name: 'pull', message: 'Would you like to pull content now?', type: 'confirm', default: true, }; } export default { title, content, projectLink, projectPath, start, pull, };