tar command, delay
Although the sleep task fix was my own, it turns out it won't do the trick in the long run. The bigger your project, the longer your sleep task will need to run. Mine is now at 2000ms.
My instinct is that when grunt runs tar, it doesn't wait for the command to be finished before continuing other tasks. If I have time I'll try to tackle this, but it's a bit too easy to just increase the delay in the Gruntfile hehe
i thought so too. i used before another script exec grunt task, which seemed to wait for the command to finish. but it said "script exited with error code 0" or something (have to try again) this one: https://github.com/jharding/grunt-exec for now increasing the ms, is probably ok.