From e6c898da26f3abe290112678f164c49f814d789d Mon Sep 17 00:00:00 2001 From: Geoff Wagstaff Date: Tue, 5 Jan 2016 09:32:30 +0000 Subject: [PATCH] Remove Makefile, move scripts to package.json --- Makefile | 12 ------------ package.json | 3 ++- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 1fe1ee1..0000000 --- a/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -RUNNER ?= ./node_modules/mocha/bin/mocha -REPORTER ?= list - -run = $(RUNNER) -R $(REPORTER) $(2) $(1) - -test: - $(call run,./test/warlock.js) - -bench: - $(call run,./test/bench.js) - -.PHONY: test diff --git a/package.json b/package.json index 83d8d51..b705d26 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "Battle-hardened distributed locking using redis", "main": "lib/warlock.js", "scripts": { - "test": "make test" + "test": "mocha -R list ./test/warlock", + "bench": "mocha -R list ./test/bench" }, "repository": { "type": "git",