Added templ, tailwind and frankenui
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user