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 so that it’s never more than a keystroke away (defaults to ⇧⌘G).
Requirements
The Google Closure Compiler bundle requires:
- The Google Closure Compiler (not included in the bundle)
- Ruby version 1.8.7 or greater (installed as standard on Mac OS 10.5 and above)
- TextMate (obviously)
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!
[...] This post was mentioned on Twitter by Matt Kirman, François-G. Ribreau. François-G. Ribreau said: http://bit.ly/2Ygu6h ¦ Google Closure Compiler #TextMate Bundle [...]
Tweets that mention Matt Kirman » Google Closure Compiler TextMate Bundle -- Topsy.com added this pingback on Nov 12.09 at 12:47 pmI got this error http://farm3.static.flickr.com/2738/4097695009_...
François-G. Ribreau added these pithy words on Nov 12.09 at 3:14 pm(…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.
Matt added these pithy words on Nov 12.09 at 8:34 pm[...] Compressor excels at. I give you the YUI Compressor TextMate bundle, an almost direct port of the Google Closure Compiler TextMate bundle but with a different compression [...]
Matt Kirman / YUI Compressor TextMate Bundle added this pingback on Nov 13.09 at 1:14 pmYou 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.
Falsefalse added these pithy words on Nov 16.09 at 10:07 pmHey,
I get the following error on Leopard, Textmate 1.5.8
http://www.shareimages.com/image.php?32532-pZSb...
Thanx
KJ added these pithy words on Jan 06.10 at 8:32 amBy 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.
Matt added these pithy words on Jan 06.10 at 10:33 amHey Guys,
tarungupta added these pithy words on Mar 08.10 at 9:19 amAuthor 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 http://www.developersummit.com
Thanks for your effort, Matt! I think it really helps.
Mike added these pithy words on Mar 16.10 at 10:24 am