A Gulp plugin that filters source files to only process those newer than their destination counterparts.
gulp-newer is a Gulp plugin that filters source files in a build pipeline to only process those that are newer than their corresponding destination files. It solves the problem of unnecessary reprocessing in tasks like image minification, script concatenation, or CSS compilation, making builds faster and more efficient.
Developers using Gulp for build automation who want to optimize their workflows by avoiding redundant processing of unchanged files.
It provides a lightweight, configuration-friendly way to implement incremental builds within Gulp, reducing build times without the complexity of full caching systems.
Pass through newer source files only
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Adds incremental processing with a simple .pipe(newer(dest)) call, as shown in the README examples for image minification and script concatenation.
Supports both 1:1 and many:1 source-to-destination mappings, allowing it to handle tasks from individual file optimization to bundling, demonstrated with imagemin and concat.
Can switch between mtime and ctime for file comparison, providing adaptability for cases where file attributes change without content updates, as noted in the API options.
The extra option allows including configuration files or other dependencies to trigger reprocessing, ensuring builds stay current when related files change.
Effectiveness depends entirely on accurate file system timestamps, which can fail in environments like CI/CD pipelines where files are copied without preserving mtime.
Only works with Gulp, making it unsuitable for projects that might adopt other build tools, and lacks portability compared to language-agnostic caching solutions.
Does not check file contents or use hashing, so it may miss changes if timestamps are stale or incorrectly set, unlike plugins with in-memory caching.