| node_modules | |||||
| .jshintrc | |||||
| bundle.js |
| build: | |||||
| browserify -t babelify --outfile bundle.js js/*.js |
| <!DOCTYPE html> | |||||
| <html> | |||||
| <head> | |||||
| <title>GameJam Game</title> | |||||
| </head> | |||||
| <body> | |||||
| <script src="node_modules/socksugar/client.js"></script> | |||||
| <script src="bundle.js"></script> | |||||
| </body> | |||||
| </html> |
| window.sock = new SockSugar("ws://localhost:8081"); |
| { | |||||
| "name": "gamejam-client", | |||||
| "version": "1.0.0", | |||||
| "description": "", | |||||
| "main": "index.js", | |||||
| "scripts": { | |||||
| "test": "echo \"Error: no test specified\" && exit 1" | |||||
| }, | |||||
| "author": "", | |||||
| "license": "ISC", | |||||
| "dependencies": { | |||||
| "babelify": "^6.4.0", | |||||
| "socksugar": "^0.3.1" | |||||
| } | |||||
| } |