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:
error/warning detection
js minification/obfuscation - optional
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:
error/warning detection
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"