mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
375 B
TypeScript
19 lines
375 B
TypeScript
import * as gulp from "gulp";
|
|
import cached = require("gulp-cached");
|
|
|
|
// Usage
|
|
gulp.src("*.ts")
|
|
.pipe(cached("ts-cache"));
|
|
|
|
gulp.src("*.ts")
|
|
.pipe(cached("ts-cache", {}));
|
|
|
|
gulp.src("*.ts")
|
|
.pipe(cached("ts-cache", { optimizeMemory: true }));
|
|
|
|
// Clearing the whole cache
|
|
cached.caches = {};
|
|
|
|
// Clearing a specific cache entry
|
|
delete cached.caches["ts-cache"];
|