Created
April 21, 2013 20:22
-
-
Save Arood/5430932 to your computer and use it in GitHub Desktop.
Almost like my watch-script, but will only run once, and will minify the code as well.
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
#!/bin/sh | |
JS_PATH="_js" | |
FINAL_JS="scripts.js" | |
SASS_PATH="_sass" | |
FINAL_CSS="." | |
echo " ≫ Building and minifying assets." | |
rm $FINAL_JS | |
touch $FINAL_JS | |
cat $JS_PATH/*.js >> $FINAL_JS | |
echo " \033[0;32m$FINAL_JS\033[0m" | |
sass --force --update $SASS_PATH:$FINAL_CSS --style compressed | |
jsmin --overwrite scripts.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment