-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
71 lines (49 loc) · 1.54 KB
/
Copy pathJustfile
File metadata and controls
71 lines (49 loc) · 1.54 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
# Justfile — project command orchestration.
# Run `just` (no args) for a recipe listing.
default:
@just --list
# === Tripwire ops ===
tripwire-sync *args:
bun run scripts/tripwire/sync.ts {{args}}
tripwire-analyze-404s *args:
bun run scripts/tripwire/analyze-404s.ts {{args}}
tripwire-build-bombs:
bun run scripts/tripwire/build-bombs.ts
# Pull a fresh GeoLite2-ASN.mmdb from MaxMind and put it in blob at
# geoip/GeoLite2-ASN.mmdb. The cron's ASN enrichment reads from blob,
# so refreshing the db here is independent of any deploy.
tripwire-sync-geoip-to-blob:
bun run scripts/tripwire/sync-geoip-to-blob.ts
tripwire-ingest-events *args:
bun run scripts/tripwire/ingest-events.ts {{args}}
tripwire-build-stats *args:
bun run scripts/tripwire/build-stats.ts {{args}}
# Ingest any new bronze events into Neon and rebuild the aggregate JSON.
# Pass --upload to also publish to blob.
tripwire-update-stats *args:
just tripwire-ingest-events
just tripwire-build-stats {{args}}
# === Database (Drizzle + Neon) ===
# drizzle-kit doesn't load .env.local on its own, so wrap it in dotenv-cli.
db-generate:
bunx dotenv -e .env.local -- bunx drizzle-kit generate
db-migrate:
bunx dotenv -e .env.local -- bunx drizzle-kit migrate
db-studio:
bunx dotenv -e .env.local -- bunx drizzle-kit studio
# === General dev ===
dev:
bun run dev
build:
bun run build
start:
bun run start
# === Quality ===
lint:
bun run lint
test:
bun test
e2e:
bunx playwright test
e2e-ui:
bunx playwright test --ui