-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
59 lines (43 loc) · 1.52 KB
/
Justfile
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
[private]
@default:
just --choose
watch-sourcegen-ast:
cargo watch --ignore generated.* --clear -s "cargo test sourcegen_ast -- --ignored --nocapture; rustfmt src/generated.rs"
# General
test:
cargo fmt --all -- --check
cargo clippy
cargo nextest run --workspace --exclude mist-cg-wasm
# UI
app-typeshare:
typeshare . --lang=typescript --output-file=./app/src/lib/types.ts
app-build-wasm:
cd app/wasm; wasm-pack build --release --target bundler
app: app-typeshare
tmuxinator
[private]
app-tmux-astro:
cd app; npm install && npm run dev
[private]
app-tmux-wasm:
cd app/wasm/; watchexec -w ../.. -e rs "wasm-pack build --dev --target bundler"
app-build: app-typeshare app-build-wasm
cd app; npm install && npm run build
app-serve:
miniserve --index index.html app/dist
SITE_ID := "43017e79-2762-45e6-9ba4-3bacedda3b96"
app-deploy: app-build
cd app/dist; netlify deploy --prod -s {{SITE_ID}}
# core
core-test:
FORCE_COLOR=3 cargo nextest run -p mist-core # --success-output immediate
core-watch-test:
FORCE_COLOR=3 cargo watch -c -x "nextest run -p mist-core --success-output immediate"
# LSP
lsp-build:
cd vscode-client && npm run update
cargo build --release -p mist-lsp
lsp-watch:
cd vscode-client && npm run update
cargo watch -c -i '.mist.*' -i '*.vpr' -i '*.mist' -s 'cargo build -p mist-lsp && killall mist-lsp && echo killed!'
# cargo watch -c -i '.mist.*' -i '*.vpr' -i '*.mist' -s "cargo build --release -p mist-lsp && killall mist-lsp && echo killed!"