summaryrefslogtreecommitdiffstats
path: root/scripts/optimize_js.sh
diff options
context:
space:
mode:
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