twolfson / grunt-curl

Download files from the internet via grunt.
The Unlicense
73 stars 28 forks source link

Added ifMissing functionality to curl-dir #26

Closed ffissore closed 10 years ago

ffissore commented 10 years ago

This is an attempt to implement an "if missing" like functionality: files are downloaded only if they are missing. This is a bit far from #17 but goes into the direction of saving time and bandwidth

twolfson commented 10 years ago

This is a specific use case and I would prefer to fully implement #17 instead. A build chain should guarantee consistent results across different systems, this feature will not guarantee that case.

twolfson commented 10 years ago

I did a little research to see if there was a grunt-newer equivalent for your use case. It looks like there is and it is built for grunt-curl too

https://www.npmjs.org/package/grunt-if-missing

ffissore commented 10 years ago

Used and didn't work. That's why I modified grunt-curl

twolfson commented 10 years ago

I am still standing by my decision. grunt-if-missing fits the one thing well paradigm along side grunt-newer. Feel free to take a shot at #17 or repairing whatever was broken with if-missing.