Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

grunt.file.copy process fn isn't given filename #500

Closed
robdodson opened this Issue · 7 comments

4 participants

Rob Dodson Tyler Kellen Chris Talkington Ben Alman
Rob Dodson

The optional process function for grunt file copy is really useful but right now it only receives one argument, the contents of the file. It would be really useful if it also received the filename. That way if you need to tweak a specific file you can do so during the copy phase.

Tyler Kellen
Owner

Right you are! We'll be adding that (along with a slew of other api improvements) after 0.4 is released.

Rob Dodson

wonderful! :D

is there a rough ETA for 0.4?

Tyler Kellen
Owner

As soon as we finish the docs. Fingers crossed we'll have enough time to do that by the end of next week.

Chris Talkington

@cowboy from what i can tell the below line handles this in v0.4?

https://github.com/gruntjs/grunt/blob/devel/lib/grunt/file.js#L297

Ben Alman
Owner

Yes.

Rob Dodson

i can haz 0.4.0? :cake:

Ben Alman
Owner

Yeah, this is in 0.4.0 which will be releasing soon (eg. when I'm happy with it).

Ben Alman cowboy closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.