-
Notifications
You must be signed in to change notification settings - Fork 205
/
Copy pathMakefile
35 lines (27 loc) · 933 Bytes
/
Makefile
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
MAKEFLAGS = --no-print-directory --always-make --silent
MAKE = make $(MAKEFLAGS)
dev:
@echo "Booting up frontend..."
pnpm run dev
index-docs:
@echo "Indexing docs..."
node ./www/scripts/index-docs.mjs
publish:
@echo "Building + Publishing Packages..."
./scripts/publish_packages.clj
publish-experimental:
@echo "(Experimental Build) Building + Publishing Packages..."
./scripts/publish_packages.clj experimental
build-email:
$(MAKE) replace-email-images
$(MAKE) text-email
$(MAKE) html-email
replace-email-images:
echo "Replacing images..."
node www/_emails/replace-images/index.mjs $(slug)
text-email:
echo "Generating text verison of email..."
sed -e 's/!\[[^]]*\]([^)]*)//g' www/_emails/markdown/$(slug).md | sed '/^$$/N;/^\n$$/D' > www/_emails/txt/$(slug).txt
html-email:
echo "Generating HTML version email..."
pandoc -f markdown -t html www/_emails/markdown/$(slug).md -o www/_emails/html/$(slug).html