Makefile 578 B

12345678910111213141516171819202122232425262728
  1. build:
  2. clear
  3. go fmt ./...
  4. go build -o ./bin/gostore ./cmd/gostore/main.go
  5. strip -s ./bin/gostore
  6. upx -f ./bin/gostore
  7. dev.run:
  8. clear
  9. go fmt ./...
  10. go build -race -o ./bin_dev/gostore_dev ./cmd/gostore/main.go
  11. ./dev.sh
  12. mod:
  13. clear
  14. go get -u ./...
  15. go mod tidy -compat=1.21
  16. go mod vendor
  17. go fmt ./...
  18. test.run:
  19. clear
  20. go fmt ./...
  21. go test -vet=all -race -timeout 30s -coverprofile cover.out ./...
  22. go tool cover -func=cover.out
  23. lint:
  24. clear
  25. go fmt ./...
  26. golangci-lint run ./cmd/serv_old/...
  27. golangci-lint run ./cmd/client_pwa/...
  28. golangci-lint run ./internal/...