From ada09f3e6b19c087a93f70ac1d5fef7bb68978ea Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sun, 22 Jan 2012 14:56:08 +0100 Subject: [PATCH] Added a jshint binary --- bin/jshint.sh | 9 +++++++++ package.json | 29 ++++++++++++++++------------- 2 files changed, 25 insertions(+), 13 deletions(-) create mode 100755 bin/jshint.sh diff --git a/bin/jshint.sh b/bin/jshint.sh new file mode 100755 index 00000000..4dea7396 --- /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 0a73b923..efc89fd7 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" }