-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (38 loc) · 1.71 KB
/
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
NODE_ENV?=production
.PHONY: all clean jsclean test
all: js go
dashboard/bundle.min.js: dashboard/index.js dashboard/api-client.js dashboard/cache.js dashboard/helpers.js dashboard/components/*.js
cd dashboard; NODE_ENV=$(NODE_ENV) ./node_modules/.bin/webpack
dashboard/dist/server.js: dashboard/server.js
cd dashboard; ./node_modules/.bin/webpack --config webpack-server.config.js
js: dashboard/bundle.min.js dashboard/dist/server.js
services/web/web: errors/*.go github/*.go interfaces/*.go middleware/*.go models/*.go routes/*.go services/web/*.go simulate/*.go
cd services/web; go build
services/prewarm/prewarm: errors/*.go github/*.go interfaces/*.go prewarm/*.go services/prewarm/*.go simulate/*.go
cd services/prewarm; go build
go: services/prewarm/prewarm services/web/web
clean:
rm -f dashboard/bundle.min.js dashboard/*.js.map dashboard/dist/server.js services/prewarm/prewarm services/web/web
jsclean:
rm -f dashboard/bundle.min.js dashboard/*.js.map
goclean:
rm -f services/web/web services/prewarm/prewarm
test:
go vet github.com/ksheedlo/ghviz/errors \
github.com/ksheedlo/ghviz/github \
github.com/ksheedlo/ghviz/interfaces \
github.com/ksheedlo/ghviz/middleware \
github.com/ksheedlo/ghviz/models \
github.com/ksheedlo/ghviz/prewarm \
github.com/ksheedlo/ghviz/services/prewarm \
github.com/ksheedlo/ghviz/services/web \
github.com/ksheedlo/ghviz/simulate && \
go test -cover github.com/ksheedlo/ghviz/errors \
github.com/ksheedlo/ghviz/github \
github.com/ksheedlo/ghviz/middleware \
github.com/ksheedlo/ghviz/models \
github.com/ksheedlo/ghviz/prewarm \
github.com/ksheedlo/ghviz/routes \
github.com/ksheedlo/ghviz/simulate && \
cd dashboard && \
NODE_ENV=development npm run test