node-token-sockjs
Version:
A wrapper around express, sockjs-node, and redis that provides token based authentication, a websocket based rpc-like abstraction, and an optional publish subscribe interface.
32 lines (25 loc) • 665 B
JavaScript
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
jshint: {
files: [
"Gruntfile.js",
"lib/**/*.js",
"test/**/*.js"
],
options: {
laxbreak: true
}
},
mochaTest: {
options: { reporter: 'spec', checkLeaks: true },
src: ["test/index.js"]
}
});
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-mocha-test");
grunt.registerTask("lint", [ "jshint" ]);
grunt.registerTask("test", [ "mochaTest"]);
grunt.registerTask("default", [ "lint", "test" ]);
};