mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-18 11:45:11 +00:00
19287cce96
* add commands/help * simply cmds in run() * refinement * simply cmds in run() (2) * simply cmds in run() (3) * lint * cmd.showHelp() * check for cmd / uknown cmd * final fix * fixes * remove Set * Add NuxtCommand.load() * updated tests * lint
41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`cli/command builds help text 1`] = `
|
|
" Usage: nuxt this is how you do it [options]
|
|
|
|
a very long description that should not wrap to the next line because is not longer than the terminal width
|
|
|
|
Options:
|
|
|
|
--spa, -s Launch in SPA mode
|
|
--universal, -u Launch in Universal mode (default)
|
|
--config-file, -c Path to Nuxt.js config file (default: nuxt.config.js)
|
|
--version Display the Nuxt version
|
|
--help, -h Display this message
|
|
--port, -p Port number on which to start the application
|
|
--hostname, -H Hostname on which to start the application
|
|
--unix-socket, -n Path to a UNIX socket
|
|
--foo very long option that is not longer than the terminal width and should not wrap to the next line
|
|
|
|
"
|
|
`;
|
|
|
|
exports[`cli/command loads command from name 1`] = `
|
|
" Usage: nuxt dev <dir> [options]
|
|
|
|
Start the application in development mode (e.g. hot-code reloading, error reporting)
|
|
|
|
Options:
|
|
|
|
--spa, -s Launch in SPA mode
|
|
--universal, -u Launch in Universal mode (default)
|
|
--config-file, -c Path to Nuxt.js config file (default: nuxt.config.js)
|
|
--version Display the Nuxt version
|
|
--help, -h Display this message
|
|
--port, -p Port number on which to start the application
|
|
--hostname, -H Hostname on which to start the application
|
|
--unix-socket, -n Path to a UNIX socket
|
|
|
|
"
|
|
`;
|