33 lines
491 B
Makefile
33 lines
491 B
Makefile
.PHONY: fmt
|
|
fmt:
|
|
cd server && go fmt ./...
|
|
|
|
.PHONY: mod
|
|
mod:
|
|
cd server && go mod vendor
|
|
cd server && go mod tidy
|
|
|
|
.PHONY: check
|
|
check:
|
|
cd server && golangci-lint run ./...
|
|
|
|
.PHONY: test
|
|
test:
|
|
cd server && go test -v -race -count 1 ./...
|
|
|
|
.PHONY: watch-test
|
|
watch-test:
|
|
modd -f modd-test.conf
|
|
|
|
.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
|