-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (52 loc) · 1.73 KB
/
Copy pathMakefile
File metadata and controls
71 lines (52 loc) · 1.73 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
SHELL := /bin/bash
.PHONY: help install-hooks dev build data test test-integration smoke lint fmt pages-preview hooks-pre-commit hooks-commit-msg hooks-pre-push hooks-post-merge hooks-post-checkout release clean
help:
@printf "Targets:\n"
@printf " make install-hooks Wire .githooks\n"
@printf " make dev Run the Vite dev server\n"
@printf " make build Build GitHub Pages output into docs/\n"
@printf " make data Mode A no-op\n"
@printf " make test Run unit tests\n"
@printf " make smoke Build and run Playwright smoke test\n"
@printf " make lint Run lint, format check, audit, and type check\n"
@printf " make fmt Format files\n"
@printf " make pages-preview Serve docs/ as GitHub Pages preview\n"
@printf " make release Tag v$$(node -p \"require('./package.json').version\")\n"
install-hooks:
git config core.hooksPath .githooks
chmod +x .githooks/*
dev:
npm run dev
build:
npm run build
data:
@printf "Mode A: no static data pipeline is required.\n"
test:
npm run test
test-integration:
@printf "No separate integration suite for Mode A v1.\n"
smoke:
./scripts/smoke.sh
lint:
npm run lint
npm run fmt:check
npm exec tsc -- -b --pretty false
npm audit --audit-level=high
fmt:
npm run fmt
pages-preview:
npm run pages-preview
hooks-pre-commit:
.githooks/pre-commit
hooks-commit-msg:
.githooks/commit-msg .git/COMMIT_EDITMSG
hooks-pre-push:
.githooks/pre-push
hooks-post-merge:
.githooks/post-merge
hooks-post-checkout:
.githooks/post-checkout
release:
git tag "v$$(node -p "require('./package.json').version")"
clean:
rm -rf coverage docs/app-assets docs/index.html docs/404.html docs/version.json