Google closure-compiler for JavaScript

master
Adam Vandenberg 2010-10-16 17:15:37 -07:00
parent e34717d3d3
commit 3d83907261
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
require 'formula'
class ClosureCompiler <Formula
url 'http://closure-compiler.googlecode.com/files/compiler-20100917.tar.gz'
homepage 'http://code.google.com/p/closure-compiler/'
md5 '581e7d667103d8bee08ff8adf7e39e56'
def install
libexec.install "compiler.jar"
(bin+'closure').write <<-EOS.undent
#!/bin/bash
java -jar #{libexec}/compiler.jar $@
EOS
end
end