Cowboy-coder/bundle-up — pull request #27 by meetamit (2012-11-27 19:49:55+00:00)
Title: Integrated with UglifyJS v2

Howdy,

As discussed, I modified the Js module (in `lib/js.coffee `) to work with the new (and simplified) UglifyJS v2 API. All seems to work well and swell.

NOTES:
I noticed the tests weren't "exercising" the minifyJs option in the first place. Rather than modifying them to _always_ use `minifyJs:true` I opted for doing both. The simplest way to achieve that was to add a 2nd call to `BundleUp()` – with `minifyJs:true` – inside the tests' `beforeEach()` method (in `bundle_spec.coffee`). That may not be the safest way, but hopefully it's still acceptable.

Let me know if you'd like me to modify/add anything.

Cheers!
- Amit