mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
18 lines
454 B
TypeScript
18 lines
454 B
TypeScript
/// <reference path="./gulp-flatten.d.ts" />
|
|
/// <reference path="../gulp/gulp.d.ts" />
|
|
|
|
import gulp = require("gulp");
|
|
import flatten = require("gulp-flatten");
|
|
|
|
gulp.task("flatten:simple", () => {
|
|
gulp.src(["files/**/*.txt"])
|
|
.pipe(flatten())
|
|
.pipe(gulp.dest("build"));
|
|
});
|
|
|
|
gulp.task("flatten:newPath", () => {
|
|
gulp.src(["files/**/*.txt"])
|
|
.pipe(flatten({ newPath: "new/path" }))
|
|
.pipe(gulp.dest("build"));
|
|
});
|