@@ -59,29 +59,29 @@ program
5959
6060program
6161 . command ( 'add <plugin> [pluginOptions]' )
62- . allowUnknownOption ( )
6362 . description ( 'install a plugin and invoke its generator in an already created project' )
63+ . allowUnknownOption ( )
6464 . action ( ( plugin ) => {
6565 require ( '../lib/add' ) ( plugin , minimist ( process . argv . slice ( 3 ) ) )
6666 } )
6767
6868program
6969 . command ( 'invoke <plugin> [pluginOptions]' )
70- . allowUnknownOption ( )
7170 . description ( 'invoke the generator of a plugin in an already created project' )
71+ . allowUnknownOption ( )
7272 . action ( ( plugin ) => {
7373 require ( '../lib/invoke' ) ( plugin , minimist ( process . argv . slice ( 3 ) ) )
7474 } )
7575
7676program
7777 . command ( 'inspect [paths...]' )
78+ . description ( 'inspect the webpack config in a project with vue-cli-service' )
7879 . option ( '--mode <mode>' )
7980 . option ( '--rule <ruleName>' , 'inspect a specific module rule' )
8081 . option ( '--plugin <pluginName>' , 'inspect a specific plugin' )
8182 . option ( '--rules' , 'list all module rule names' )
8283 . option ( '--plugins' , 'list all plugin names' )
8384 . option ( '-v --verbose' , 'Show full function definitions in output' )
84- . description ( 'inspect the webpack config in a project with vue-cli-service' )
8585 . action ( ( paths , cmd ) => {
8686 require ( '../lib/inspect' ) ( paths , cleanArgs ( cmd ) )
8787 } )
@@ -97,21 +97,21 @@ program
9797
9898program
9999 . command ( 'build [entry]' )
100+ . description ( 'build a .js or .vue file in production mode with zero config' )
100101 . option ( '-t, --target <target>' , 'Build target (app | lib | wc | wc-async, default: app)' )
101102 . option ( '-n, --name <name>' , 'name for lib or web-component mode (default: entry filename)' )
102103 . option ( '-d, --dest <dir>' , 'output directory (default: dist)' )
103- . description ( 'build a .js or .vue file in production mode with zero config' )
104104 . action ( ( entry , cmd ) => {
105105 loadCommand ( 'build' , '@vue/cli-service-global' ) . build ( entry , cleanArgs ( cmd ) )
106106 } )
107107
108108program
109109 . command ( 'ui' )
110+ . description ( 'start and open the vue-cli ui' )
110111 . option ( '-p, --port <port>' , 'Port used for the UI server (by default search for awailable port)' )
111112 . option ( '-D, --dev' , 'Run in dev mode' )
112113 . option ( '--quiet' , `Don't output starting messages` )
113114 . option ( '--headless' , `Don't open browser on start and output port` )
114- . description ( 'start and open the vue-cli ui' )
115115 . action ( ( cmd ) => {
116116 checkNodeVersion ( '>=8.6' , 'vue ui' )
117117 require ( '../lib/ui' ) ( cleanArgs ( cmd ) )
0 commit comments