···1-# Noteleaf project commands
2-3-# Default recipe - show available commands
4-default:
5- @just --list
6-7-# Run all tests
8-test:
9- go test ./...
10-11-# Run tests with coverage
12-coverage:
13- go test ./... -coverprofile=coverage.out
14- go tool cover -html=coverage.out -o coverage.html
15- @echo "Coverage report generated: coverage.html"
16-17-# Run tests and show coverage in terminal
18-cov:
19- go test ./... -coverprofile=coverage.out
20- go tool cover -func=coverage.out
21-22-# Build the binary to /tmp/
23-build:
24- mkdir -p ./tmp/
25- go build -o ./tmp/noteleaf ./cmd/
26- @echo "Binary built: ./tmp/noteleaf"
27-28-# Clean build artifacts
29-clean:
30- rm -f coverage.out coverage.html
31- rm -rf /tmp/noteleaf
32-33-# Run linting
34-lint:
35- go vet ./...
36- go fmt ./...
37-38-# Run all quality checks
39-check: lint cov
40-41-# Install dependencies
42-deps:
43- go mod download
44- go mod tidy
45-46-# Run the application (after building)
47-run: build
48- /tmp/noteleaf/noteleaf
49-50-# Show project status
51-status:
52- @echo "Go version:"
53- @go version
54- @echo ""
55- @echo "Module info:"
56- @go list -m
57- @echo ""
58- @echo "Dependencies:"
59- @go list -m all | head -10
60-61-# Quick development workflow
62-dev: clean lint test build
63- @echo "Development workflow complete!"