@@ -59,29 +59,29 @@ program
59
59
60
60
program
61
61
. command ( 'add <plugin> [pluginOptions]' )
62
- . allowUnknownOption ( )
63
62
. description ( 'install a plugin and invoke its generator in an already created project' )
63
+ . allowUnknownOption ( )
64
64
. action ( ( plugin ) => {
65
65
require ( '../lib/add' ) ( plugin , minimist ( process . argv . slice ( 3 ) ) )
66
66
} )
67
67
68
68
program
69
69
. command ( 'invoke <plugin> [pluginOptions]' )
70
- . allowUnknownOption ( )
71
70
. description ( 'invoke the generator of a plugin in an already created project' )
71
+ . allowUnknownOption ( )
72
72
. action ( ( plugin ) => {
73
73
require ( '../lib/invoke' ) ( plugin , minimist ( process . argv . slice ( 3 ) ) )
74
74
} )
75
75
76
76
program
77
77
. command ( 'inspect [paths...]' )
78
+ . description ( 'inspect the webpack config in a project with vue-cli-service' )
78
79
. option ( '--mode <mode>' )
79
80
. option ( '--rule <ruleName>' , 'inspect a specific module rule' )
80
81
. option ( '--plugin <pluginName>' , 'inspect a specific plugin' )
81
82
. option ( '--rules' , 'list all module rule names' )
82
83
. option ( '--plugins' , 'list all plugin names' )
83
84
. option ( '-v --verbose' , 'Show full function definitions in output' )
84
- . description ( 'inspect the webpack config in a project with vue-cli-service' )
85
85
. action ( ( paths , cmd ) => {
86
86
require ( '../lib/inspect' ) ( paths , cleanArgs ( cmd ) )
87
87
} )
@@ -97,21 +97,21 @@ program
97
97
98
98
program
99
99
. command ( 'build [entry]' )
100
+ . description ( 'build a .js or .vue file in production mode with zero config' )
100
101
. option ( '-t, --target <target>' , 'Build target (app | lib | wc | wc-async, default: app)' )
101
102
. option ( '-n, --name <name>' , 'name for lib or web-component mode (default: entry filename)' )
102
103
. option ( '-d, --dest <dir>' , 'output directory (default: dist)' )
103
- . description ( 'build a .js or .vue file in production mode with zero config' )
104
104
. action ( ( entry , cmd ) => {
105
105
loadCommand ( 'build' , '@vue/cli-service-global' ) . build ( entry , cleanArgs ( cmd ) )
106
106
} )
107
107
108
108
program
109
109
. command ( 'ui' )
110
+ . description ( 'start and open the vue-cli ui' )
110
111
. option ( '-p, --port <port>' , 'Port used for the UI server (by default search for awailable port)' )
111
112
. option ( '-D, --dev' , 'Run in dev mode' )
112
113
. option ( '--quiet' , `Don't output starting messages` )
113
114
. option ( '--headless' , `Don't open browser on start and output port` )
114
- . description ( 'start and open the vue-cli ui' )
115
115
. action ( ( cmd ) => {
116
116
checkNodeVersion ( '>=8.6' , 'vue ui' )
117
117
require ( '../lib/ui' ) ( cleanArgs ( cmd ) )
0 commit comments