diff --git a/bin/jshint.sh b/bin/jshint.sh new file mode 100755 index 000000000..4dea73961 --- /dev/null +++ b/bin/jshint.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -d "../bin" ]; then + cd "../" +fi + +JSHINT=./node_modules/jshint/bin/hint + +$JSHINT ./node/ diff --git a/package.json b/package.json index 0a73b923e..efc89fd7a 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { - "name" : "etherpad-lite", - "description" : "A Etherpad based on node.js", - "homepage" : "https://github.com/Pita/etherpad-lite", - "keywords" : ["etherpad", "realtime", "collaborative", "editor"], - "author" : "Peter 'Pita' Martischka - Primary Technology Ltd", - "contributors": [ - { "name": "John McLear", - "name": "Hans Pinckaers", - "name": "Robin Buse"} - ], - "dependencies" : { + "name" : "etherpad-lite", + "description" : "A Etherpad based on node.js", + "homepage" : "https://github.com/Pita/etherpad-lite", + "keywords" : ["etherpad", "realtime", "collaborative", "editor"], + "author" : "Peter 'Pita' Martischka - Primary Technology Ltd", + "contributors" : [ + { "name": "John McLear", + "name": "Hans Pinckaers", + "name": "Robin Buse" } + ], + "dependencies" : { "socket.io" : "0.8.7", "ueberDB" : "0.1.3", "async" : "0.1.15", @@ -22,6 +22,9 @@ "log4js" : "0.3.9", "jsdom-nocontextifiy" : "0.2.10", "async-stacktrace" : "0.0.2" - }, - "version" : "1.0.0" + }, + "devDependencies": { + "jshint" : "*" + }, + "version" : "1.0.0" }