@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.
61 lines • 1.85 kB
TypeScript
import { Config } from '../types/config';
/**
* Handles copying of template assets (styles, scripts, static files)
* with support for user customization
*/
export declare class AssetCopier {
private cwd;
private outputDir;
private packageRoot;
constructor(cwd: string, outputDir: string);
/**
* Copy all assets (styles, scripts, static assets) to output directory
*/
copyAssets(config: Config, projectThumbnails?: string[]): Promise<void>;
/**
* Copy style files, preferring user custom styles over bundled templates
*/
private copyStyles;
/**
* Copy script files, preferring user custom scripts over bundled templates
*/
private copyScripts;
/**
* Copy static assets (favicon, images, etc.)
*/
private copyStaticAssets;
/**
* Copy user asset directories (images, screenshots, etc.)
* This copies any directories in the project root that might contain assets
* referenced in project data (thumbnails, etc.)
*/
private copyUserAssetDirectories;
/**
* Recursively copy a directory
*/
private copyDirectory;
/**
* Copy a single file
*/
private copyFile;
/**
* Ensure a directory exists, creating it if necessary
*/
private ensureDirectoryExists;
/**
* Get the resolved path for styles directory
* (useful for testing and debugging)
*/
getStylesSource(config: Config): string;
/**
* Get the resolved path for scripts directory
* (useful for testing and debugging)
*/
getScriptsSource(config: Config): string;
/**
* Copy admin-uploaded screenshots from screenshots/ to images/ directory
* This handles thumbnails with the admin:// prefix
*/
private copyAdminScreenshots;
}
//# sourceMappingURL=asset-copier.d.ts.map