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:
Joshua Chen 2022-05-03 15:32:12 +08:00 committed by GitHub
parent 5bed55aeda
commit c7a5af7c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 92 additions and 100 deletions

View file

@ -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;