@quasarbright/projection
Version:
A static site generator that creates a beautiful, interactive gallery to showcase your coding projects. Features search, filtering, tags, responsive design, and an admin UI.
41 lines • 1.2 kB
TypeScript
import { Generator } from '../generator';
/**
* Options for running a build
*/
export interface BuildHelperOptions {
/** Working directory (defaults to process.cwd()) */
cwd?: string;
/** Path to custom config file */
configPath?: string;
/** Custom output directory */
outputDir?: string;
/** Clean output directory before build */
clean?: boolean;
/** Override baseUrl (useful for dev server) */
baseUrl?: string;
/** Enable admin mode with edit/delete controls (for preview only) */
adminMode?: boolean;
/** Whether to show build logs */
silent?: boolean;
}
/**
* Result of a build operation
*/
export interface BuildResult {
/** Path to the output directory */
outputDir: string;
/** The generator instance used */
generator: Generator;
}
/**
* Shared build logic used by build, dev, and deploy commands
* This ensures consistent behavior across all commands
*/
export declare class BuildHelper {
/**
* Run a build with the given options
* @throws ProjectionError if build fails
*/
static runBuild(options?: BuildHelperOptions): Promise<BuildResult>;
}
//# sourceMappingURL=build-helper.d.ts.map