-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
36 lines (29 loc) · 1.19 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
website_out := "dist"
typst_out := "website/assets/"
clean:
rm -rf {{website_out}}/*
rm -f {{typst_out}}/*
mkdir {{website_out}} -p
mkdir {{typst_out}} -p
build:
just clean && just typst-build && just astro-build
astro-preview:
npx astro preview --host
astro-build:
npx astro build
astro-dev:
npx astro dev --host
typst-build:
#!/usr/bin/bash
typst compile pipeline/locale_en.typ {{typst_out}}/cards_en.pdf &&
typst compile pipeline/locale_de.typ {{typst_out}}/cards_de.pdf &&
typst compile pipeline/locale_en.typ {{typst_out}}/card_en_{n}.svg &&
typst compile pipeline/locale_de.typ {{typst_out}}/card_de_{n}.svg &&
typst compile pipeline/locale_en.typ {{typst_out}}/card_en_{n}.png --ppi 400 &&
typst compile pipeline/locale_de.typ {{typst_out}}/card_de_{n}.png --ppi 400
typst-dev:
#!/usr/bin/bash
typst watch pipeline/locale_en.typ {{typst_out}}/cards_en.pdf &
&>/dev/null typst watch pipeline/locale_de.typ {{typst_out}}/cards_de.pdf &
&>/dev/null typst watch pipeline/locale_en.typ {{typst_out}}/card_en_{n}.png --ppi 500 &
&>/dev/null typst watch pipeline/locale_de.typ {{typst_out}}/card_de_{n}.png --ppi 500