-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (45 loc) · 1.67 KB
/
Makefile
File metadata and controls
56 lines (45 loc) · 1.67 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
.PHONY: dev build server check clean webui smoke smoke-storage release-check help
# Development — start Tauri desktop app with hot reload
dev: webui-build
cargo tauri build --config src-tauri/tauri.dev.conf.json
# Build desktop app (release)
build: webui-build
cargo tauri build
# Build server binary only (release, webui embedded)
server: webui-build
cargo build -p nyro-server --release
# Run server binary locally (debug, webui embedded)
server-dev: webui-build
cargo run -p nyro-server -- --proxy-port 19530 --admin-port 19531
# Build webui
webui-build:
cd webui && pnpm install && pnpm build
# Type check & lint everything
check:
cargo check --workspace
cd webui && pnpm build
# End-to-end smoke (local mock upstream + nyro-server)
smoke:
python3 scripts/smoke/server_smoke.py
# Storage backend smoke (default: sqlite + postgres)
smoke-storage:
python3 scripts/smoke/storage_backends_smoke.py
# Pre-release verification gate
release-check: check smoke
# Clean all build artifacts
clean:
cargo clean
rm -rf webui/dist webui/node_modules/.vite
help:
@echo "Nyro AI Gateway"
@echo ""
@echo " make dev Start Tauri desktop app (dev mode)"
@echo " make build Build desktop app (release)"
@echo " make server Build server binary (release)"
@echo " make server-dev Run server binary (debug)"
@echo " make webui-build Build frontend only"
@echo " make check Type check Rust + TypeScript"
@echo " make smoke Run local server smoke tests"
@echo " make smoke-storage Run storage smoke tests (default sqlite + postgres)"
@echo " make release-check Run check + smoke before release"
@echo " make clean Remove build artifacts"