Skip to content

Instantly share code, notes, and snippets.

@dagda1

dagda1/config.ts

Created Jun 13, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.