File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments