Randomise new users and shorten compile script

This commit is contained in:
Chris Blanchard 2015-07-23 11:35:23 +01:00
parent a7310f503a
commit 60afbf1d52
2 changed files with 3 additions and 4 deletions

View file

@ -8,12 +8,11 @@ var gatherController = require("../lib/gather/controller");
var userController = require("../lib/user/controller");
module.exports = function (io) {
var id = 2131;
var rootNamespace = io.of('/')
// Authorisation
io.use(function (socket, next) {
var id = Math.floor(Math.random() * 5000) + 1;
enslClient.getUserById({
id: id
}, function (error, response, body) {

View file

@ -10,8 +10,8 @@
"scripts": {
"test": "NODE_ENV=test mocha spec/",
"start": "npm run compile:react && node index.js",
"compile:dev:react": "node_modules/react-tools/bin/jsx --watch --no-cache-dir --source-map-inline -x jsx lib/react/ public/js/",
"compile:react": "node_modules/react-tools/bin/jsx -x jsx lib/react/ public/js/",
"compile:dev": "node_modules/react-tools/bin/jsx --watch --no-cache-dir --source-map-inline -x jsx lib/react/ public/js/",
"compile": "node_modules/react-tools/bin/jsx -x jsx lib/react/ public/js/",
"dev": "nodemon index.js"
},
"repository": {