mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 11:35:28 +00:00
45 lines
801 B
TypeScript
45 lines
801 B
TypeScript
import * as child_process from 'child_process';
|
|
import { CompileResult } from '../core/create_compilers';
|
|
|
|
export type ReadyEvent = {
|
|
port: number;
|
|
process: child_process.ChildProcess;
|
|
};
|
|
|
|
export type ErrorEvent = {
|
|
type: string;
|
|
message: string;
|
|
};
|
|
|
|
export type FatalEvent = {
|
|
message: string;
|
|
log?: string;
|
|
};
|
|
|
|
export type InvalidEvent = {
|
|
changed: string[];
|
|
invalid: {
|
|
client: boolean;
|
|
server: boolean;
|
|
serviceworker: boolean;
|
|
}
|
|
};
|
|
|
|
export type BuildEvent = {
|
|
type: string;
|
|
errors: Array<{ file: string, message: string, duplicate: boolean }>;
|
|
warnings: Array<{ file: string, message: string, duplicate: boolean }>;
|
|
duration: number;
|
|
result: CompileResult;
|
|
}
|
|
|
|
export type FileEvent = {
|
|
file: string;
|
|
size: number;
|
|
}
|
|
|
|
export type FailureEvent = {
|
|
|
|
}
|
|
|
|
export type DoneEvent = {} |