forked from badgateway/ketting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (37 loc) · 796 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
43
44
45
46
47
48
49
export PATH:=./node_modules/.bin/:$(PATH)
.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
nyc mocha
.PHONY: test-debug
test-debug:
mocha --inspect-brk
.PHONY: lint
lint:
tslint -c tslint.json --project tsconfig.json 'src/**/*.ts' 'test/**/*.ts'
.PHONY: fix
fix:
tslint -c tslint.json --project tsconfig.json 'src/**/*.ts' 'test/**/*.ts' --fix
.PHONY: tsbuild
tsbuild:
tsc
.PHONY: watch
watch:
tsc --watch
.PHONY: browserbuild
browserbuild: tsbuild
mkdir -p browser
webpack \
--optimize-minimize \
-p \
--display-modules \
--sort-modules-by size
browser/ketting.min.js: browserbuild
browser/mocha-tests.js: browserbuild
testserver: build
ts-node test/testserver.ts