1.PHONY: all backend frontend fmt test
2
3all: backend frontend
4
5backend:
6 go build -o irvc .
7
8frontend:
9 cd web && npm install && npm run build
10
11fmt:
12 goimports -w $$(find . -name '*.go' -not -path './web/node_modules/*')
13 cd web && npm run fmt && npm run lint
14
15test:
16 go test ./...
17 cd web && npm run --if-present test