defuss-ssg
Version:
A simple static site generator (SSG) built with defuss.
32 lines (26 loc) • 1.51 kB
text/typescript
import { R as RemarkPlugins, a as RehypePlugins, S as SsgConfig, B as BuildOptions, b as Status } from './types-BWD2Kt6_.js';
export { g as BuildMode, h as PluginFn, e as PluginFnPageDom, P as PluginFnPageHtml, d as PluginFnPageVdom, f as PluginFnPrePost, i as SsgPlugin, c as StatusCode } from './types-BWD2Kt6_.js';
import '@mdx-js/esbuild';
import 'defuss/server';
declare const remarkPlugins: RemarkPlugins;
declare const rehypePlugins: RehypePlugins;
/**
* Reads the SSG configuration from the project directory.
* @param projectDir The path to the project directory.
* @param debug Whether to enable debug logging.
* @returns The SSG configuration.
*/
declare const readConfig: (projectDir: string, debug: boolean) => Promise<SsgConfig>;
declare const configDefaults: SsgConfig;
/**
* A single, complete build process for a static site project.
* @param projectDir The root directory of the project to build
*/
declare const build: ({ projectDir, debug, mode, }: BuildOptions) => Promise<Status>;
/**
* A simple static file server to serve the generated static site from the output folder.
* Also watches the input, components and assets folders for changes and rebuilds the site on-the-fly.
* @param projectDir The root directory of the project to build
*/
declare const serve: ({ projectDir, debug, }: BuildOptions) => Promise<Status>;
export { BuildOptions, RehypePlugins, RemarkPlugins, SsgConfig, Status, build, configDefaults, readConfig, rehypePlugins, remarkPlugins, serve };