2019-01-22 19:52:43 +00:00
|
|
|
import { defaultNuxtConfigFile } from '@nuxt/config'
|
2018-11-22 15:48:26 +00:00
|
|
|
import { normalizeArg } from '../utils'
|
|
|
|
|
2018-10-29 22:16:16 +00:00
|
|
|
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',
|
2019-01-22 19:52:43 +00:00
|
|
|
default: defaultNuxtConfigFile,
|
|
|
|
description: `Path to Nuxt.js config file (default: \`${defaultNuxtConfigFile}\`)`
|
2018-10-29 22:16:16 +00:00
|
|
|
},
|
2018-11-07 23:37:06 +00:00
|
|
|
modern: {
|
|
|
|
alias: 'm',
|
|
|
|
type: 'string',
|
|
|
|
description: 'Build/Start app for modern browsers, e.g. server, client and false',
|
|
|
|
prepare(cmd, options, argv) {
|
2018-11-08 09:18:56 +00:00
|
|
|
if (argv.modern !== undefined) {
|
2018-11-22 15:48:26 +00:00
|
|
|
options.modern = normalizeArg(argv.modern)
|
2018-11-07 23:37:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-10-29 22:16:16 +00:00
|
|
|
version: {
|
2018-12-20 11:15:48 +00:00
|
|
|
alias: 'v',
|
2018-10-29 22:16:16 +00:00
|
|
|
type: 'boolean',
|
|
|
|
description: 'Display the Nuxt version'
|
|
|
|
},
|
|
|
|
help: {
|
|
|
|
alias: 'h',
|
|
|
|
type: 'boolean',
|
|
|
|
description: 'Display this message'
|
|
|
|
}
|
|
|
|
}
|