-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (21 loc) · 970 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
.PHONY: lighthouse.html
numblr: favicon.png *.go Makefile
go build .
strip numblr
upx numblr
favicon.png: favicon.svg
inkscape --export-width=192 --export-height=192 favicon.svg -o favicon.png
reload_run:
git ls-files --cached --others | grep -v '_test.go$$' | grep -E '.(go|md)$$' | entr -c -r go run . -addr :5555 -debug-addr :6060 -stats
reload_run_db:
git ls-files --cached --others | grep -v '_test.go$$' | grep -E '.(go|md)$$' | entr -c -r go run . -addr :5556 -debug-addr :6060 -db cache.db -stats
reload_test:
git ls-files --cached --others | grep '.go$$' | entr -c -r go test .
tmux:
tmux split-window -l 20 -c $(PWD) make reload_run
tmux split-window -t1 -h -c $(PWD) make reload_run_db
tmux split-window -t2 -h -c $(PWD) make reload_test
lighthouse:
lighthouse --chrome-flags='--headless' --output-path=lighthouse.html http://localhost:5555
lighthouse_url:
lighthouse --chrome-flags='--headless' --output-path=lighthouse_url.html "$(URL)"