Skip to content

Instantly share code, notes, and snippets.

@Arood
Created April 21, 2013 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arood/5430932 to your computer and use it in GitHub Desktop.
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.
#!/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