notes/quartz/util/ctx.ts

26 lines
494 B
TypeScript
Raw Normal View History

import { QuartzConfig } from "../cfg"
import { FilePath, FullSlug } from "./path"
2023-07-23 15:37:06 -07:00
export interface Argv {
directory: string
verbose: boolean
output: string
serve: boolean
watch: boolean
2023-07-23 15:37:06 -07:00
port: number
wsPort: number
remoteDevHost?: string
concurrency?: number
2023-07-23 15:37:06 -07:00
}
export interface BuildCtx {
buildId: string
2023-07-23 15:37:06 -07:00
argv: Argv
cfg: QuartzConfig
allSlugs: FullSlug[]
allFiles: FilePath[]
incremental: boolean
2023-07-23 15:37:06 -07:00
}
export type WorkerSerializableBuildCtx = Omit<BuildCtx, "cfg">