craban/Makefile
2021-09-13 15:25:01 +02:00

25 lines
375 B
Makefile

.PHONY: fmt
fmt:
cd server && go fmt ./...
.PHONY: mod
mod:
cd server && go mod vendor
cd server && go mod tidy
.PHONY: test
test:
cd server && go test -v -race -count 1 ./...
.PHONY: watch
watch:
modd
.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