mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
364 B
TypeScript
15 lines
364 B
TypeScript
import * as gulp from "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"));
|
|
});
|