-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (23 loc) · 766 Bytes
/
justfile
File metadata and controls
31 lines (23 loc) · 766 Bytes
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
# Local Variables:
# mode: makefile
# End:
gallery_dir := "./gallery"
build:
cd cetz-core; \
cargo build --release \
--target wasm32-unknown-unknown; \
cp target/wasm32-unknown-unknown/release/cetz_core.wasm cetz_core.wasm
package target *options: build
./common/scripts/package "{{target}}" {{options}}
install target="@local": build
./common/scripts/package "{{target}}"
test *filter: build
tt run {{filter}}
update-test *filter: build
tt update {{filter}}
gallery: build
for f in "{{gallery_dir}}"/*.typ; do echo "Rendering: $f"; typst c "$f" "${f/typ/png}"; done
manual: build
typst compile --root . manual.typ
docs: build
typst query --root . manual.typ "<metadata>" --field value | python ./docs/genhtml.py -o ./docs/_generated