gengitkan/Makefile

35 lines
504 B
Makefile

build: vendor
go build -mod=vendor -v -o bin/server ./cmd/server
client-dist:
cd client && npm run build
test:
go test -v -race ./...
release:
@./misc/script/release
vendor:
go mod vendor
tidy:
go mod tidy
deps:
go get github.com/cortesi/modd/cmd/modd
watch: deps
go run github.com/cortesi/modd/cmd/modd
lint:
golangci-lint run --enable-all
clean:
rm -rf release
rm -rf vendor
rm -rf bin
rm -rf client/node_modules
rm -rf client/dist/*
.PHONY: lint watch build vendor tidy release