Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (12 sloc) 497 Bytes
# compile
rm -rf dist
mkdir dist
coffee -o dist -c lib/main.coffee lib/defaultClient.coffee lib/Client.coffee lib/Socket.coffee lib/util.coffee
# build
node_modules/.bin/browserbuild -m main -b dist/ node_modules/engine.io-client/lib dist > protosock.js
# minify
node_modules/.bin/uglifyjs -nc --unsafe -mt -o protosock.min.js protosock.js
echo "File size (minified): " && cat protosock.min.js | wc -c
echo "File size (gzipped): " && cat protosock.min.js | gzip -9f | wc -c
# clean
rm -rf dist