Socket
Socket
Sign inDemoInstall

gulp-if-any-newer

Package Overview
Dependencies
35
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
7
increased by75%
Maintainers
1
Install size
431 kB
Created
Weekly downloads
 

Readme

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

Last updated on 03 Sep 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc