mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 20:37:58 +08:00
24 lines
634 B
TypeScript
24 lines
634 B
TypeScript
/// <reference path="./gulp-concat.d.ts" />
|
|
/// <reference path="../gulp/gulp.d.ts" />
|
|
|
|
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"));
|
|
});
|