Skip to content

Commit 459a58b

Browse files
committed
update justfile
1 parent 29a043f commit 459a58b

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

justfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
root := justfile_directory()
2+
3+
export TYPST_ROOT := root
4+
5+
[private]
6+
default:
7+
@just --list --unsorted
8+
9+
# generate manual
10+
doc:
11+
typst compile docs/manual.typ docs/manual.pdf
12+
13+
# run test suite
14+
test *args:
15+
typst-test run {{ args }}
16+
17+
# update test cases
18+
update *args:
19+
typst-test update {{ args }}
20+
21+
# package the library into the specified destination folder
22+
package target:
23+
./scripts/package "{{target}}"
24+
25+
# install the library with the "@local" prefix
26+
install: (package "@local")
27+
28+
# install the library with the "@preview" prefix (for pre-release testing)
29+
install-preview: (package "@preview")
30+
31+
[private]
32+
remove target:
33+
./scripts/uninstall "{{target}}"
34+
35+
# uninstalls the library from the "@local" prefix
36+
uninstall: (remove "@local")
37+
38+
# uninstalls the library from the "@preview" prefix (for pre-release testing)
39+
uninstall-preview: (remove "@preview")
40+
41+
# Create and shrink thumbnails
42+
thumbnails:
43+
typst c template/main.typ thumbnails/{n}.png --root ./ --font-path ./
44+
oxipng -o 4 --strip safe --alpha thumbnails/*.png
45+
46+
example:
47+
typst c template/main.typ example.pdf --root ./ --font-path ./
48+
49+
# run ci suite
50+
ci: test doc thumbnails example

0 commit comments

Comments
 (0)