forked from fluent-ffmpeg/node-fluent-ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
29 lines (20 loc) · 639 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
REPORTER = spec
MOCHA = node_modules/.bin/mocha
test:
@NODE_ENV=test $(MOCHA) --require should --reporter $(REPORTER)
test-colors:
@NODE_ENV=test $(MOCHA) --require should --reporter $(REPORTER) --colors
test-cov: test/coverage.html
test/coverage.html: lib-cov
@FLUENTFFMPEG_COV=1 NODE_ENV=test $(MOCHA) --require should --reporter html-cov > test/coverage.html
lib-cov:
@rm -fr ./$@
@jscoverage lib $@
publish:
@npm version patch -m "version bump"
@npm publish
JSDOC = node_modules/.bin/jsdoc
JSDOC_CONF = tools/jsdoc-conf.json
doc:
$(JSDOC) --configure $(JSDOC_CONF)
.PHONY: test test-cov lib-cov test-colors publish doc