]> git.sesse.net Git - remoteglot/blob - build.sh
Inline tons of stuff into the main HTML.
[remoteglot] / build.sh
1 #! /bin/sh
2
3 # Download http://dl.google.com/closure-compiler/compiler-latest.zip
4 # and unzip it in closure/ before running this script.
5
6 # The JQuery build comes from http://projects.jga.me/jquery-builder/,
7 # more specifically
8 #
9 # https://raw.githubusercontent.com/jgallen23/jquery-builder/0.7.0/dist/2.1.1/jquery-deprecated-sizzle.js
10
11 umask 022
12
13 java -jar closure-compiler-v20221004.jar \
14         --language_in ECMASCRIPT_2015 \
15         --compilation_level SIMPLE \
16         --js_output_file=www/js/remoteglot.min.js \
17         www/js/jquery-deprecated-sizzle.js \
18         www/js/chessboard-0.3.0.js \
19         www/js/chess.js \
20         www/js/json_delta.js \
21         www/js/jquery.sparkline.js \
22         www/js/remoteglot.js
23
24 cat www/css/chessboard-0.3.0.min.css www/css/remoteglot.css | sass --scss -t compressed > www/css/remoteglot.min.css
25 perl replace.pl < www/index.dev.html > www/index.html
26