-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJustfile
More file actions
68 lines (50 loc) · 1.64 KB
/
Copy pathJustfile
File metadata and controls
68 lines (50 loc) · 1.64 KB
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
58
59
60
61
62
63
64
65
66
67
68
root := justfile_directory()
export TYPST_ROOT := root
[private]
default:
@just --list --unsorted
# fail if typst version is the one we use in this project
# this helps reproducibility of generated outputs and tests
assert-typst-version:
./scripts/assert-typst-version
thumbnail:
typst compile --pages=1 --ppi=300 --format=png template/cv.typ thumbnail.png
oxipng thumbnail.png
demo:
typst compile --format=pdf template/cv.typ demo.pdf
# run test suite
test *args: assert-typst-version
tt --font-path "fonts/FontAwesome6" --font-path "fonts/OpenSans" run {{ args }}
# update test cases
update *args:
tt --font-path "fonts/FontAwesome6" --font-path "fonts/OpenSans" 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
# bump version (major, minor, or patch)
bump part:
./scripts/version-bump "{{part}}"
# create a git tag (vX.Y.Z) from version in typst.toml
tag-release:
./scripts/tag-release
# Run dev suite
dev: thumbnail demo test
[linux]
install-fonts:
mkdir -p ~/.local/share/fonts
cp fonts/FontAwesome6/*.otf ~/.local/share/fonts/
cp fonts/OpenSans/*.ttf ~/.local/share/fonts/
fc-cache -fv