UNPKG

504 BPlain TextView Raw
1MOCHA_OPTS= --check-leaks
2REPORTER = dot
3VERSION = $(shell node -e 'console.log(require("./package.json").version)')
4PACKAGE_NAME = $(shell node -e 'console.log(require("./package.json").name)')
5
6all: build test
7
8check: test
9
10build:
11 npm install
12
13test: jshint test-unit
14
15test-unit:
16 @NODE_ENV=test ./node_modules/.bin/mocha \
17 --reporter $(REPORTER) \
18 $(MOCHA_OPTS)
19
20jshint:
21 @./node_modules/.bin/jshint index.js
22
23package: clean test
24 npm pack
25
26clean:
27 rm -f $(PACKAGE_NAME)*.tgz
28
29.PHONY: test clean
\No newline at end of file