Makefile 643 B

12345678910111213141516171819202122232425262728293031
  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. rm -rf ./bin_dev
  10. mkdir -p ./bin_dev
  11. cp -rf ./static ./bin_dev
  12. go fmt ./...
  13. go build -race -o ./bin_dev/gostore_dev ./cmd/gostore/main.go
  14. ./dev.sh
  15. mod:
  16. clear
  17. go get -u ./...
  18. go mod tidy -compat=1.21
  19. go mod vendor
  20. go fmt ./...
  21. test.run:
  22. clear
  23. go fmt ./...
  24. go test -vet=all -race -timeout 30s -coverprofile cover.out ./...
  25. go tool cover -func=cover.out
  26. lint:
  27. clear
  28. go fmt ./...
  29. golangci-lint run ./cmd/serv_old/...
  30. golangci-lint run ./cmd/client_pwa/...
  31. golangci-lint run ./internal/...