Skip to content

Commit

Permalink
fix(control): pass jshint when scaffolding using sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
balthazar committed Feb 16, 2015
1 parent 8ccff74 commit 3678490
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/templates/#.jshintrc → app/templates/.jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"expect": true,
"afterEach": true,
"alert": true,
"beforeEach": true
"beforeEach": true<% if (filters.sockets) { %>,
"io" : true<% } %>
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ angular.module('<%= appname %>')
if (index !== -1) {
items.splice(index, 1);
}
})
});

},
unsyncModel: function (model) {
Expand Down
4 changes: 1 addition & 3 deletions app/templates/server/config/sockets(sockets).js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict';

var config = require('./environment');

module.exports = function (io) {

io.on('connection', function (socket) {
Expand All @@ -15,7 +13,7 @@ module.exports = function (io) {
console.log('[%s] %s disconnected.', new Date().toUTCString(), socket.ip);
});

console.log('[%s] %s connected.', socket.connectDate.toUTCString(), socket.ip);
console.log('[%s] %s logged.', socket.connectDate.toUTCString(), socket.ip);

});

Expand Down

0 comments on commit 3678490

Please sign in to comment.