UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

59 lines 1.37 kB
import { Mount as IMount, MountConfig } from '../type'; export declare class Mount implements IMount { private sourcePath; private targetPath; private language; constructor(sourcePath: string, targetPath: string, language?: string); /** * Get source path */ source(): string; /** * Get target path */ target(): string; /** * Get language */ lang(): string; /** * Get component name from target path */ component(): string; /** * Get component and name from target path */ componentAndName(): { component: string; name: string; }; /** * Create a copy of this mount */ copy(): Mount; /** * Check if this mount is equal to another */ equals(other: Mount): boolean; /** * Convert to plain object */ toConfig(): MountConfig; /** * String representation */ toString(): string; } /** * Creates a new Mount instance */ export declare function newMount(sourcePath: string, targetPath: string): Mount; /** * Creates a Mount from config */ export declare function newMountFromConfig(config: MountConfig): Mount; /** * Creates default component mounts */ export declare function createDefaultMounts(componentFolders: readonly string[]): Mount[]; //# sourceMappingURL=mount.d.ts.map