0.1.0 • Published 6 years ago
@xtrinity/simple-gulp-cacher v0.1.0
simple-gulp-cacher
A simple module for file caching Gulp tasks. Stores cache in memory and can also save to disk.
This module was inspired by the gulp-cached module.
Usage
Building in Gulp 4.0.0
async function buildHtml() {
return new Promise(function (resolve, reject) {
pump([
gulp.src(PROJECT_DIRECTORY_PATH + "/html/**/*"),
cacher.check("html"),
... do some stuff...
gulp.dest(PROJECT_DIRECTORY_PATH + "/public/", {"overwrite": true})
], function (error) {
if (error) return reject(error);
else return resolve();
});
});
}
License
Licensed under the MIT License
0.1.0
6 years ago