Google Closure Compiler TextMate Bundle

I’ve been trying out the brand new Google Closure Compiler instead of the YUI Compressor. I’m not going to go into any detail about the Closure Compiler as there’s plenty of information out there already, but I can say that it looks like another solid offering from Google.

Anyway, in an effort to make a pretty good piece of software even better I decided to make a TextMate bundle for it – something akin to the YUI Compressor bundle – so that it’s never more than a keystroke away (defaults to ⇧⌘G).

Requirements

The Google Closure Compiler bundle requires:

Make sure you read the README file before installing. The Google Closure Compiler TextMate bundle is licenced under the GPL Licence. This bundle has only been tested with the latest versions of Mac OS X (v10.6.2) and TextMate (v1.5.8) but should work with earlier versions as long as the requirements above are met.

Get It

  • [Update] The bundle is now available via the GetBundles TextMate bundle. Simply search for “Google Closure Compiler” (Recommended)
  • Downloads
  • Source code

Using this bundle? Got any suggestions? Let me know in the comments!

Comments

  • Mike
    Thanks for your effort, Matt! I think it really helps.
  • tarungupta
    Hey Guys,
    Author of More Servlets and JSP, Marty Hall is coming to Bangalore this April to speak on Choosing an Ajax/JavaScript Toolkit: A Comparison of the Most Popular JavaScript Libraries, Pure Java Ajax: An Overview of GWT 2.0, Integrated Ajax Support in JSF 2.0 and Ajax Support in the Prototype JavaScript Library. You can get more information on www.developersummit.com
  • KJ
    Hey,

    I get the following error on Leopard, Textmate 1.5.8
    http://www.shareimages.com/image.php?32532-pZSb...

    Thanx
  • By the look of it the error that you're getting is actually being generated by the Compiler, not from the bundle. Please check that you can run the Compiler successfully from within Terminal, the getting started guide would be a good, erm... start.

    If it still doesn't work check that you've got the latest version of Java installed (do 'java -version' in Terminal). Google Closure Compiler requires Java 1.6, Mac OS 10.5 comes with version 1.5 by default. You'll need a 64-bit Intel Mac to install Java 1.6 on Leopard.
  • Falsefalse
    You got a nice trick with site logo, really cool, pure css.

    But if those logos would be merged to css sprite it will save 1 http request for page loading and ~2KB bandwidth.

    http://spriteme.org/ bookmarklet can do this, actually, I've tried it on this page - after spriting logo looks perfectly and trick works fine.
  • I got this error http://farm3.static.flickr.com/2738/4097695009_...
    (...and I've specified the right location for Google Compiler .jar) Any idea ?
  • Version 0.2 fixes this error in addition to adding a few new features/improvements.
blog comments powered by Disqus