X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=build.sh;h=c970b1330c1c1c360b670ed31c9908b6fdf6a85e;hb=5a1f6c832883367ca4925443c63ed2aefb6514fd;hp=b8da89e8341951355a7974ba7b2f29b630e4c221;hpb=b76cf35e0e41f59faa3547652c060711ac6cf9fd;p=remoteglot diff --git a/build.sh b/build.sh index b8da89e..c970b13 100755 --- a/build.sh +++ b/build.sh @@ -3,19 +3,17 @@ # 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 +umask 022 -java -jar closure/compiler.jar \ - --language_in ECMASCRIPT5 \ +java -jar closure-compiler-v20221004.jar \ + --language_in ECMASCRIPT_2018 \ --compilation_level SIMPLE \ --js_output_file=www/js/remoteglot.min.js \ - --externs externs/webstorage.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/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 +