@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
37 lines • 875 B
TypeScript
import { Fs as IFs } from '../type';
export declare class StaticCopier {
private readonly fromFss;
private readonly toFs;
constructor(froms: IFs[], to: IFs);
copy(): Promise<void>;
/**
* Execute function with publish directories
*/
private doWithPublishDirs;
/**
* Copy static files from source to target directory
* TypeScript equivalent of Go's copyStaticTo
*/
private copyStaticTo;
/**
* Walk source files and copy them
*/
private walkSourceFiles;
/**
* Walk filesystem recursively
*/
private walkFileSystem;
/**
* Copy a single file from source to target
*/
private copyFile;
/**
* Join path components
*/
private joinPath;
/**
* Get directory name from path
*/
private dirname;
}
//# sourceMappingURL=static-copier.d.ts.map