tschaub / grunt-newer

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

Save timestamps for individual files & re-run the task on change #78

Closed mgol closed 9 years ago

mgol commented 9 years ago

Sometimes when working with Git you need to checkout an earlier commit; running newer:task:target will then not regenerate the file since its timestamp is earlier than the one saved by grunt-newer.

It'd be useful if grunt-newer saved time stamps for every source file the task is run on and that it would re-run the task if the timestamp changed in any direction, not just if it got newer than the generated file.

mgol commented 9 years ago

Hm, actually, it seems Git always updates timestamps so this shouldn't be an issue. Closing.

tschaub commented 9 years ago

Yeah, many things depend on git always updating mtime on changed files.