-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
73 lines (54 loc) · 1.91 KB
/
justfile
File metadata and controls
73 lines (54 loc) · 1.91 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
# Default recipe
default:
@just --list
# ── Dev Environment ──────────────────────────────────────────
# Install dependencies
setup:
pnpm install
# ── Build & Check ────────────────────────────────────────────
# Run all checks (lint, format, typecheck, file sizes)
check:
pnpm check
# Format code
fmt:
pnpm fmt
# Check formatting without modifying
fmt-check:
pnpm exec biome format .
# Build all packages
build:
pnpm build
# Full CI gate
ci: check test build
# ── Test ─────────────────────────────────────────────────────
# Run unit tests
test:
pnpm test
# Run tests in watch mode
test-watch:
pnpm test:watch
# ── Run ──────────────────────────────────────────────────────
# Run docs dev server (design language + drift docs + component catalogue)
dev:
pnpm -F ghost-docs dev
# Build docs site (static export)
build-ui:
pnpm -F ghost-docs build
# Build ghost-ui library (dist-lib + types)
build-lib:
pnpm -F ghost-ui build:lib
# Build ghost-ui shadcn registry
build-registry:
pnpm -F ghost-ui build:registry
# Build docs site for GitHub Pages (base=/ghost/)
build-pages:
DEPLOY_BASE="/ghost/" pnpm -F ghost-docs build
rm -rf dist
mkdir -p dist
cp -r apps/docs/dist/. dist/
cp dist/index.html dist/404.html
# ── Utilities ────────────────────────────────────────────────
# Clean build artifacts
clean:
pnpm clean
rm -rf node_modules packages/*/node_modules