ソースを参照

setting up things and such

master
mort 8年前
コミット
1fb9226948
5個のファイルの変更31行の追加0行の削除
  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 ファイルの表示

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

+ 2
- 0
Makefile ファイルの表示

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

+ 10
- 0
index.html ファイルの表示

@@ -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 ファイルの表示

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

+ 15
- 0
package.json ファイルの表示

@@ -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"
}
}

読み込み中…
キャンセル
保存