-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathjustfile
More file actions
65 lines (48 loc) · 1.1 KB
/
justfile
File metadata and controls
65 lines (48 loc) · 1.1 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
export TAURI_APP_PATH := "../crates/tauri-app" # Relative to `frontend`.
export TAURI_FRONTEND_PATH := "frontend"
set windows-shell := ["powershell"]
default:
just --list
build-all: build build-web
ci: lint-ci check-fmt
deps:
cd frontend ; pnpm install
lint:
cd frontend ; pnpm lint
cargo clippy
lint-ci:
cd frontend ; pnpm lint:ci
cargo clippy -- -D warnings
fmt:
cd frontend ; pnpm format
cargo fmt
check-fmt:
cd frontend ; pnpm format:check
cargo fmt --check
test *args:
cargo nextest run {{args}}
### DESKTOP
[group('desktop')]
[working-directory("frontend")]
dev:
pnpm tauri dev
[group('desktop')]
[working-directory("frontend")]
build *args:
pnpm tauri build {{args}}
### WEB
[group('web')]
[parallel]
dev-web: server-dev frontend-dev-web
[group('web')]
[working-directory("crates/server")]
server-dev:
cargo run
[group('web')]
[working-directory("frontend")]
frontend-dev-web $GEMINI_CLI_DESKTOP_WEB="true":
pnpm dev
[group('web')]
build-web $GEMINI_CLI_DESKTOP_WEB="true":
cd frontend ; pnpm build
cd crates/server ; cargo build --release