This repository has been archived by the owner on Feb 17, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gordon Koo
committed
Jun 5, 2013
1 parent
b697322
commit f867ea3
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "" |