-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (25 loc) · 715 Bytes
/
Makefile
File metadata and controls
39 lines (25 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
default: test
MOCHA = node_modules/.bin/mocha -u tdd --check-leaks
VERSION = $(shell node -pe 'require("./package.json").version')
all: test
.PHONY: release test loc clean
run:
@./node_modules/node-dev/bin/node-dev lib/server.js
run-test:
@./bin/mpr run ./test/support/procs.json
tag:
@git tag -a "v$(VERSION)" -m "Version $(VERSION)"
tag-push: tag
@git push --tags origin HEAD:master
test:
@NODE_ENV=test ./bin/mocha.sh
test-slow: build
@NODE_ENV=test $(MOCHA) -R spec test/*.coffee --grep @slow --timeout 10000
test-all: build
@NODE_ENV=test $(MOCHA) -R spec test/*.coffee --timeout 10000
loc:
@find lib/ -name *.js | xargs wc -l
setup:
@npm install . -d
clean-dep:
@rm -rf node_modules