Browse Source

setting up things and such

master
mort 8 years ago
commit
1fb9226948
5 changed files with 31 additions and 0 deletions
  1. 3
    0
      .gitignore
  2. 2
    0
      Makefile
  3. 10
    0
      index.html
  4. 1
    0
      js/script.js
  5. 15
    0
      package.json

+ 3
- 0
.gitignore View File

@@ -0,0 +1,3 @@
node_modules
.jshintrc
bundle.js

+ 2
- 0
Makefile View File

@@ -0,0 +1,2 @@
build:
browserify -t babelify --outfile bundle.js js/*.js

+ 10
- 0
index.html View File

@@ -0,0 +1,10 @@
<!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>

+ 1
- 0
js/script.js View File

@@ -0,0 +1 @@
window.sock = new SockSugar("ws://localhost:8081");

+ 15
- 0
package.json View File

@@ -0,0 +1,15 @@
{
"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"
}
}

Loading…
Cancel
Save