Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/miller-columns.git

Minification.

Author Dave Jarvis <email>
Date 2014-12-31 16:37:03 GMT-0800
Commit a7c2839d360a1140d29751e318e09af601427793
Parent eb37197
minify.sh
+#!/bin/bash
+
+# Path to Closure Compiler
+COMPILER=$HOME/archive/closure-javascript.jar
+
+# Java must be in the PATH
+COMMAND="java -jar $COMPILER"
+
+FILE=$1
+
+# Allow overriding default filename from the command line.
+if [ -z $FILE ]; then
+ FILE="columns.js"
+fi
+
+MINIFY="$COMMAND --js=$FILE --js_output_file=$(basename $FILE .js).min.js"
+
+# Execute the command
+$MINIFY
+
Delta 20 lines added, 0 lines removed, 20-line increase