]> git.sesse.net Git - remoteglot/blobdiff - build.sh
Inline tons of stuff into the main HTML.
[remoteglot] / build.sh
index e2a57016ef0dcd26030de1d46e5a80ce880f7d8d..1c90330784874d0030930c48f094928f86e4bd2d 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -8,6 +8,8 @@
 #
 # https://raw.githubusercontent.com/jgallen23/jquery-builder/0.7.0/dist/2.1.1/jquery-deprecated-sizzle.js
 
+umask 022
+
 java -jar closure-compiler-v20221004.jar \
        --language_in ECMASCRIPT_2015 \
        --compilation_level SIMPLE \
@@ -19,3 +21,6 @@ java -jar closure-compiler-v20221004.jar \
        www/js/jquery.sparkline.js \
        www/js/remoteglot.js
 
+cat www/css/chessboard-0.3.0.min.css www/css/remoteglot.css | sass --scss -t compressed > www/css/remoteglot.min.css
+perl replace.pl < www/index.dev.html > www/index.html
+