]> git.sesse.net Git - remoteglot/blob - build.sh
Make our own SVG sparkline, replacing jquery.sparkline.js.
[remoteglot] / build.sh
1 #! /bin/sh
2
3 # Download http://dl.google.com/closure-compiler/compiler-latest.zip
4 # and unzip it in closure/ before running this script.
5
6 umask 022
7
8 java -jar closure-compiler-v20221004.jar \
9         --language_in ECMASCRIPT_2018 \
10         --compilation_level SIMPLE \
11         --js_output_file=www/js/remoteglot.min.js \
12         www/js/chessboard-0.3.0.js \
13         www/js/chess.js \
14         www/js/json_delta.js \
15         www/js/remoteglot.js
16
17 cat www/css/chessboard-0.3.0.css www/css/remoteglot.css | sass --scss -t compressed > www/css/remoteglot.min.css
18 perl replace.pl < www/index.dev.html > www/index.html
19