@geoblink/pg-spice
Version:
Monkey patch providing sugar and spice atop the node.js PostgreSQL client library
29 lines (20 loc) • 504 B
Plain Text
MOCHA_OPTS= --check-leaks
REPORTER = dot
VERSION = $(shell node -e 'console.log(require("./package.json").version)')
PACKAGE_NAME = $(shell node -e 'console.log(require("./package.json").name)')
all: build test
check: test
build:
npm install
test: jshint test-unit
test-unit:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
$(MOCHA_OPTS)
jshint:
@./node_modules/.bin/jshint index.js
package: clean test
npm pack
clean:
rm -f $(PACKAGE_NAME)*.tgz