gengitkan/Makefile

35 lines
504 B
Makefile
Raw Normal View History

2019-11-28 11:50:51 +01:00
build: vendor
go build -mod=vendor -v -o bin/server ./cmd/server
2019-11-28 14:12:48 +01:00
client-dist:
cd client && npm run build
2019-11-28 11:50:51 +01:00
test:
go test -v -race ./...
release:
@./misc/script/release
vendor:
go mod vendor
tidy:
go mod tidy
2021-03-19 22:56:17 +01:00
deps:
go get github.com/cortesi/modd/cmd/modd
watch: deps
go run github.com/cortesi/modd/cmd/modd
2019-11-28 11:50:51 +01:00
lint:
golangci-lint run --enable-all
clean:
rm -rf release
rm -rf vendor
rm -rf bin
2019-12-05 13:11:32 +01:00
rm -rf client/node_modules
rm -rf client/dist/*
2019-11-28 11:50:51 +01:00
.PHONY: lint watch build vendor tidy release