Skip to content

Instantly share code, notes, and snippets.

@trodrigues
Created September 21, 2012 09:28
Show Gist options
  • Save trodrigues/3760573 to your computer and use it in GitHub Desktop.
Save trodrigues/3760573 to your computer and use it in GitHub Desktop.
bash functions
uglify(){
./node_modules/uglify-js/bin/uglifyjs $1 > $2
if [ $? != 0 ] ; then
exit 1
fi
}
build_js(){
./node_modules/requirejs/bin/r.js -o $1 $rjsopt
es=$?
if [ $es -ne 0 ] ; then
exit $es
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment