tschaub / grunt-newer

Configure Grunt tasks to run with newer files only.
https://npmjs.org/package/grunt-newer
MIT License
945 stars 61 forks source link

Has anyone developed a workflow using this with clean? #82

Closed JeSuis closed 8 years ago

JeSuis commented 9 years ago

I want to use this with clean but only run clean if newer triggers the task to run like compass or requirejs

tschaub commented 8 years ago

I think "newer" is incompatible with "clean" since "newer" requires destination files (to compare mtime) and "clean" removes destination files. But maybe I'm misunderstanding your issue.

webdesignberlin commented 8 years ago

Why the destination file is compared (mtime) and not the source file?

andyexeter commented 8 years ago

I'm trying to get something like this working myself. I'd like to run the clean task on my build/img directory but only on files older than in src/img, or if the file no longer exists in src/img - Is this possible with newer?