2024-10-25 02:32:25 +00:00
|
|
|
.PHONY: build run
|
|
|
|
|
|
|
|
SOURCE := $(shell find fonts lib pages server -type f) main.go
|
|
|
|
|
|
|
|
# build binary for deployment
|
2024-12-11 07:18:43 +00:00
|
|
|
build: magicwallet
|
|
|
|
magicwallet: $(SOURCE)
|
2024-10-25 02:32:25 +00:00
|
|
|
tailwindcss -i public/css/base.css -o public/css/tailwind.css
|
|
|
|
templ generate -path pages
|
2024-12-11 07:18:43 +00:00
|
|
|
go build -o magicwallet .
|
2024-10-25 02:32:25 +00:00
|
|
|
|
|
|
|
# run code for development (no watch mode yet)
|
|
|
|
run:
|
|
|
|
tailwindcss -i public/css/base.css -o public/css/tailwind.css
|
|
|
|
templ generate -path pages
|
2024-10-25 23:59:45 +00:00
|
|
|
go run .
|
|
|
|
|
|
|
|
dev:
|
|
|
|
bash hotreload.sh
|