mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 15:00:09 +02:00
fix(v2): Fixes serve cli --port option (#3531)
* fix(v2): Fixes serve cli --port option * refactor a bit the start/serve cli options management Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
f29da4ba77
commit
10973476ff
6 changed files with 53 additions and 26 deletions
16
packages/docusaurus-types/src/index.d.ts
vendored
16
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -91,13 +91,21 @@ export type PresetConfig =
|
|||
| [string]
|
||||
| string;
|
||||
|
||||
export interface StartCLIOptions {
|
||||
port: string;
|
||||
host: string;
|
||||
export type HostPortCLIOptions = {
|
||||
host?: string;
|
||||
port?: string;
|
||||
};
|
||||
|
||||
export type StartCLIOptions = HostPortCLIOptions & {
|
||||
hotOnly: boolean;
|
||||
open: boolean;
|
||||
poll: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
export type ServeCLIOptions = HostPortCLIOptions & {
|
||||
build: boolean;
|
||||
dir: string;
|
||||
};
|
||||
|
||||
export interface BuildCLIOptions {
|
||||
bundleAnalyzer: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue