Created
June 21, 2011 21:22
-
-
Save dasim/1038934 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
# odstraní starý soubor | |
echo "Javascript processing..." | |
if [ -e html/assets/js/combined.js ]; then rm html/assets/js/combined.js; fi | |
# sjednotí podle masky js soubory do jendoho a minimalizuje. tady je třeba dávat pozor na jejich pořadí a výběr, tohle je nejjednodušší varianta | |
cat html/assets/js/*.js > html/assets/js/combined.js | |
java -jar tools/yuicompressor-2.4.6.jar html/assets/js/combined.js -o html/assets/js/combined.js --charset utf-8 | |
# mám jen jeden hlavní CSS soubor, ten se minimalizuje | |
echo "CSS processing..." | |
java -jar tools/yuicompressor-2.4.6.jar html/assets/css/style.css -o html/assets/css/style.min.css --charset utf-8 | |
git add html/assets/js/combined.js | |
git add html/assets/css/style.min.css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment