twolfson / grunt-curl

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

Grunt's various file formats should be interchangeable #9

Closed jasonkarns closed 11 years ago

jasonkarns commented 11 years ago

The following should work:

curl:
  myTarget:
    "tmp/file.txt": "http://example.com/file.txt"

Instead, I get:

Warning: Cannot read property 'src' of undefined Use --force to continue.
twolfson commented 11 years ago

Can you provide the grunt, node, and grunt-curl version you are using?

npm ls --depth 0
jasonkarns commented 11 years ago

Oops, forgot the files key. The following works just fine:

curl:
  myTarget:
    files:
      "tmp/file.txt": "http://example.com/file.txt"
twolfson commented 11 years ago

Awesome, glad it wasn't me =)