Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
robdodson opened this Issue · 7 comments

4 participants

@robdodson

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.

@tkellen
Owner

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

@robdodson

wonderful! :D

is there a rough ETA for 0.4?

@tkellen
Owner

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

@ctalkington

@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

@cowboy
Owner

Yes.

@robdodson

i can haz 0.4.0? :cake:

@cowboy
Owner

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

@cowboy 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.