mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
24 lines
549 B
TypeScript
24 lines
549 B
TypeScript
|
|
|
|
|
|
import gulp = require("gulp");
|
|
import * as concat from "gulp-concat";
|
|
|
|
gulp.task("concat:simple", () => {
|
|
gulp.src(["file*.txt"])
|
|
.pipe(concat("file.txt"))
|
|
.pipe(gulp.dest("build"));
|
|
});
|
|
|
|
gulp.task("concat:newLine", () => {
|
|
gulp.src(["file*.txt"])
|
|
.pipe(concat("file.txt", { newLine: ";" }))
|
|
.pipe(gulp.dest("build"));
|
|
});
|
|
|
|
gulp.task("concat:vinyl", () => {
|
|
gulp.src(["file*.txt"])
|
|
.pipe(concat({ path: "file.txt", stat: { mode: parseInt("0666", 8) } }))
|
|
.pipe(gulp.dest("build"));
|
|
});
|