-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
53 lines (38 loc) · 1.42 KB
/
Copy pathJustfile
File metadata and controls
53 lines (38 loc) · 1.42 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
# Castaway — task runner (https://github.com/casey/just)
set dotenv-load := true
# Default: list recipes
default:
@just --list
# ── Dev ───────────────────────────────────────────────────────────────────────
# Start the Next.js dev server
dev:
npm run dev
# Build for production
build:
npm run build
# Start the production server (run `just build` first)
start:
npm run start
# ── Quality ───────────────────────────────────────────────────────────────────
# Run ESLint
lint:
npx eslint .
# Auto-fix lint + format with Prettier
fmt:
npx prettier --write .
npx eslint --fix .
# Check formatting without writing (CI-safe)
fmt-check:
npx prettier --check .
# TypeScript type checking
typecheck:
npx tsc --noEmit
# Run all checks (CI equivalent)
check: lint fmt-check typecheck build
# ── Deploy ────────────────────────────────────────────────────────────────────
# Preview deploy to Vercel
deploy:
npx vercel
# Production deploy to Vercel
deploy-prod:
npx vercel --prod