import { defaultNuxtConfigFile } from '@nuxt/config' import { normalizeArg } from '../utils' export default { spa: { alias: 's', type: 'boolean', description: 'Launch in SPA mode' }, universal: { alias: 'u', type: 'boolean', description: 'Launch in Universal mode (default)' }, 'config-file': { alias: 'c', type: 'string', default: defaultNuxtConfigFile, description: `Path to Nuxt.js config file (default: \`${defaultNuxtConfigFile}\`)` }, modern: { alias: 'm', type: 'string', description: 'Build/Start app for modern browsers, e.g. server, client and false', prepare(cmd, options, argv) { if (argv.modern !== undefined) { options.modern = normalizeArg(argv.modern) } } }, version: { alias: 'v', type: 'boolean', description: 'Display the Nuxt version' }, help: { alias: 'h', type: 'boolean', description: 'Display this message' } }