mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
44 lines
868 B
TypeScript
44 lines
868 B
TypeScript
import gulp = require("gulp");
|
|
import fileinclude = require("gulp-file-include");
|
|
|
|
function testA() {
|
|
fileinclude({
|
|
prefix: "@@",
|
|
basepath: "/home/"
|
|
})
|
|
}
|
|
|
|
function testB() {
|
|
gulp.task("fileinclude", function () {
|
|
gulp.src(["index.html"])
|
|
.pipe(fileinclude({
|
|
prefix: "@@",
|
|
basepath: "@file"
|
|
}))
|
|
.pipe(gulp.dest("./"));
|
|
});
|
|
}
|
|
|
|
function testC() {
|
|
gulp.task("fileinclude", function () {
|
|
gulp.src(["index.html"])
|
|
.pipe(fileinclude({
|
|
filters: {
|
|
markdown: (x) => "nope"
|
|
}
|
|
}))
|
|
.pipe(gulp.dest("./"));
|
|
});
|
|
}
|
|
|
|
function testD() {
|
|
fileinclude({
|
|
context: {
|
|
arr: ["test1", "test2"]
|
|
}
|
|
});
|
|
}
|
|
|
|
function testE() {
|
|
fileinclude('@@');
|
|
} |