Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (18 sloc) 358 Bytes
#!/bin/sh
CRACKLE=$(cat <<EOF
/**
* Crackle
* JavaScript predicate, comparator, equality, and utility functions
* https://github.com/wayoutmind/crackle
*/
EOF
)
IN=./crackle.js
OUT=./crackle.min.js
echo "$CRACKLE" > $OUT
echo >> $OUT
curl -X POST \
--data-urlencode "js_code@${IN}" \
http://marijnhaverbeke.nl/uglifyjs \
>> $OUT
echo >> $OUT