mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Gulp copy (#11804)
* Added type definitions for terminal-menu * Added type definitions for gulp-copy package * Fixed typos in file header
This commit is contained in:
committed by
Mohamed Hegazy
parent
5f742ae17e
commit
73f83f41fe
@@ -0,0 +1,10 @@
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
/// <reference path="gulp-copy.d.ts" />
|
||||
|
||||
import * as gulp from "gulp";
|
||||
import * as gulpCopy from "gulp-copy";
|
||||
|
||||
gulp.task("copy-files", () => {
|
||||
gulp.src("*.nonexistent")
|
||||
.pipe(gulpCopy("remove/target/some/non/existent/path", { prefix: 2 }));
|
||||
});
|
||||
Vendored
+39
@@ -0,0 +1,39 @@
|
||||
// Type definitions for gulp-copy v0.0.2
|
||||
// Project: https://github.com/klaascuvelier/gulp-copy
|
||||
// Definitions by: Arun Aravind <https://github.com/aravindarun>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../through/through.d.ts" />
|
||||
|
||||
declare module "gulp-copy" {
|
||||
import through = require("through");
|
||||
|
||||
/**
|
||||
* Copy files to destination and expose those files as source streams for the gulp pipeline.
|
||||
*
|
||||
* @param outDirectory The name of the destination directory. If this directory
|
||||
* does not exist, it will be created atomatically.
|
||||
*/
|
||||
function gulpCopy(outDirectory: string): through.ThroughStream;
|
||||
|
||||
/**
|
||||
* Copy files to destination and expose those files as source streams for the gulp pipeline.
|
||||
*
|
||||
* @param outDirectory The name of the destination directory. If this directory
|
||||
* does not exist, it will be created atomatically.
|
||||
* @param options Override values for available settings.
|
||||
*/
|
||||
function gulpCopy(outDirectory: string, options: gulpCopy.GulpCopyOptions): through.ThroughStream;
|
||||
|
||||
namespace gulpCopy {
|
||||
|
||||
export interface GulpCopyOptions {
|
||||
/**
|
||||
* Specifies the number of parts of the path to be ignored as path prefixes.
|
||||
*/
|
||||
prefix: number;
|
||||
}
|
||||
}
|
||||
|
||||
export = gulpCopy;
|
||||
}
|
||||
Reference in New Issue
Block a user