mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 11:35:28 +00:00
44 lines
712 B
TypeScript
44 lines
712 B
TypeScript
import * as child_process from 'child_process';
|
|
|
|
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<{ message: string, duplicate: boolean }>;
|
|
warnings: Array<{ message: string, duplicate: boolean }>;
|
|
duration: number;
|
|
webpack_stats: any;
|
|
}
|
|
|
|
export type FileEvent = {
|
|
file: string;
|
|
size: number;
|
|
}
|
|
|
|
export type FailureEvent = {
|
|
|
|
}
|
|
|
|
export type DoneEvent = {} |