-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 907 Bytes
/
Makefile
File metadata and controls
43 lines (30 loc) · 907 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
35
36
37
38
39
40
41
42
43
GO := go
GOTAGS := fts5
GOFLAGS := -tags=$(GOTAGS)
XGORELEASER_IMAGE := oryd/xgoreleaser:1.26.0-2.14.1
.PHONY: build build-local test e2e lint vet tidy clean format plugin-dev
build:
docker run --platform linux/amd64 --mount type=bind,source="$$(pwd)",target=/project \
$(XGORELEASER_IMAGE) --snapshot --clean
build-local:
CGO_ENABLED=1 $(GO) build $(GOFLAGS) -o bin/lumen .
test:
CGO_ENABLED=1 $(GO) test $(GOFLAGS) ./...
e2e:
CGO_ENABLED=1 $(GO) test -tags=$(GOTAGS),e2e -timeout=20m -v -count=1 ./...
lint:
golangci-lint run
vet:
$(GO) vet ./...
tidy:
$(GO) mod tidy
clean:
rm -rf bin/ dist/
format:
goimports -w .
npx --yes prettier --write "**/*.{json,md,mdx,yaml,yml}"
npx --yes doctoc --github README.md
plugin-dev: build-local
@echo "Run: claude --plugin-dir ."
vhs:
export CLAUDE_PLUGIN_ROOT=$(pwd) && cd testdata/fixtures/go && vhs ../../../docs/demo/demo.tape