-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (19 loc) · 706 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
include node_modules/make-node/main.mk
SOURCES = com/**/*.js com/**/**/*.js com/**/**/**/*.js
TESTS = test/*.test.js test/**/*.test.js test/**/**/*.test.js test/**/**/**/*.test.js
LCOVFILE = ./reports/coverage/lcov.info
MOCHAFLAGS = --require ./test/bootstrap/node
view-docs:
open ./docs/index.html
view-cov:
open ./reports/coverage/lcov-report/index.html
clean: clean-docs clean-cov
-rm -r $(REPORTSDIR)
clobber: clean
-rm -r node_modules
apidoc: $(SOURCES)
jsdoc $(JSDOCFLAGS) -d wwwhtml $^
# npm install swagger-jsdoc --no-save
openapi: $(SOURCES) node_modules/.bin/swagger-jsdoc
node_modules/.bin/swagger-jsdoc -d etc/openapi.yaml -o openapi.yaml $(SOURCES)
.PHONY: clean clobber