avalade / grunt-coffee

Coffee script for your grunt
MIT License
51 stars 17 forks source link

Patch to fix coffeescript's modifying the options object. #8

Closed elfsternberg closed 12 years ago

elfsternberg commented 12 years ago

The compiler adds attributes to the options object on the first pass; follow-on passes are not decorated with the '__extend()' and other functions coffeescript adds to the top of each generated javascript file. This makes sense when compiling a long list of javascript files into a single file, but grunt-coffee compiles each file into its javascript equivalent at the target end.

This patch gives a fresh clone of the options object passed from the user's grunt.js configuration file to each call to coffee.compile(), thus eliminating this problem.

avalade commented 12 years ago

Thanks for the contribution and the catch!

rockwood commented 12 years ago

Would you mind pushing this to npm?

avalade commented 12 years ago

Should be out there in version 0.4

avalade commented 12 years ago

in version 0.0.4, that is.