]> git.sesse.net Git - remoteglot/blob - build.sh
Handle streaming PGNs, like from Lichess (although this might break non-streaming...
[remoteglot] / build.sh
1 #! /bin/sh
2
3 # Download the latest .jar from
4 # https://mvnrepository.com/artifact/com.google.javascript/closure-compiler/v20231112
5 # (adjust the URL for the version you want) before running this script.
6
7 umask 022
8
9 java -jar closure-compiler-v20231112.jar \
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