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