Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
64 lines (45 loc) · 1.81 KB
/
Copy pathjustfile
File metadata and controls
64 lines (45 loc) · 1.81 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
# m4code task runner. `just` lists the recipes.
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
default:
@just --list
# ---- App (Rust + GPUI) ----------------------------------------------------------------------------
# Build the app.
build:
cargo build --locked
# Run the app.
run:
cargo run --locked
# Rust unit tests for the app.
test-app:
cargo test --locked
# Render Home or Settings to target/screenshots/<scenario>.png without opening a desktop window.
screenshot $M4CODE_SCREENSHOT_SCENARIO="home":
cargo test --locked --features screenshots --bin m4code screenshots::capture -- --exact --ignored --test-threads=1 --nocapture
# Check lints without changing files.
lint:
cargo clippy --locked --all-targets -- -D warnings
# Test the Claude bridge's handling of background shells.
test-bridge:
node bridge/background-shells.test.mjs
# ---- Mod (Claude Code plugin in mod/) -------------------------------------------------------------
# Tests for the mod: the *.test.ts files in mod/hooks. Needs the `claude` CLI on PATH.
test-mod:
claude plugin test mod
# ---- Web (Astro site in web/, Bun) ----------------------------------------------------------------
# Install the web dependencies from bun.lock.
web-install:
bun install --cwd web --frozen-lockfile
# Run the web dev server (installs dependencies first).
web: web-install
bun --cwd web run dev
# Build the web site.
web-build: web-install
bun --cwd web run build
# Serve the built web site.
web-preview:
bun --cwd web run preview
# ---- Everything -----------------------------------------------------------------------------------
# Every test: the app and the mod.
test: test-app test-bridge test-mod
# What CI checks, plus the mod and the web build.
ci: build test-app test-bridge web-build test-mod