Closed ffissore closed 8 years ago
For the glob patterns, curl
is intended to line up to those. If it doesn't, I support adding functionality for arrays as src/dest pairs
curl: {
'my-task': [{
src: 'http://google.com/a.js',
dest: 'a.js'
}, {
src: 'http://google.com/b.js',
dest: 'b.js'
}]
}
curl-dir
exists to avoid the tedious task of repetition when all files must be downloaded to the same location. As a result, we choose to use a directory as dest
which is where this conflict comes from.
I think this issue has been resolved. Closing it for now.
In an attempt to make curl-dir work with
grunt-if-missing
, I've opened an issue (see https://github.com/tests-always-included/grunt-if-missing/issues/1) and the problem is with the special syntax used bycurl-dir
Even the attempts I've made hit the wall of curl-dir task structure: runninggrunt.task.normalizeMultiTaskFiles
on it returns an empty fileset. It would be nice if curl-dir used a structure like http://gruntjs.com/configuring-tasks#globbing-patterns