forked from JMPerez/promise-throttle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (27 loc) · 996 Bytes
/
Makefile
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
# ==============================================================================
# Node Tests
# ==============================================================================
REPORTER = spec
all: lint test coverage dist
install:
npm install && npm install eslint -g
lint:
eslint lib/*.js
dist:
mkdir -p dist && browserify lib/browser.js -o dist/promise-throttle.js
test:
@NODE_ENV=test NODE_PATH=lib ./node_modules/.bin/mocha \
--reporter $(REPORTER)
coverage:
@NODE_ENV=test NODE_PATH=lib ./node_modules/.bin/mocha \
--require blanket \
--reporter html-cov > ./test/coverage.html
coveralls:
$(MAKE) test
@NODE_ENV=test NODE_PATH=lib ./node_modules/.bin/mocha \
--require blanket \
--reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
# ==============================================================================
# Static Analysis
# ==============================================================================
.PHONY: lint test coverage dist