3 command -v uglifyjs >/dev/null 2>&1 || { echo >&2 "I require UglifyJS but it's not installed. Aborting."; exit 1; }
9 "view/js/ajaxupload.js"
12 "vendor/asset/base64/base64.min.js"
13 "view/theme/frost/js/acl.js"
14 "view/theme/frost/js/jquery.divgrow-1.3.1.f1.js"
15 "view/theme/frost/js/main.js"
16 "view/theme/frost/js/theme.js"
17 "view/theme/frost-mobile/js/acl.js"
18 "view/theme/frost-mobile/js/jquery.divgrow-1.3.1.f1.js"
19 "view/theme/frost-mobile/js/main.js"
20 "view/theme/frost-mobile/js/theme.js"
21 "view/theme/decaf-mobile/js/theme.js"
24 "library/colorbox/jquery.colorbox.js"
27 for i in ${JSFILES[@]}
29 MINFILE=${i%%.js}.min.js
30 echo "Minifying $i into $MINFILE"
32 $MINIFY_CMD -o $MINFILE $i
35 for i in ${JSFILES2[@]}
37 MINFILE=${i%%.js}-min.js
38 echo "Minifying $i into $MINFILE"
40 $MINIFY_CMD -o $MINFILE $i
43 for i in ${JSFILES3[@]}
45 MINFILE=${i%%_src.js}.js
46 echo "Minifying $i into $MINFILE"
48 $MINIFY_CMD -o $MINFILE $i