-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 705 Bytes
/
Makefile
File metadata and controls
39 lines (27 loc) · 705 Bytes
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
export LANG=en_US.UTF-8
.DEFAULT_GOAL := build
.PHONY: clean zip css dev lint
lint:
bunx @biomejs/biome lint .
bun.lockb: package.json
bun install
dev:
hugo server --buildDrafts
static/js:
mkdir -p static/js/
clean:
git clean -Xdf
zip: public.zip
public.zip: public
cd public/ && 7z a ../public.zip .
# the modified timestamp gets messed up on my system; fix that with
# the `touch`.
public: static/js
hugo --minify
@touch public
vercel.json: generate-vercel-config.ts
bun generate-vercel-config.ts > vercel.json
build.vercel: static/js vercel.json
@hugo --minify -d .vercel/output/static
@echo "Creating Vercel output config..."
@echo '{"version":3}' > .vercel/output/config.json