Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (14 sloc) 474 Bytes
# Build dependencies:
# * sh
# * UglifyJS (npm install uglify-js)
# * CoffeeScript
echo "Building dombrew.js..."
coffee -p dombrew.js.coffee > dombrew.js
echo "Building dombrew.min.js..."
#java -jar compiler.jar --js dombrew.js > dombrew.min.js
uglifyjs dombrew.js -cm > dombrew.min.js
echo "Building dombrew.min.js.gz to check the size..."
gzip -c9 dombrew.min.js > dombrew.min.js.gz
echo "Done:"
du -sh dombrew.js dombrew.min.js dombrew.min.js.gz
rm dombrew.min.js.gz