metadata
This commit is contained in:
parent
49bf42e1fb
commit
2e22418e07
2 changed files with 8 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "socket-io-crafty",
|
||||
"version": "0.0.1",
|
||||
"description": "Socket.IO for a CraftyJS game on Node.js on Docker",
|
||||
"name": "node-fftcg",
|
||||
"version": "0.0.2",
|
||||
"description": "FFTCG online using Socket.IO and CraftyJS on Node.js on Docker",
|
||||
"author": "JMM <jmm@yavook.de>",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
@ -9,6 +9,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"express": "^4.16.1",
|
||||
"helmet": "*",
|
||||
"socket.io": "^2.1.1",
|
||||
"gulp": "*",
|
||||
"gulp-sourcemaps": "*",
|
||||
|
|
|
@ -3,7 +3,8 @@ var
|
|||
http = require('http'),
|
||||
socketio = require('socket.io'),
|
||||
express = require('express'),
|
||||
gulp = global.gulp = require('gulp');
|
||||
gulp = global.gulp = require('gulp'),
|
||||
helmet = require('helmet');
|
||||
|
||||
// gulp the sources
|
||||
require('./gulpfile');
|
||||
|
@ -19,6 +20,8 @@ web.listen(8080, function () {
|
|||
console.log('listening on port 8080');
|
||||
});
|
||||
|
||||
app.use(helmet());
|
||||
|
||||
// Static content
|
||||
app.use(express.static(__dirname + '/static'));
|
||||
|
||||
|
|
Reference in a new issue