forked from bamboovir/typst-resume-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
45 lines (36 loc) · 1.17 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
set shell:= ["bash", "-uceE"]
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 --font-path "{{FONT_PATH}}" compile resume.typ "{{OUTPUT_FILENAME}}"
dev:
@typst --font-path "{{FONT_PATH}}" watch resume.typ "{{OUTPUT_FILENAME}}"
font:
@typst --font-path "{{FONT_PATH}}" --fonts --variants
clean:
@rm -f *.pdf
containerized-build:
@podman run --rm -t \
-v "{{PROJECT_ROOT}}:/mnt" \
-w "/mnt" \
"{{TYPST_IMAGE_REF}}" \
typst --font-path "{{FONT_PATH}}" compile resume.typ "{{OUTPUT_FILENAME}}"
containerized-dev:
@podman run --rm -it -v \
"{{PROJECT_ROOT}}:/mnt" \
-w "/mnt" \
--init \
"{{TYPST_IMAGE_REF}}" \
typst --font-path "{{FONT_PATH}}" watch resume.typ "{{OUTPUT_FILENAME}}"
containerized-font:
@podman run --rm -t -v \
"{{PROJECT_ROOT}}:/mnt" \
-w "/mnt" \
"{{TYPST_IMAGE_REF}}" \
typst --font-path "{{FONT_PATH}}" fonts --variants