craban/Makefile

26 lines
375 B
Makefile
Raw Normal View History

2021-09-11 19:50:34 +01:00
.PHONY: fmt
fmt:
2021-09-12 17:57:42 +01:00
cd server && go fmt ./...
2021-09-11 19:50:34 +01:00
.PHONY: mod
mod:
2021-09-12 17:57:42 +01:00
cd server && go mod vendor
cd server && go mod tidy
2021-09-11 19:50:34 +01:00
.PHONY: test
test:
cd server && go test -v -race -count 1 ./...
2021-09-12 20:57:59 +01:00
.PHONY: watch
watch:
modd
2021-09-13 14:25:01 +01:00
.PHONY: clean
clean:
rm -rf server/craban server/web/static/*
.PHONY: build
build: clean
cd webapp && npm run build
cd server && go build -v -race ./cmd/craban