siegel
Version:
Web application development ecosystem
36 lines (27 loc) • 800 B
TypeScript
import type { BuildConfig } from './client_build/types'
import type {
ServerConfig,
ServerExtenderFn, ExpressExtenderParams, HTTP2ExtenderParams
} from './server/types'
type ConfigObject = {
/** Siegel run modes */
runMode?: {
/** Should run server to host client */
isServer?: boolean
/** Should perform client build */
isBuild?: boolean
/** Is production mode */
isProd?: boolean
}
/** Client build output dir and static server public dir */
publicDir?: string
/** Webpack params */
build?: BuildConfig
/** Static server params */
server?: ServerConfig
}
type Config = ConfigObject | string
export type {
Config, ConfigObject,
ServerExtenderFn, ExpressExtenderParams, HTTP2ExtenderParams
}