#!/bin/sh alias uglify-js=$PWD/bin/uglifyjs UGLIFY_OPTIONS=$@ minify_in_situ() { ARGS="$UGLIFY_OPTIONS --in-situ" DIRS="$1" echo '> uglify-js' $DIRS $UGLIFY_OPTIONS for i in `find $DIRS -name '*.js'` do ARGS="$ARGS $i" done uglify-js $ARGS } rm -rf tmp/buble \ && git clone https://github.com/bublejs/buble.git tmp/buble \ && cd tmp/buble \ && rm -rf .git/hooks \ && git checkout dcc5ab02c9af6ddaad94e587c4911677340ec100 \ && patch -l -p1 <