Use grunt to lint/jshint files.

This commit is contained in:
Sebastian Tiedtke
2013-01-11 14:40:38 -08:00
parent cd45ca7729
commit 5316776984
4 changed files with 21 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
#!/usr/bin/env node
+1 -1
View File
@@ -63,7 +63,7 @@ exports.executeScript = function(req, res) {
iosResponse = session.client.proxy(requestData.script, true);
}
catch (e) {
var errObj = {sessionId: sessionId, 'status': 13, 'value': JSON.stringify(e)}
var errObj = {sessionId: sessionId, 'status': 13, 'value': JSON.stringify(e)};
req.send(400, errObj);
}
+17
View File
@@ -0,0 +1,17 @@
module.exports = function(grunt) {
grunt.initConfig({
lint: {
all: ['*.js', 'app/*.js']
}
, jshint: {
all: {
options: {
laxcomma: true
, es5: true
}
}
}
});
grunt.registerTask('default', 'lint');
};
+2 -1
View File
@@ -35,6 +35,7 @@
"test": "mocha test/unit"
},
"devDependencies": {
"mocha": "~1.8.1"
"mocha": "~1.8.1",
"grunt": "~0.3.17"
}
}