twolfson / grunt-zip

Zip and unzip files via a grunt plugin
MIT License
87 stars 19 forks source link

Can you document the router more? #8

Closed kristoferjoseph closed 11 years ago

kristoferjoseph commented 11 years ago

Would like to understand better what is possible with the router option.

Thanks!

twolfson commented 11 years ago

Not by a computer right now but here is some quick and dirty info.

router takes the filepath as input (meaning files/a.js). The output is the filepath we save it as in the zip itself (i.e. if you return src/b.js, we save the content of files/a.js as if it were named src/b.js).

The router is run when saving each and every file you request to be zipped and the file path is relative to where you executed grunt.

I will add some leaner docs later.

Kristofer Joseph notifications@github.com wrote:

Would like to understand better what is possible with the router option.

Thanks!

— Reply to this email directly or view it on GitHub.