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 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!
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
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.
Hey,I get the following error on Leopard, Textmate 1.5.8http://www.shareimages.com/image.php?32532-pZSb...Thanx
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.
[...] 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 [...]
[...] 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 [...]