Added templ, tailwind and frankenui

This commit is contained in:
2025-02-05 01:51:06 +11:00
parent 5c8d4c5158
commit b6feed7c0c
18 changed files with 1754 additions and 21 deletions

21
Makefile Normal file
View File

@@ -0,0 +1,21 @@
# Makefile
.PHONY: build
BINARY_NAME=projectreshoot
# build builds the tailwind css sheet, and compiles the binary into a usable thing.
build:
go mod tidy && \
templ generate && \
go generate && \
go build -ldflags="-w -s" -o ${BINARY_NAME}
# dev runs the development server where it builds the tailwind css sheet,
# and compiles the project whenever a file is changed.
dev:
npx tailwindcss -i ./static/css/input.css -o ./static/css/output.css --watch &\
templ generate --watch --cmd="go generate" &\
templ generate --watch --cmd="go run ."
clean:
go clean