New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-if-any-newer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-if-any-newer

Pass through all source files if any source file is newer than any dest file.

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-if-any-newer

Pass through all source files if any source file is newer than any dest file.

Usage

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));
);
  • gulp-newer
  • gulp-changed
  • 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

MIT License

Keywords

FAQs

Package last updated on 03 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc