22 lines
504 B
Bash
Executable file
22 lines
504 B
Bash
Executable file
#!/bin/sh
|
|
. bin/lilarc
|
|
|
|
mkdir -p public/compiled
|
|
|
|
for app in editor puzzle round analyse; do
|
|
cd ui/$app
|
|
npm install ../chessli
|
|
npm install ../game
|
|
npm install && gulp dev && gulp prod
|
|
cd -
|
|
done
|
|
|
|
for file in strongSocket.js tv.js common.js big.js chart2.js user.js coordinate.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
|