mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 16:29:47 +02:00
refactor(core): collocate CLI commands and their option types (#7292)
* refactor(core): collocate CLI commands and their option types * fixes
This commit is contained in:
parent
5bed55aeda
commit
c7a5af7c4d
13 changed files with 92 additions and 100 deletions
31
packages/docusaurus-types/src/index.d.ts
vendored
31
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -410,37 +410,6 @@ export type DocusaurusContext = {
|
|||
// isBrowser: boolean; // Not here on purpose!
|
||||
};
|
||||
|
||||
export type HostPortCLIOptions = {
|
||||
host?: string;
|
||||
port?: string;
|
||||
};
|
||||
|
||||
export type ConfigOptions = {
|
||||
config: string;
|
||||
};
|
||||
|
||||
export type StartCLIOptions = HostPortCLIOptions &
|
||||
ConfigOptions & {
|
||||
hotOnly: boolean;
|
||||
open: boolean;
|
||||
poll: boolean | number;
|
||||
locale?: string;
|
||||
};
|
||||
|
||||
export type ServeCLIOptions = HostPortCLIOptions &
|
||||
ConfigOptions & {
|
||||
dir: string;
|
||||
build: boolean;
|
||||
};
|
||||
|
||||
export type BuildCLIOptions = ConfigOptions & {
|
||||
bundleAnalyzer: boolean;
|
||||
outDir: string;
|
||||
minify: boolean;
|
||||
skipBuild: boolean;
|
||||
locale?: string;
|
||||
};
|
||||
|
||||
export type LoadContext = {
|
||||
siteDir: string;
|
||||
generatedFilesDir: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue