hparra / gulp-rename

Rename files easily
MIT License
692 stars 73 forks source link

Add file reference to path object argument in rename function #23

Closed jenwachter closed 9 years ago

jenwachter commented 10 years ago

Why Having a reference to the original file can aid in determining what each particular file in a glob should be renamed to. For example, renaming a file based on a hash of its contents for cache busting.

What I did I added a file property to the path object passed into the rename function. This property is not used to alter the file in any way -- it is only there for reference.

jasonrhodes commented 10 years ago

Seems like the Travis CI build fail is an nvm error, which seems strange for this kind of PR:

The command "nvm use 0.9" failed and exited with 1 during setup.
jenwachter commented 10 years ago

FYI: this pull request duplicates the functionality, but accomplishes it in a different way: https://github.com/hparra/gulp-rename/pull/19

shinnn commented 9 years ago

Sorry, looks weird API for me.