Skip to content

Commit

Permalink
precommit + update socket.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Psychopoulet committed Jun 28, 2017
1 parent f49e8e3 commit 2228a41
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 17 deletions.
24 changes: 16 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@

// deps

const path = require("path"),
const path = require("path");

gulp = require("gulp"),
eslint = require("gulp-eslint"),
excludeGitignore = require("gulp-exclude-gitignore"),
mocha = require("gulp-mocha"),
plumber = require("gulp-plumber");
// gulp
const gulp = require("gulp");
const plumber = require("gulp-plumber");

// tests
const eslint = require("gulp-eslint");
const mocha = require("gulp-mocha");

// private

Expand All @@ -25,10 +27,16 @@

return gulp.src(_allJSFiles)
.pipe(plumber())
.pipe(excludeGitignore())
.pipe(eslint({
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"indent": 0
"linebreak-style": 0,
"quotes": [ 1, "double" ],
"indent": 0,
// "indent": [ 2, "tab" ],
"semi": [ 2, "always" ]
},
"env": {
"node": true, "es6": true, "mocha": true
Expand Down
31 changes: 22 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,25 @@
"main": "lib/main.js",
"scripts": {
"start": "node lib/main.js",
"test": "gulp"
"test": "gulp mocha"
},
"pre-commit": [
"test"
],
"repository": {
"type": "git",
"url": "git://github.com/Psychopoulet/node-multi-socketservers.git"
},
"keywords": [
"http", "https", "multi", "many", "ssl", "port", "server", "web", "socket"
"http",
"https",
"multi",
"many",
"ssl",
"port",
"server",
"web",
"socket"
],
"author": "Sébastien VIDAL",
"license": "ISC",
Expand All @@ -21,15 +32,17 @@
},
"dependencies": {
"node-multi-webserver": "^1.2.4",
"socket.io": "^1.4.8"
"socket.io": "^2.0.3"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-eslint": "^2.1.0",
"gulp-exclude-gitignore": "^1.0.0",
"gulp-mocha": "^2.2.0",
"gulp-plumber": "^1.1.0"
"gulp-plumber": "^1.1.0",
"gulp-eslint": "^3.0.1",
"gulp-mocha": "^4.3.1",
"pre-commit": "^1.2.2"
},
"homepage": "https://github.com/Psychopoulet/node-multi-socketservers#readme",
"engines" : { "node" : ">=4.0.0" }
}
"engines": {
"node": ">=4.0.0"
}
}

0 comments on commit 2228a41

Please sign in to comment.