summaryrefslogtreecommitdiffstats
path: root/scripts/optimize_js.sh
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-05-02 01:02:48 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:27 +0200
commitde444288bf67321d7306a317bff821959c81e766 (patch)
tree25b78256975222b00a39140ad56833d3c2eccc76 /scripts/optimize_js.sh
parent46f0516a885ff28d63699c892eecd7a34b6a9ac3 (diff)
Add support for minified main.js
Diffstat (limited to 'scripts/optimize_js.sh')
-rwxr-xr-xscripts/optimize_js.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/optimize_js.sh b/scripts/optimize_js.sh
new file mode 100755
index 000000000..33f130b56
--- /dev/null
+++ b/scripts/optimize_js.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/sh
+
+script_dir=$(dirname "$0")
+js_dir="$script_dir/../data/js"
+outfile="$js_dir/main.min.$(date +%s).js"
+node "$script_dir/r.js" -o mainConfigFile="$js_dir/main.js" name=main out=$outfile