A Gulp plugin that remembers and recalls files passed through it, enabling incremental builds with full file sets.
gulp-remember is a plugin for the Gulp build system that caches files it has processed and can add them back into the stream when needed. It solves the problem of incremental builds where only changed files are processed, but downstream tasks like concatenation require the entire set of files to produce correct output.
Frontend and Node.js developers using Gulp for build automation who need to optimize build performance through incremental processing while maintaining complete file sets for tasks like bundling or concatenation.
Developers choose gulp-remember because it seamlessly integrates with gulp-cached to enable true incremental builds without breaking tasks that depend on all files, reducing build times while ensuring correctness.
A plugin for gulp that remembers and recalls files passed through it
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
When paired with gulp-cached, it rebuilds only changed files while still providing the complete file set to downstream tasks like concatenation, as demonstrated in the scripts task example.
Supports named caches for different file types and offers API methods like remember.forget() to drop specific files or clear entire caches, giving developers fine-grained control.
Files are cloned when cached and retrieved, preventing modifications in the stream from affecting the cache, which ensures data integrity and avoids side effects.
Designed specifically for Gulp, it works well with other plugins such as gulp-concat and gulp-header, enabling robust build pipelines without major setup overhead.
Forgetting files requires the processed path, not the source path, which can lead to errors if paths change during transformations, as admitted in the README's gotchas section.
Does not maintain file order; developers must use additional plugins like gulp-order if their build depends on specific sequencing, adding complexity and dependencies.
Only functions within the Gulp ecosystem, making it irrelevant for projects using other build tools, and its utility declines as Gulp's popularity wanes compared to alternatives.