/ Published in: Bash
Temporary js compile workflow until the Interleave developer implements "watch" functionality
Expand |
Embed | Plain Text
#! read -p "Compress output? y/n: " yn PATH_YUI=/Volumes/woot/yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar PATH_IN=./src/js/ PATH_OUT=./www/assets/js/ for file in before.js after.js do if [ -f $PATH_IN$file ] then interleave -o $file -p $PATH_OUT $PATH_IN$file #Compress if [ "$yn" == "y" -a -f $PATH_YUI ] then java -jar $PATH_YUI $PATH_OUT$file -o $PATH_OUT$file else echo "$file not compressed" fi else echo "$PATH_IN$file doesn't exist!" fi done if [ ! -f $PATH_YUI ] then echo "YUI Compressor not found" fi
You need to login to post a comment.
