Skip to content
Permalink
Browse files

Script minification bash scripts are added.

  • Loading branch information
tasomaniac committed Feb 18, 2015
1 parent 5ab4083 commit 7f25a9a22d139b8bc017294104a5c58d7e13ea98
Showing with 21 additions and 0 deletions.
  1. +17 −0 automation/minifying/minify_js.sh
  2. +4 −0 automation/minifying/minify_scripts_js.sh
@@ -0,0 +1,17 @@
#!/bin/bash

if [ "$#" -ne 1 ]; then
FILES="../../js";
else
FILES=$1;
fi


for f in $FILES/*.js;
do
if [[ $f != *".min"* ]]; then
echo "Processing $f ..."
echo "java -jar yuicompressor-2.4.8.jar $f -o ${f%.js}.min.js"
java -jar yuicompressor-2.4.8.jar $f -o ${f%.js}.min.js
fi
done
@@ -0,0 +1,4 @@
#!/bin/bash

echo "Optimizing scripts.js to scripts.min.js"
java -jar yuicompressor-2.4.8.jar ../../js/scripts.js -o ../../js/scripts.min.js

0 comments on commit 7f25a9a

Please sign in to comment.
You can’t perform that action at this time.