-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathjustfile
71 lines (52 loc) · 1.28 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
60
61
62
63
64
65
66
67
68
69
70
71
default: test doc clippy format shellcheck shellinstall wasm
all: default prof binary logo perf latex
alias b := build
alias d := doc
alias t := test
alias l := latex
alias c := clippy
alias f := format
build:
@cargo build -r
test:
@cargo test
doc:
@cargo doc
shellinstall:
@cargo build -r --features shellinstall
testignored:
@cargo test -- --ignored
clippy:
@cargo clippy -r && cargo shear
format:
@cargo fmt
@alejandra -q .
latex:
@cd extra && bash latex.sh
wasm:
@mkdir -p web/pkg
@cargo build -r --lib --target wasm32-unknown-unknown
@wasm-bindgen --target web --out-dir web/pkg \
target/wasm32-unknown-unknown/release/tex_fmt.wasm
@cd web/pkg && wasm-opt -Oz -o tex_fmt_bg.wasm tex_fmt_bg.wasm
perf:
@cd extra && bash perf.sh
prof:
@cd extra && bash prof.sh
binary:
@cd extra && bash binary.sh
upgrade:
@cargo upgrade && cargo update
shellcheck:
@shellcheck extra/*.sh
nix:
@nix flake update
todo:
@rg -g '!justfile' todo
logo:
@cd extra && python logo.py
@cd extra && magick -background none logo.svg -resize 5000x5000 logo.png
@cd extra && python card.py
@cd extra && magick -background none card.svg -resize 1280x640\! card.png
@cd extra && inkscape -w 2560 -h 1280 card.svg -o card.png
@cd extra && rm -f logo.png card.svg