mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-14 19:30:14 -06:00
chore: move add before invoke in commands
This commit is contained in:
@@ -46,14 +46,6 @@ program
|
||||
require('../lib/create')(name, cleanArgs(cmd))
|
||||
})
|
||||
|
||||
program
|
||||
.command('invoke <plugin> [pluginOptions]')
|
||||
.allowUnknownOption()
|
||||
.description('invoke the generator of a plugin in an already created project')
|
||||
.action((plugin) => {
|
||||
require('../lib/invoke')(plugin, minimist(process.argv.slice(3)))
|
||||
})
|
||||
|
||||
program
|
||||
.command('add <plugin> [pluginOptions]')
|
||||
.allowUnknownOption()
|
||||
@@ -62,6 +54,14 @@ program
|
||||
require('../lib/add')(plugin, minimist(process.argv.slice(3)))
|
||||
})
|
||||
|
||||
program
|
||||
.command('invoke <plugin> [pluginOptions]')
|
||||
.allowUnknownOption()
|
||||
.description('invoke the generator of a plugin in an already created project')
|
||||
.action((plugin) => {
|
||||
require('../lib/invoke')(plugin, minimist(process.argv.slice(3)))
|
||||
})
|
||||
|
||||
program
|
||||
.command('inspect [paths...]')
|
||||
.option('--mode <mode>')
|
||||
|
||||
Reference in New Issue
Block a user