mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
463 B
TypeScript
22 lines
463 B
TypeScript
/// <reference path="../gulp/gulp.d.ts" />
|
|
/// <reference path="./gulp-cached.d.ts" />
|
|
|
|
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"];
|