UNPKG

@blitzjs/file-pipeline

Version:

Display package for the Blitz CLI

23 lines (22 loc) 865 B
/// <reference types="node" /> /// <reference types="pumpify" /> import { Writable } from "stream"; import File from "vinyl"; import { Stage, StageConfig } from "./types"; export declare function isSourceFile(file: File): boolean; export declare function isPageFile(file: File): string; /** * Creates a pipeline stream that transforms files. * @param config Config object containing basic information for the file pipeline * @param stages Array of stages to apply to each file * @param errors Stream that takes care of all operational error rendering * @param bus Stream to pipe events to */ export declare function createPipeline(config: StageConfig, stages: Stage[], bus: Writable, source?: { stream: NodeJS.ReadWriteStream; }, writer?: { stream: NodeJS.ReadWriteStream; }): { stream: import("pumpify"); ready: any; };