Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
add minify script for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Jun 5, 2013
1 parent b697322 commit f867ea3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions minify.sh
@@ -0,0 +1,25 @@
#!/bin/bash
VERSION=0.1
CLOSURE_COMPILER_PATH=/path/to/compiler-latest/compiler.jar
HOPSCOTCH_PATH=/path/to/hopscotch

echo ""
echo "Hopscotch path set to: $HOPSCOTCH_PATH"
echo "Hopscotch version set to: $VERSION"
echo ""
echo "This script uses the Google Closure Compiler."
echo "(https://developers.google.com/closure/compiler/)"
echo ""
echo "Closure compiler path set to:"
echo $CLOSURE_COMPILER_PATH
echo ""
echo "Minifying Javascript..."
echo "======================="
java -jar $CLOSURE_COMPILER_PATH --js=$HOPSCOTCH_PATH/js/hopscotch-$VERSION.js --js_output_file=$HOPSCOTCH_PATH/js/hopscotch-$VERSION.min.js
echo "Done minifying Javascript!"
echo ""
echo "Compiling CSS..."
echo "================"
lessc -x $HOPSCOTCH_PATH/less/hopscotch.less > $HOPSCOTCH_PATH/css/hopscotch.css
echo "Done compiling CSS!"
echo ""

0 comments on commit f867ea3

Please sign in to comment.