@vitjs/core
Version:
@vitjs/core
34 lines (33 loc) • 926 B
TypeScript
import Route from '../Route';
import type { RouteOptions } from '../Route';
export interface ServiceOptions extends Omit<RouteOptions, 'paths' | 'service'> {
debug?: boolean;
cwd: string;
outDir: string;
}
export default class Service {
_customApps: string[];
debug?: boolean;
paths: {
cwd?: string;
absSrcPath?: string;
absPagesPath?: string;
absOutputPath?: string;
absTmpPath?: string;
};
route: Route;
constructor(options: ServiceOptions);
initPaths(options: ServiceOptions): void;
getCustomApp(): string | undefined;
getReactVersion(): string;
writeFile({ path, content }: {
path: string;
content: string;
}): void;
writeTmpFile({ path, content, skipTSCheck }: {
path: string;
content: string;
skipTSCheck?: boolean;
}): void;
dumpGlobalImports(files: string[]): string;
}