UNPKG

@blitzjs/file-pipeline

Version:

Display package for the Blitz CLI

25 lines (24 loc) 790 B
/// <reference types="node" /> import { Transform } from "stream"; import { OverrideTriage } from "../helpers/work-optimizer"; import { Stage } from "../types"; declare type FSStreamer = { stream: NodeJS.ReadWriteStream; }; declare type SynchronizeFilesOptions = { ignore?: string[]; include?: string[]; watch?: boolean; bus?: Transform; source?: FSStreamer; writer?: FSStreamer; clean?: boolean; overrideTriage?: OverrideTriage; }; /** * Assembles a file stranform pipeline to convert blitz source code to something that * can run in NextJS. * @param config Configuration object */ export declare function transformFiles(src: string, stages: Stage[], dest: string, options: SynchronizeFilesOptions): Promise<any>; export {};