File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,19 @@ program
11
11
. usage ( '<command> [options]' )
12
12
13
13
program
14
- . command ( 'dev < targetDir> ' )
14
+ . command ( 'dev [ targetDir] ' )
15
15
. description ( 'start development server' )
16
16
. option ( '-p, --port <port>' , 'use specified port (default: 8080)' )
17
- . action ( ( dir , { port } ) => {
17
+ . action ( ( dir = '.' , { port } ) => {
18
18
wrapCommand ( dev ) ( path . resolve ( dir ) , { port } )
19
19
} )
20
20
21
21
program
22
- . command ( 'build < targetDir> ' )
22
+ . command ( 'build [ targetDir] ' )
23
23
. description ( 'build dir as static site' )
24
24
. option ( '-d, --dest <outDir>' , 'specify build output dir (default: .vuepress/dist)' )
25
25
. option ( '--debug' , 'build in development mode for debugging' )
26
- . action ( ( dir , { debug, outDir } ) => {
26
+ . action ( ( dir = '.' , { debug, outDir } ) => {
27
27
wrapCommand ( build ) ( path . resolve ( dir ) , { debug, outDir } )
28
28
} )
29
29
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ npm install -g vuepress
23
23
echo " # Hello VuePress" > README.md
24
24
25
25
# start writing
26
- vuepress dev .
26
+ vuepress dev
27
27
28
28
# build to static files
29
- vuepress build .
29
+ vuepress build
30
30
```
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ npm install -g vuepress
12
12
echo " # Hello VuePress" > README.md
13
13
14
14
# start writing
15
- vuepress dev .
15
+ vuepress dev
16
16
17
17
# build
18
- vuepress build .
18
+ vuepress build
19
19
```
20
20
21
21
## Inside an Existing Project
You can’t perform that action at this time.
0 commit comments