forked from badgateway/ketting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (32 loc) · 790 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
39
40
41
42
.PHONY: build
build: browser/ketting.min.js browser/mocha-tests.js tsbuild
.PHONY: clean
clean:
-rm -r browser/
-rm -r dist/
.PHONY: test
test: lint
./node_modules/.bin/nyc ./node_modules/.bin/mocha
.PHONY: test-debug
test-debug:
./node_modules/.bin/mocha --inspect-brk
.PHONY: lint
lint:
./node_modules/.bin/eslint --quiet 'src/**/*.ts' 'test/**/*.ts'
.PHONY: fix
fix:
./node_modules/.bin/eslint --quiet 'src/**/*.ts' 'test/**/*.ts' --fix
.PHONY: tsbuild
tsbuild:
./node_modules/.bin/tsc
.PHONY: watch
watch:
./node_modules/.bin/tsc --watch
.PHONY: browserbuild
browserbuild: tsbuild
mkdir -p browser
./node_modules/.bin/webpack
browser/ketting.min.js: browserbuild
browser/mocha-tests.js: browserbuild
testserver: build
./node_modules/.bin/ts-node test/testserver.ts