Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (43 loc) · 2.42 KB
/
Copy pathMakefile
File metadata and controls
57 lines (43 loc) · 2.42 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: install dev build preview selftest vectors check clean help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-10s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies
npm install
dev: install ## Run the dev server
npm run dev
build: install ## Build into docs/ (what GitHub Pages serves)
npm run build
preview: build ## Serve the built output locally
npm run preview
selftest: install ## Check the TS subject against the Python baseline
npm run selftest
REFERENCE ?= ../reference/packages/agentic-dataset-conformance/src/agentic_dataset_conformance/data
vectors: ## Re-copy the CC0 vectors from the reference repo and regenerate the index
@test -d "$(REFERENCE)" || { echo "no reference data at $(REFERENCE)"; exit 1; }
cp $(REFERENCE)/vectors/*.json src/engine/data/vectors/
cp $(REFERENCE)/worlds/*.json src/engine/data/worlds/
cp $(REFERENCE)/LICENSE src/engine/data/LICENSE
python3 scripts/generate-data-index.py
@echo "re-copied; now run 'make selftest' before trusting the result"
check: ## Verify the built payload looks like a site
@test -f docs/index.html || { echo "refusing: no docs/index.html"; exit 1; }
@test -f docs/.nojekyll || { echo "refusing: no docs/.nojekyll"; exit 1; }
@echo "docs/ looks publishable"
clean: ## Remove dependencies and build output
rm -rf node_modules docs
# ── edge deploy ──────────────────────────────────────────────────────────────
# agenticdatasets.org is served by Caddy on the Toronto edge, from one tree:
# the org site at the apex, showcase/ and reference/ beneath it. Each repo
# owns its own subtree. The vhost side lives in the edge host's own
# provisioning repo, in tools/edge-sites.sh.
EDGE ?= root@172.105.24.72
REMOTE_ROOT ?= /var/www/agenticdatasets/showcase
RSYNC_FLAGS := -az --delete --chmod=D755,F644 --exclude .git --exclude .keep
.PHONY: deploy deploy-dry
deploy: build ## Publish the showcases to the edge
@test -f docs/index.html || { echo "refusing: no docs/index.html -- build first" >&2; exit 1; }
rsync $(RSYNC_FLAGS) docs/ $(EDGE):$(REMOTE_ROOT)/
@echo "→ https://agenticdatasets.org/showcase/"
deploy-dry: build ## Show what deploy would change, without changing it
rsync -n -v $(RSYNC_FLAGS) docs/ $(EDGE):$(REMOTE_ROOT)/