Files
DefinitelyTyped/gulp-flatten/gulp-flatten-tests.ts
Ryan Cavanaugh 33686b47c5 Lots of fixes
2016-05-04 16:30:29 -07:00

18 lines
366 B
TypeScript

import * as gulp from "gulp";
import * as flatten from "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"));
});