tschaub / grunt-newer

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

running grunt-newer with grunt-ssh causes the full task / upload to run #41

Open Ioquai opened 10 years ago

Ioquai commented 10 years ago

I want to use grunt-newer for grunt-ssh to just upload modified files. But the task always uploads all files. The cache file is created but empty. Do you have any advice?

manishie commented 10 years ago

Yup, I'm seeing the same behavior with grunt-ssh. Any ideas?

tschaub commented 9 years ago

The newer task filters the src files provided to the wrapped task using this logic:

I haven't used the grunt-ssh task, but I'm assuming that it isn't configured with dest files that are accessible with fs.stat.