-
Notifications
You must be signed in to change notification settings - Fork 14
/
Justfile
53 lines (38 loc) · 1.22 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
root := justfile_directory()
# Set the shell on Windows to using PowerShell.
set windows-shell := ["powershell.exe", "-c"]
export TYPST_ROOT := root
[private]
default:
@just --list --unsorted
# generate manual
doc:
typst compile docs/docs.typ docs.pdf --root . --font-path ./docs/fonts --ignore-system-fonts
# watch the manual
doc-watch:
typst watch docs/docs.typ docs.pdf --root . --font-path ./docs/fonts --ignore-system-fonts
# generate the codly function signature in codly.typ
signature:
python3 ./scripts/gen-signature.py
# run test suite
test *args:
typst-test run {{ args }}
# update test cases
update *args:
typst-test update {{ args }}
# package the library into the specified destination folder
package target:
./scripts/package "{{target}}"
# install the library with the "@local" prefix
install: (package "@local")
# install the library with the "@preview" prefix (for pre-release testing)
install-preview: (package "@preview")
[private]
remove target:
./scripts/uninstall "{{target}}"
# uninstalls the library from the "@local" prefix
uninstall: (remove "@local")
# uninstalls the library from the "@preview" prefix (for pre-release testing)
uninstall-preview: (remove "@preview")
# run ci suite
ci: test doc