-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 662 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 662 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
default: deps compile
deps: node_modules
node_modules:
npm install
clean:
rm -rf lib node_modules
compile:
node_modules/.bin/tsc --declaration
watch:
node_modules/.bin/tsc --watch --declaration
test:
node_modules/.bin/ts-mocha test/suite.ts --exit $(TEST_ARGS)
test-cov:
node_modules/.bin/nyc \
--require source-map-support/register \
--require ts-node/register \
--reporter=html \
--reporter=lcov \
--extension .ts \
node_modules/.bin/ts-mocha --exit test/suite.ts
lint:
node_modules/.bin/eslint src
package: clean deps compile
publish: package test
npm publish
.PHONY: default deps clean compile test watch package publish