Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbuschka/gulp-if-any-newer
Gulp plugin- Pass through all source files if any source file is newer than any dest file.
https://github.com/cbuschka/gulp-if-any-newer
cache cached changed file files filter gulp gulp-plugin modification modified mtime newer passthrough stat time updated
Last synced: 5 days ago
JSON representation
Gulp plugin- Pass through all source files if any source file is newer than any dest file.
- Host: GitHub
- URL: https://github.com/cbuschka/gulp-if-any-newer
- Owner: cbuschka
- License: mit
- Created: 2017-08-30T19:10:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T05:23:37.000Z (about 4 years ago)
- Last Synced: 2024-10-05T07:12:37.993Z (about 2 months ago)
- Topics: cache, cached, changed, file, files, filter, gulp, gulp-plugin, modification, modified, mtime, newer, passthrough, stat, time, updated
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# gulp-if-any-newer
#### Pass through all source files if any source file is newer than any dest file.
## Usage
```js
const gulp = require('gulp');
const ifAnyNewer = require('gulp-if-any-newer');
const anyConsumer = require('gulp-any-consumer');const SRC = 'src/*.js';
const DEST = 'dist';gulp.task('default', () =>
gulp.src(SRC)
.pipe(ifAnyNewer(DEST, { filter: '**/*', debug: true }))
// anyConsumer will only get the files feeded in
// if any source file is newer than any file in dest
.pipe(anyConsumer())
.pipe(gulp.dest(DEST));
);
```## Related Gulp Plugins
* [gulp-newer](https://github.com/tschaub/gulp-newer)
* [gulp-changed](https://github.com/sindresorhus/gulp-changed)
* [gulp-changed-in-place](https://github.com/alexgorbatchev/gulp-changed-in-place)## Contributing
Thanks to all contributors! This is open source, Pull Requests are welcome!## License
Copyright (c) 2017-2020 by [Cornelius Buschka](https://github.com/cbuschka)
[MIT License](license)