Permalink
Browse files

added Socket.IO to JavaScript Repository.

  • Loading branch information...
1 parent 99b51a9 commit d42ac79c20eef58043abe89734effda8868607e1 @stephenlb stephenlb committed Feb 26, 2013
Showing with 3,635 additions and 5 deletions.
  1. +15 −5 build-all
  2. +491 −0 socket.io/README.md
  3. +40 −0 socket.io/acknowledgements/app.js
  4. +26 −0 socket.io/acknowledgements/index.html
  5. +4 −0 socket.io/acknowledgements/styles.css
  6. +35 −0 socket.io/bootstrap-mobile/app.js
  7. BIN socket.io/bootstrap-mobile/icon.png
  8. +34 −0 socket.io/bootstrap-mobile/index.html
  9. BIN socket.io/bootstrap-mobile/startup.png
  10. +4 −0 socket.io/bootstrap-mobile/styles.css
  11. +35 −0 socket.io/bootstrap-web/app.js
  12. +21 −0 socket.io/bootstrap-web/index.html
  13. +4 −0 socket.io/bootstrap-web/styles.css
  14. +4 −0 socket.io/build
  15. +42 −0 socket.io/crypto.js
  16. +49 −0 socket.io/custom-presence/app.js
  17. +21 −0 socket.io/custom-presence/index.html
  18. +4 −0 socket.io/custom-presence/styles.css
  19. +40 −0 socket.io/encryption/app.js
  20. +21 −0 socket.io/encryption/index.html
  21. +4 −0 socket.io/encryption/styles.css
  22. +36 −0 socket.io/hello-world/app.js
  23. +21 −0 socket.io/hello-world/index.html
  24. +4 −0 socket.io/hello-world/styles.css
  25. +38 −0 socket.io/here_now/app.js
  26. +25 −0 socket.io/here_now/index.html
  27. +4 −0 socket.io/here_now/styles.css
  28. +51 −0 socket.io/history/app.js
  29. +25 −0 socket.io/history/index.html
  30. +4 −0 socket.io/history/styles.css
  31. +35 −0 socket.io/multiplexing/app.js
  32. +21 −0 socket.io/multiplexing/index.html
  33. +4 −0 socket.io/multiplexing/styles.css
  34. +29 −0 socket.io/non-socket-io-communication/README.md
  35. +30 −0 socket.io/non-socket-io-communication/app.js
  36. BIN socket.io/non-socket-io-communication/icon.png
  37. +48 −0 socket.io/non-socket-io-communication/index.html
  38. BIN socket.io/non-socket-io-communication/startup.png
  39. +4 −0 socket.io/non-socket-io-communication/styles.css
  40. +38 −0 socket.io/presence/app.js
  41. +23 −0 socket.io/presence/index.html
  42. +4 −0 socket.io/presence/styles.css
  43. +60 −0 socket.io/public-private-communication/public-private-communication.html
  44. +142 −0 socket.io/public-private-communication/public-private-communication.js
  45. +92 −0 socket.io/simple-button/app.js
  46. BIN socket.io/simple-button/icon.png
  47. +49 −0 socket.io/simple-button/index.html
  48. BIN socket.io/simple-button/notify.mp3
  49. BIN socket.io/simple-button/notify.ogg
  50. BIN socket.io/simple-button/startup.png
  51. +146 −0 socket.io/simple-button/styles.css
  52. +262 −0 socket.io/socket.io.js
  53. +1,270 −0 socket.io/socket.io.min.js
  54. BIN socket.io/socket.io.min.js.gz
  55. +55 −0 socket.io/unit-test/unit-test.html
  56. +221 −0 socket.io/unit-test/unit-test.js
View
@@ -9,13 +9,13 @@ MINOUT=pubnub-$VERSION.min.js
if [ -z "$googleminify" ]; then googleminify="/opt/minify/compiler.jar"; fi
-echo -e " "
-echo -e " USING: $googleminify TO MINIFY..."
-echo -e " COMPILING PUBNUB JAVASCRIPT API..."
+echo -e " USING: $googleminify"
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
## Web Build
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+echo -e " "
+echo -e " BUILDING WEB..."
rm ./web/pubnub-$VERSION*
echo -n "// " >> ./web/$TOPOUT
cat ./VERSION ./core/json.js ./core/pubnub.js ./core/websocket.js >> ./web/$TOPOUT
@@ -24,9 +24,19 @@ cat ./VERSION >> ./web/$MINOUT
echo "(function(){" >> ./web/$MINOUT
java -jar $googleminify --js=./web/$TOPOUT --compilation_level=ADVANCED_OPTIMIZATIONS >> ./web/$MINOUT
echo "})();" >> ./web/$MINOUT
-echo -e " >>COMPRESSING<< PUBNUB JAVASCRIPT API..."
cp ./web/$TOPOUT ./web/pubnub.js
cp ./web/$MINOUT ./web/pubnub.min.js
-echo -e " "
echo -e " DONE WEB BUILD!\n"
+## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+## Socket.IO Build
+## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+echo -e " "
+echo -e " BUILDING SOCKET.IO..."
+cat ./socket.io/socket.io.js | java -jar $googleminify > ./socket.io/socket.io.tmp
+cat ./web/pubnub.min.js \
+ ./core/crypto/gibberish-aes.js \
+ ./core/crypto/encrypt-pubnub.js \
+ ./socket.io/socket.io.tmp > ./socket.io/socket.io.min.js
+rm ./socket.io/socket.io.tmp
+echo -e " DONE SOCKET.IO BUILD!\n"
Oops, something went wrong.

0 comments on commit d42ac79

Please sign in to comment.