X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=build.sh;h=c970b1330c1c1c360b670ed31c9908b6fdf6a85e;hb=0b8e23ee197dcc239a1ea0d818b541cba36b98b6;hp=a03d72b441e7ea753a300f5c2c180b375128981d;hpb=5243478f883e4997134e3abc8da57b7680129c89;p=remoteglot diff --git a/build.sh b/build.sh index a03d72b..c970b13 100755 --- a/build.sh +++ b/build.sh @@ -3,13 +3,17 @@ # Download http://dl.google.com/closure-compiler/compiler-latest.zip # and unzip it in closure/ before running this script. -java -jar closure/compiler.jar \ - --language_in ECMASCRIPT5 \ +umask 022 + +java -jar closure-compiler-v20221004.jar \ + --language_in ECMASCRIPT_2018 \ --compilation_level SIMPLE \ --js_output_file=www/js/remoteglot.min.js \ - --externs externs/jquery-1.9.js \ - --externs externs/webstorage.js \ www/js/chessboard-0.3.0.js \ www/js/chess.js \ + www/js/json_delta.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 +perl replace.pl < www/index.dev.html > www/index.html +