18 lines
592 B
Bash
Executable file
18 lines
592 B
Bash
Executable file
#!/bin/zsh
|
|
. bin/lilarc
|
|
|
|
mkdir -p public/compiled
|
|
for file in tv.js common.js big.js chart2.js user.js boardEditor.js coordinate.js pgn4hacks.js chessboard.js; do
|
|
orig=public/javascripts/$file
|
|
comp=public/compiled/$file
|
|
if [[ ! -f $comp || $orig -nt $comp ]]; then
|
|
lilalog "Compiling lila javascript - $file"
|
|
closure --js $orig --js_output_file $comp
|
|
fi
|
|
done
|
|
pgn4web_output=public/vendor/pgn4web/pgn4web-compacted.js
|
|
if [ ! -f $pgn4web_output ]; then
|
|
lilalog "Compiling pgn4web javascript"
|
|
closure --js public/vendor/pgn4web/pgn4web.js --js_output_file $pgn4web_output
|
|
fi
|