mirror of
https://github.com/appium/appium.git
synced 2026-05-23 04:18:53 -05:00
Use grunt to lint/jshint files.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -35,6 +35,7 @@
|
||||
"test": "mocha test/unit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha": "~1.8.1"
|
||||
"mocha": "~1.8.1",
|
||||
"grunt": "~0.3.17"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user