-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (24 loc) · 710 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (24 loc) · 710 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
.PHONY: test bench vet build docs docs-dev docs-deploy clean
# === Go ===
build:
go build ./...
vet:
go vet ./...
test:
go test ./... -race -timeout 60s
test-short:
go test ./... -short -timeout 30s
bench:
go test -bench=. -benchmem -count=1 -timeout 120s
# === Docs ===
docs:
cd docs && pnpm install && pnpm clear && pnpm build
docs-dev:
cd docs && pnpm install && pnpm clear && pnpm build && npx docusaurus serve
docs-deploy:
@cd docs && pnpm install && pnpm clear && pnpm build
@npx wrangler whoami >/dev/null 2>&1 || npx wrangler login
cd docs && npx wrangler pages deploy build --project-name=seqflow-docs
# === Clean ===
clean:
rm -rf docs/build docs/.docusaurus docs/node_modules