开发者

Google closure compiler and teamcity / tfs

How to make teamcity and/or TFS 2010 to run closure compiler for js files in a project. There are 2 reasons for using closure compiler:

  1. error/warning detec开发者_JAVA百科tion

  2. js minification/obfuscation - optional


We use rake builds and TeamCity. It calls closure to compile and minify all of our javascript as part of packaging for installers.

Its pretty simple in rake to do this, just use sh to do somethinj like:

sh "java -jar #{JS_TOOLS_DIR}/google-closure.jar --js=#{js_file} --js_output_file=#{min_file} " + "--warning_level QUIET --compilation_level WHITESPACE_ONLY"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜