-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (23 loc) · 900 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
.PHONY : assets generate serve
assets:
@echo "\033[0;31mBuilding assets...\033[0m"
rm -r static/dist || true
@echo "\033[0;31mBuilding tailwind...\033[0m"
npx tailwindcss -i static/tailwind.css -o static/dist/tailwind.css
@echo "\033[0;31mBuilding htmx...\033[0m"
cp node_modules/htmx.org/dist/htmx.min.js static/dist/htmx.min.js
@echo "\033[0;31mBuilding htmx-sse...\033[0m"
cp node_modules/htmx-ext-sse/sse.js static/dist/htmx-ext-sse.js
@echo "\033[0;31mBuilding alpinejs...\033[0m"
cp node_modules/alpinejs/dist/cdn.min.js static/dist/alpinejs.min.js
@echo "\033[0;31mBuilding hyperscript...\033[0m"
cp node_modules/hyperscript.org/dist/_hyperscript.min.js static/dist/_hyperscript.min.js
@echo "\033[0;31mBuilding fonts...\033[0m"
cp -r static/fonts static/dist/fonts
build_dungeons:
cd dungeons && npm run build
generate:
$(MAKE) assets
go generate
serve:
air -c .air.toml