-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
101 lines (83 loc) · 2.59 KB
/
Copy pathMakefile
File metadata and controls
101 lines (83 loc) · 2.59 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# gnomAD Carrier Frequency Calculator - Development Commands
.PHONY: dev dev-host build preview install clean test test-ui typecheck typecheck-watch lint ci docs docs-dev docs-preview screenshots help
# Default target
help:
@echo "Available commands:"
@echo ""
@echo "Development:"
@echo " make install - Install dependencies"
@echo " make dev - Start development server with HMR"
@echo " make dev-host - Start dev server accessible on network"
@echo ""
@echo "Building:"
@echo " make build - Build for production"
@echo " make preview - Preview production build"
@echo ""
@echo "Quality:"
@echo " make lint - Run ESLint"
@echo " make typecheck - Run TypeScript type checking"
@echo " make typecheck-watch - Run TypeScript type checking in watch mode"
@echo " make ci - Run full CI pipeline locally (lint, typecheck, build, docs)"
@echo ""
@echo "Testing:"
@echo " make test - Run Playwright E2E tests"
@echo " make test-ui - Run Playwright tests with UI"
@echo ""
@echo "Documentation:"
@echo " make docs - Build VitePress documentation site"
@echo " make docs-dev - Start docs dev server"
@echo " make docs-preview - Preview docs production build"
@echo " make screenshots - Generate documentation screenshots (requires Phase 17)"
@echo ""
@echo "Cleanup:"
@echo " make clean - Remove build artifacts and node_modules"
# Install dependencies
install:
bun install
# Start development server with HMR (WSL2 polling enabled in vite.config.ts)
dev:
bun run dev
# Start dev server accessible on local network
dev-host:
bun run dev -- --host
# Build for production
build:
bun run build
# Preview production build
preview:
bun run preview
# TypeScript type checking (single run)
typecheck:
bun run typecheck
# TypeScript type checking in watch mode
typecheck-watch:
bunx vue-tsc --noEmit --watch
# Run ESLint
lint:
bun run lint
# Run full CI pipeline locally (matches GitHub Actions)
ci:
bun run ci
# Run Playwright E2E tests (headless)
test:
bunx playwright test
# Run Playwright tests with UI
test-ui:
bunx playwright test --ui
# Build VitePress documentation site
docs:
bun run docs:build
# Start docs dev server
docs-dev:
bun run docs:dev
# Preview docs production build
docs-preview:
bun run docs:preview
# Generate documentation screenshots
screenshots:
@echo "Generating documentation screenshots..."
@bunx tsx scripts/generate-screenshots.ts
@echo "Screenshots saved to docs/public/screenshots/"
# Clean build artifacts
clean:
rm -rf dist node_modules .vite