tschaub / gulp-newer

Pass through newer source files only
https://npmjs.org/package/gulp-newer
226 stars 24 forks source link

Checking if another file is newer #30

Closed JacobDB closed 8 years ago

JacobDB commented 8 years ago

I have a task that pulls data from my package.json and inserts it in to some PHP files, for things like version number, site name, etc. Is there a way to tell gulp-newer to say "if ./package.json is changed, then compile *.php" ?

JacobDB commented 8 years ago

I think the solution for this would be to add a new gulp task that checks if the package.json is newer and if so deletes all the files that need replaced.