-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
84 lines (60 loc) · 2.95 KB
/
Justfile
File metadata and controls
84 lines (60 loc) · 2.95 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
72
73
74
75
76
77
78
79
80
81
82
83
84
# DnD Ref
default: dev
# ── Dev ──────────────────────────────────────────────────────────────────────
# Start web dev server
dev:
npx expo start --web
# Start Expo with QR code (use with Expo Go on iPad)
start:
npx expo start
# Start iOS simulator
ios:
npx expo start --ios
# ── Quality ───────────────────────────────────────────────────────────────────
# Typecheck
check:
npx tsc --noEmit
# Lint: check file limits (max 300 lines, max 20 files per dir)
lint:
npm run lint
# Run Playwright screenshot tests against local dist/ build
screenshot:
npx playwright test e2e/screenshots.spec.ts --config playwright.config.ts
# Run Playwright screenshot tests with dark mode emulation
screenshot-dark:
npx playwright test e2e/screenshots-dark.spec.ts --config playwright.config.ts
# ── Web build + deploy ────────────────────────────────────────────────────────
# Export static web build to dist/
build-web:
npx expo export --platform web
# Deploy web to Cloudflare Pages (run build-web first)
deploy-web:
npx wrangler pages deploy dist --project-name dnd-ref
# Build and deploy web in one step
ship-web: build-web deploy-web
# ── CORS proxy ────────────────────────────────────────────────────────────────
# Run CORS proxy locally at http://localhost:8787
proxy-dev:
npx wrangler dev --config workers/cors-proxy/wrangler.toml
# Deploy CORS proxy to Cloudflare Workers
proxy-deploy:
npx wrangler deploy --config workers/cors-proxy/wrangler.toml
# ── iOS build (EAS) ───────────────────────────────────────────────────────────
# Requires: eas.json configured + Apple Developer account
# Setup: npx eas build:configure
# Build for TestFlight / App Store
build-ios:
npx eas build --platform ios --profile production
# Build for device testing (development client)
build-ios-dev:
npx eas build --platform ios --profile development
# Submit latest build to App Store
submit-ios:
npx eas submit --platform ios
# ── Scrapers ──────────────────────────────────────────────────────────────────
# Run VTT world discovery scraper
scrape-discover:
node scripts/scrape-vvd.mjs
# Export scraped VTT data
scrape-export:
node scripts/scrape-vvd.mjs --export