-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
41 lines (32 loc) · 1.29 KB
/
Justfile
File metadata and controls
41 lines (32 loc) · 1.29 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
default:
@just --list
build target="all":
@just {{ if target == "plugins" { "_build_plugins" } else if target == "client" { "_build_client" } else if target == "all" { "_build_all" } else { "_build_usage" } }}
_build_all: _build_client
_build_plugins:
cargo openvcs dist --all --plugin-dir Backend/built-in-plugins --out target/openvcs/built-in-plugins
_build_client: _build_plugins
npm --prefix Frontend run build
cargo build
_build_usage:
@echo "Unknown build target. Use: just build, just build plugins, or just build client"
@exit 2
test:
cargo test --workspace || true
cd Frontend && npm exec tsc -- -p tsconfig.json --noEmit || true
cd Frontend && npx vitest run || true
tauri-build:
node scripts/tauri-build.js
build-flatpak install="":
@if [ "{{install}}" = "-i" ]; then \
flatpak-builder --force-clean --user --install build-flatpak packaging/flatpak/io.github.jordonbc.OpenVCS.yml; \
elif [ -n "{{install}}" ]; then \
echo "Usage: just build-flatpak [-i]"; \
exit 2; \
else \
flatpak-builder --force-clean --user build-flatpak packaging/flatpak/io.github.jordonbc.OpenVCS.yml; \
fi
fix:
cargo fmt --all
cargo clippy --fix --all-targets --all-features --allow-dirty --allow-staged
cd Frontend && npm exec tsc -- -p tsconfig.json --noEmit || true