Created
August 18, 2012 06:34
-
-
Save yocontra/3384896 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# demo | |
cp protosock.js protosock.min.js example | |
coffee -o example -c example/vein.coffee example/test.coffee | |
# clean | |
rm -rf dist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment