mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
18 lines
366 B
TypeScript
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"));
|
|
});
|