]> git.sesse.net Git - remoteglot/blobdiff - build.sh
Handle streaming PGNs, like from Lichess (although this might break non-streaming...
[remoteglot] / build.sh
index cab6aaaad78edcb91672296ba2ffcad24c0a2727..75141e4e10d0b096aba4c0e5994fdc96ba9693a7 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1,24 +1,17 @@
 #! /bin/sh
 
-# Download http://dl.google.com/closure-compiler/compiler-latest.zip
-# and unzip it in closure/ before running this script.
-
-# The JQuery build comes from http://projects.jga.me/jquery-builder/,
-# more specifically
-#
-# https://raw.githubusercontent.com/jgallen23/jquery-builder/0.7.0/dist/2.1.1/jquery-deprecated-sizzle.js
+# Download the latest .jar from
+# https://mvnrepository.com/artifact/com.google.javascript/closure-compiler/v20231112
+# (adjust the URL for the version you want) before running this script.
 
 umask 022
 
-java -jar closure-compiler-v20221004.jar \
-       --language_in ECMASCRIPT_2015 \
+java -jar closure-compiler-v20231112.jar \
        --compilation_level SIMPLE \
        --js_output_file=www/js/remoteglot.min.js \
-        www/js/jquery-deprecated-sizzle.js \
        www/js/chessboard-0.3.0.js \
        www/js/chess.js \
        www/js/json_delta.js \
-       www/js/jquery.sparkline.js \
        www/js/remoteglot.js
 
 cat www/css/chessboard-0.3.0.css www/css/remoteglot.css | sass --scss -t compressed > www/css/remoteglot.min.css