Skip to content

docs: add dest option #1479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/docs/docs/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ See [port](../config/README.md#port).
### -t, --temp `<temp>`
See [temp](../config/README.md#temp).

### -c, --cache [cache]
### -c, --cache `[cache]`
### -no--cache
See [cache](../config/README.md#cache).

### --dest `<dest>`
See [dest](../config/README.md#dest).

### --debug
Start development server in debug mode.

Expand Down
7 changes: 5 additions & 2 deletions packages/docs/docs/zh/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ vuepress <command> targetDir [options]
### -t, --temp `<temp>`
查看 [temp](../config/README.md#temp)。

### -c, --cache [cache]
### -no--cache [cache]
### -c, --cache `[cache]`
### -no--cache
查看 [cache](../config/README.md#cache)。

### --dest `<dest>`
查看 [dest](../config/README.md#dest)。

### --debug
以调试模式启动开发服务器。

Expand Down
1 change: 1 addition & 0 deletions packages/vuepress/lib/registerCoreCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = function (cli, options) {
.option('-p, --port <port>', 'use specified port (default: 8080)')
.option('-t, --temp <temp>', 'set the directory of the temporary file')
.option('-c, --cache [cache]', 'set the directory of cache')
.option('--dest <dest>', 'the output directory for build process')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added it under build?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for my carelessness.

.option('--host <host>', 'use specified host (default: 0.0.0.0)')
.option('--no-cache', 'clean the cache before build')
.option('--no-clear-screen', 'do not clear screen when dev server is ready')
Expand Down