azimuth-client-go/Makefile
Theodore Blackman 4d7ab16549 Initial release of azimuth-client-go library
- Consolidated azimuth client implementations from zenithd and janus
- Type-safe GraphQL client using genqlient code generation
- Comprehensive caching with configurable TTL (1 hour default)
- Full API coverage: authentication keys, ship activity, sponsorship, ownership
- Enhanced functionality combining best features from both original implementations
- Extensive test suite with 16 unit tests covering all functionality
- Complete documentation with examples and usage patterns
- Support for galaxy, star, and planet ship type classification
- BigInt utility for proper GraphQL number handling
- MIT licensed for open source usage

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 14:01:03 -04:00

57 lines
1.3 KiB
Makefile

.PHONY: build test lint generate clean help
# Build the library
build:
go build ./...
# Run tests
test:
go test -v ./...
# Run tests with coverage
test-coverage:
go test -v -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
# Run integration tests (requires live endpoint)
test-integration:
go test -v ./... -run Integration
# Format code
fmt:
go fmt ./...
# Run linter (requires golangci-lint)
lint:
golangci-lint run
# Generate GraphQL client code
generate:
go run github.com/Khan/genqlient@latest
# Clean build artifacts
clean:
go clean -testcache
rm -f coverage.out coverage.html
# Tidy dependencies
tidy:
go mod tidy
# Run all checks (fmt, lint, test)
check: fmt lint test
# Show help
help:
@echo "Available targets:"
@echo " build - Build the library"
@echo " test - Run all tests"
@echo " test-coverage - Run tests with coverage report"
@echo " test-integration - Run integration tests only"
@echo " fmt - Format Go code"
@echo " lint - Run linter (requires golangci-lint)"
@echo " generate - Generate GraphQL client code"
@echo " clean - Clean build artifacts"
@echo " tidy - Tidy dependencies"
@echo " check - Run fmt, lint, and test"
@echo " help - Show this help message"