UNPKG

@coat/cli

Version:

TODO: See #3

26 lines (25 loc) 924 B
import { CoatManifestMergedFile } from "../types/coat-manifest-file"; import { CoatContext } from "../types/coat-context"; interface PolishedFileBase extends CoatManifestMergedFile { content: string; } export interface PolishedOnceFile extends PolishedFileBase { once: true; } export interface PolishedContinuousFile extends PolishedFileBase { once: false; hash: string; } export type PolishedFile = PolishedOnceFile | PolishedContinuousFile; /** * Polishes all files and converts their content into strings. * * Files are polished depending on their type, * e.g. JSON and YAML files are styled with prettier while * TEXT files end with a consistent trailing new line. * * @param files All files that should be polished * @param context The context of the current coat project */ export declare function polishFiles(files: CoatManifestMergedFile[], context: CoatContext): PolishedFile[]; export {};