Created
June 13, 2020 06:23
-
-
Save dagda1/b5645406f4a91ff64b9564fc93e68656 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CompilerOptions } from 'typescript'; | |
export type DeepPartial<T> = T extends object ? { [K in keyof T]?: DeepPartial<T[K]> } : T; | |
export interface FullBuildConfig { | |
client: { | |
entries: string; | |
hotReloading: boolean; | |
publicPath: string; | |
}; | |
server: { | |
entries: string; | |
filename: string; | |
bail: boolean; | |
progress: boolean; | |
}; | |
ts: { | |
tsconfig: string; | |
src: string[]; | |
options: { | |
verbose: boolean; | |
outDir: string; | |
}; | |
}; | |
node: { | |
entries: string; | |
filename: string; | |
externals: string[]; | |
}; | |
devServer: { | |
entries: string; | |
devServer: boolean; | |
isStaticBuild: boolean; | |
publicDir: string; | |
publicPath: string; | |
typescriptOptions: CompilerOptions; | |
}; | |
} | |
export type BuildConfig = DeepPartial<FullBuildConfig>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment