-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 734 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (23 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: build test race run demo mcp docker fmt vet tidy clean
build: ## build the binary to ./bin/smolanalytics
go build -trimpath -o bin/smolanalytics ./cmd/smolanalytics
test: ## run the test suite
go test ./...
race: ## run tests with the race detector
go test -race ./...
run: ## run the server (empty)
go run ./cmd/smolanalytics serve
demo: ## seed demo data + open a populated dashboard on :8080
go run ./cmd/smolanalytics demo
mcp: ## run the MCP server over stdio (demo data)
go run ./cmd/smolanalytics mcp
docker: ## build the docker image
docker build -t smolanalytics .
fmt: ## format the code
gofmt -w ./internal ./cmd
vet: ## go vet
go vet ./...
tidy: ## tidy modules
go mod tidy
clean:
rm -rf bin