Files
DefinitelyTyped/gulp-flatten/gulp-flatten-tests.ts
Long Yinan 806d0f8237 fix import
2015-12-30 19:04:53 +08:00

18 lines
452 B
TypeScript

/// <reference path="./gulp-flatten.d.ts" />
/// <reference path="../gulp/gulp.d.ts" />
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"));
});