From fc7b4fe55033e2763ee4a887238dc6b21d347427 Mon Sep 17 00:00:00 2001 From: Philipp Borgers Date: Mon, 21 Jan 2013 11:46:29 +0100 Subject: [PATCH] add jshint devDependency and a make target for jshint --- Makefile | 6 +++++- package.json | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 237342d..e94b7ce 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,8 @@ params := $(connectionString) node-command := xargs -n 1 -I file node file $(params) -.PHONY : test test-connection test-integration bench test-native build/default/binding.node +.PHONY : test test-connection test-integration bench test-native \ + build/default/binding.node jshint help: @echo "make prepare-test-db [connectionString=pg://]" @@ -50,3 +51,6 @@ prepare-test-db: @echo "***Preparing the database for tests***" @find script/create-test-tables.js | $(node-command) +jshint: + @echo "***Starting jshint***" + @./node_modules/.bin/jshint lib diff --git a/package.json b/package.json index a29f938..63430a4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,10 @@ "dependencies" : { "generic-pool" : "2.0.2" }, - "scripts" : { + "devDependencies" : { + "jshint" : "*" + }, + "scripts" : { "test" : "make test-all connectionString=pg://postgres@localhost:5432/postgres", "prepublish": "rm -r build || (exit 0)", "install" : "node-gyp rebuild || (exit 0)"