@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
33 lines (32 loc) • 788 B
TypeScript
export interface LiveReloadConfig {
port?: number;
host?: string;
publicDir: string;
livereloadPort?: number;
enableLiveReload?: boolean;
}
export interface LiveReloadServer {
start(): Promise<void>;
stop(): Promise<void>;
notifyReload(changedFiles?: string[]): void;
getUrl(): string;
isServerRunning(): boolean;
}
export interface ReloadEvent {
command: 'reload' | 'alert' | 'hello';
path?: string;
liveCSS?: boolean;
liveImg?: boolean;
originalPath?: string;
overrideURL?: string;
protocols?: string[];
serverName?: string;
}
export interface LiveReloadState {
timestamp: number;
command: 'reload' | 'hello';
changedFiles?: string[];
liveCSS?: boolean;
liveImg?: boolean;
path?: string;
}