Add javascript compressor.

It uses http://code.google.com/closure/compiler/ for now.
This commit is contained in:
Michal Čihař
2010-04-13 11:33:07 +02:00
parent ed9ef7cb12
commit 176583f4ae
6 changed files with 480 additions and 0 deletions

7
scripts/compress-js Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
for file in `find js -name '*.js' -not -name '*min.js' -not -name 'mootools*'` ; do
mkdir -p sources/`dirname $file`
mv $file sources/$file
java -jar ./scripts/google-javascript-compiler/compiler.jar --js sources/$file --js_output_file $file --compilation_level ADVANCED_OPTIMIZATIONS
done