UNPKG

turbo-gulp

Version:

Gulp tasks to boost high-quality projects.

30 lines (29 loc) 844 B
/// <reference types="gulp" /> /// <reference types="node" /> import { FSWatcher } from "fs"; import { Gulp } from "gulp"; import { TaskFunction } from "../utils/gulp-task-function"; export interface Options { /** * An array of minimatch patterns */ files: string[]; /** * Base-directory for copy */ from: string; /** * Target directory */ to: string; } /** * Return a list of sources, prefixed by "from" */ export declare function getSources({files, from}: Options): string[]; export declare function copy(gulp: Gulp, options: Options): NodeJS.ReadableStream; /** * Generate a task to copy files from one directory to an other. */ export declare function generateTask(gulp: Gulp, options: Options): TaskFunction; export declare function watch(gulp: Gulp, options: Options): FSWatcher;