-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
68 lines (57 loc) · 1.81 KB
/
Copy pathjustfile
File metadata and controls
68 lines (57 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
65
66
67
68
default:
@just --list --unsorted
build: build-ui build-rust
test: test-ui test-rust
lint: lint-ui lint-rust
check: lint test
fmt: fmt-ui fmt-rust
run: build-ui
cargo run
build-ui:
@if command -v redo-ifchange >/dev/null 2>&1; then redo-ifchange frontend; else bun ui/build.ts; fi
test-ui:
bun test ui/
lint-ui:
bunx biome check
bunx tsc --noEmit
fmt-ui:
bunx biome check --write
build-rust:
cargo build
test-rust: build-ui
cargo test
lint-rust: build-ui
cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
fmt-rust:
cargo fmt
docs:
cargo run --quiet --manifest-path tools/config-docgen/Cargo.toml
docs-check:
cargo run --quiet --manifest-path tools/config-docgen/Cargo.toml -- --check
docs-site:
cd site && bunx vitepress dev
docs-site-build:
cd site && bunx vitepress build
docs-site-preview:
cd site && bunx vitepress preview
install:
./scripts/install-macos.sh
open: install
open -a Runx
package:
./scripts/package-macos.sh
dmg:
./scripts/build-dmg-macos.sh --universal --ad-hoc-sign
vm_host := "macos"
vm_dir := "~/src/runx-test"
ssh_opts := "-o WarnWeakCrypto=no-pq-kex"
_sync-remote:
ssh {{ssh_opts}} {{vm_host}} 'mkdir -p {{vm_dir}}'
rsync -az --delete --exclude='.git/' --exclude='target/' -e 'ssh {{ssh_opts}}' ./ {{vm_host}}:{{vm_dir}}/
run-remote +command: _sync-remote
ssh {{ssh_opts}} {{vm_host}} 'zsh -lc "source ~/.cargo/env 2>/dev/null || true; cd {{vm_dir}} && {{command}}"'
test-vm: _sync-remote
ssh {{ssh_opts}} {{vm_host}} 'zsh -lc "source ~/.cargo/env 2>/dev/null || true; cd {{vm_dir}} && cargo test"'
lint-remote: _sync-remote
ssh {{ssh_opts}} {{vm_host}} 'zsh -lc "source ~/.cargo/env 2>/dev/null || true; cd {{vm_dir}} && cargo fmt --check && cargo clippy --all-targets -- -D warnings"'