-
Notifications
You must be signed in to change notification settings - Fork 18
/
Justfile
46 lines (37 loc) · 1.25 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
set shell:= ["bash", "-uceE"]
CONTAINER_RUNTIME := "podman"
PROJECT_ROOT := `git rev-parse --show-toplevel`
OUTPUT_FILENAME := "resume.pdf"
TEMPLATE := "latex"
# TEMPLATE := "awesome"
FONT_PATH := "." / "templates" / TEMPLATE / "assets" / "fonts"
TYPST_IMAGE_REF := "ghcr.io/typst/typst:latest"
default:
@just --list
build:
@typst compile --font-path "{{FONT_PATH}}" resume.typ "{{OUTPUT_FILENAME}}"
dev:
@typst watch --font-path "{{FONT_PATH}}" resume.typ "{{OUTPUT_FILENAME}}"
font:
@typst fonts --font-path "{{FONT_PATH}}" --variants
clean:
@rm -f *.pdf
containerized-build:
@{{CONTAINER_RUNTIME}} run --rm -t \
-v "{{PROJECT_ROOT}}:/mnt" \
-w "/mnt" \
"{{TYPST_IMAGE_REF}}" \
typst compile --font-path "{{FONT_PATH}}" resume.typ "{{OUTPUT_FILENAME}}"
containerized-dev:
@{{CONTAINER_RUNTIME}} run --rm -it -v \
"{{PROJECT_ROOT}}:/mnt" \
-w "/mnt" \
--init \
"{{TYPST_IMAGE_REF}}" \
typst watch --font-path "{{FONT_PATH}}" resume.typ "{{OUTPUT_FILENAME}}"
containerized-font:
@{{CONTAINER_RUNTIME}} run --rm -t -v \
"{{PROJECT_ROOT}}:/mnt" \
-w "/mnt" \
"{{TYPST_IMAGE_REF}}" \
typst fonts --font-path "{{FONT_PATH}}" --variants