myst-cli
Version:
Command line tools for MyST
32 lines • 1.09 kB
TypeScript
import type child_process from 'child_process';
import type { ProcessSiteOptions } from '../../process/site.js';
import type { ISession } from '../../session/types.js';
type ServerOptions = {
serverPort?: number;
};
export type StartOptions = ProcessSiteOptions & ServerOptions & {
buildStatic?: boolean;
headless?: boolean;
port?: number;
template?: string;
baseurl?: string;
keepHost?: boolean;
};
/**
* Creates a content server and a websocket that can reload and log messages to the client.
*/
export declare function startContentServer(session: ISession, opts?: ServerOptions): Promise<{
port: number;
reload: () => void;
log: (message: string) => void;
stop: () => void;
}>;
export declare function warnOnHostEnvironmentVariable(session: ISession, opts?: StartOptions): void;
export type AppServer = {
port: number;
process: child_process.ChildProcess;
stop: () => void;
};
export declare function startServer(session: ISession, opts: StartOptions): Promise<AppServer | undefined>;
export {};
//# sourceMappingURL=start.d.ts.map