Nuxt/packages/cli/src/options/common.js

38 lines
809 B
JavaScript
Raw Normal View History

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: 'nuxt.config.js',
2018-11-08 09:15:56 +00:00
description: 'Path to Nuxt.js config file (default: `nuxt.config.js`)'
},
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) {
options.modern = argv.modern
}
}
},
version: {
type: 'boolean',
description: 'Display the Nuxt version'
},
help: {
alias: 'h',
type: 'boolean',
description: 'Display this message'
}
}