Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (19 sloc) 1.82 KB

The Google Closure Compiler Bundle enables easy validation and compression of Javascript files using the Google Closure Compiler, from within TextMate.


Using the GetBundles bundle

This bundle should be available to install via the GetBundles bundle. Just look for the 'Google Closure Compiler'.

From a source archive

Simply grab a copy of the bundle from, extract and double-click to install. You may have to rename the extracted file/folder to 'Google Closure Compiler.tmbundle' otherwise OS X will not treat is as a TextMate bundle.


There are 3 steps to getting everything working:

  1. Download the Google Closure Compiler.

  2. Unzip the Google Closure Compiler and copy the .jar file from the compiler-latest folder to a location of your choosing (make a note of where you saved it).

  3. Open the Preferences... item in this bundle and replace the text /absolute/path/to/google_closure_compiler.jar with the actual path to your .jar file. It must be an absolute path, ~/ won't work.


Select the files you want to run through the Google Closure Compiler in the Project Drawer and execute the command using ⇧⌘G (cmd-shift-G)

The compiled files share the same root as the filename, with the addition of -compiled before the file extension. For example:

my_js_file.js becomes my_js_file-compiled.js.

If you are compiling more than one file then they will be saved into a single file. For example:

my_js_file.js and another_js_file.js becomes compiled.js.

Existing files with the same name will be overwritten without warning.

For more information read Help in the installed bundle.

You can’t perform that action at this time.