-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
75 lines (56 loc) · 1.93 KB
/
justfile
File metadata and controls
75 lines (56 loc) · 1.93 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
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
set dotenv-load := true
export PATH := "./node_modules/.bin:" + env("PATH")
_default:
@printf "After cloning: run just setup\n\n"
@just --list
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Core workflow
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# 📦 Install dependencies (first thing after cloning)
setup:
npm install
# ✅ Full check: fmt → lint → typecheck → test → build
check: format-check lint typecheck test build
# ▶️ Start dev server
dev:
astro dev
# 🔍 Lint
lint:
eslint . --ext .ts,.astro --max-warnings=0
# 🔍 Type check (tsc only)
typecheck:
tsc --noEmit
# 🔨 Build for production
build:
astro check && astro build
# 👁️ Preview production build
preview:
astro preview
# ✨ Format code (writes changes)
format:
prettier --write .
# 🔎 Verify formatting (non-destructive)
format-check:
prettier --check .
# 🧪 Run unit tests
test:
vitest run
# 🧪 Pre-commit hook target
precommit:
npm run precommit
# 🚀 Pre-push hook target
prepush:
npm run prepush
# 🧹 Clean build artifacts
clean:
rm -rf dist node_modules/.cache .astro
# 🧹 Full reset
reset: clean
rm -rf node_modules/
# 📦 Bundle repo snapshot for LLM context (excludes secrets and large files)
repomix:
repomix --ignore "coverage/,node_modules/,public/fonts,src/pages/egghunt.astro"
# 🎨 Synchronize SVG fill colors to match the active theme palette (default: light)
svg-sync THEME="light":
node scripts/sync-svg-swatches.mjs --verbose {{THEME}}