-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathJustfile
57 lines (44 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
root := justfile_directory()
export TYPST_ROOT := root
[private]
default:
@just --list --unsorted
# generate manual
[doc('Generate package documentation')]
[group('package')]
doc:
typst compile docs/manual.typ docs/manual.pdf
[doc('Run test suite. Requires tytanic.')]
[group('dev')]
test *args: install
tt run {{ args }} --use-system-fonts --no-fail-fast
[doc('Update test cases. Requires tytanic.')]
[group('dev')]
update *args:
tt update {{ args }} --use-system-fonts
[doc('Package the library into the specified destination folder')]
[group('package')]
package target:
./scripts/package "{{target}}"
[doc('Install the library with the "@local" prefix')]
[group('dev')]
install: (package "@local")
[doc('Install the library with the "@preview" prefix (for pre-release testing)')]
[group('dev')]
install-preview: (package "@preview")
[private]
remove target:
./scripts/uninstall "{{target}}"
[doc('Uninstall the library from the "@local" prefix')]
[group('dev')]
uninstall: (remove "@local")
[doc('Uninstall the library from the "@preview" prefix (for pre-release testing)')]
[group('dev')]
uninstall-preview: (remove "@preview")
[doc('Format the source code. Requires typstyle.')]
[group('dev')]
format:
./scripts/format
[doc('Run ci suite')]
[group('dev')]
ci: test doc