-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
31 lines (23 loc) · 847 Bytes
/
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
default:
just --list
format:
taplo format
prettier --write "(site|link-shortener)/**/*.{astro,ts,tsx,js,jsx,cjs,mjs,json}"
prettier --write "./package.json"
format-check:
taplo format --check
prettier --check "**/*.{astro,ts,tsx,js,jsx,cjs,mjs,json}"
build: build-resume build-site build-link-shortener
build-site:
cd site/ && bun run build
build-resume:
typst compile --font-path resume/fonts resume/resume.typ site/public/Resume.pdf
build-link-shortener:
bun build --minify link-shortener/index.ts --outfile dist/_worker.js
dev:
(cd site/ && bun run dev) & \
(bun run --watch link-shortener/index.ts) & \
(TYPST_FONT_PATHS=./resume/fonts typst-live resume/resume.typ) & \
(typst watch --font-path resume/fonts/ resume/resume.typ site/public/Resume.pdf)
resume:
cd resume && cargo watch -x "run --release -q"