@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
23 lines (22 loc) • 702 B
TypeScript
import { LiveReloadConfig, LiveReloadServer } from './types';
export declare class FoundryLiveReloadServer implements LiveReloadServer {
private httpServer;
private wsServer;
private clients;
private running;
private config;
constructor(config: LiveReloadConfig);
start(): Promise<void>;
stop(): Promise<void>;
notifyReload(changedFiles?: string[]): void;
getUrl(): string;
isServerRunning(): boolean;
private startHttpServer;
private startLiveReloadServer;
private handleHttpRequest;
private resolveFilePath;
private getContentType;
private getLiveReloadScript;
private shouldLiveReloadCSS;
private shouldLiveReloadImages;
}