2023-11-03 20:17:04 +00:00
|
|
|
.PHONY: build run test
|
2023-09-10 15:39:34 +00:00
|
|
|
|
2023-11-22 23:15:44 +00:00
|
|
|
SOURCE := $(shell find db env lib lnd pages public server -type f) main.go
|
2023-09-10 15:39:34 +00:00
|
|
|
|
2023-09-09 20:52:50 +00:00
|
|
|
build: delphi.market
|
|
|
|
|
2023-09-10 15:39:34 +00:00
|
|
|
delphi.market: $(SOURCE)
|
2024-07-10 04:11:28 +00:00
|
|
|
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
|
2024-07-09 20:41:29 +00:00
|
|
|
templ generate -path server/router/pages
|
2023-09-10 15:39:34 +00:00
|
|
|
go build -o delphi.market .
|
2023-09-09 20:52:50 +00:00
|
|
|
|
|
|
|
run:
|
2024-07-10 04:11:28 +00:00
|
|
|
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
|
2024-07-09 20:41:29 +00:00
|
|
|
templ generate -path server/router/pages
|
2023-09-10 15:39:34 +00:00
|
|
|
go run .
|
2023-09-09 20:52:50 +00:00
|
|
|
|
2024-07-10 02:48:45 +00:00
|
|
|
dev:
|
|
|
|
bash hotreload.sh
|
|
|
|
|
2023-10-04 13:37:04 +00:00
|
|
|
test:
|
2023-11-03 22:00:09 +00:00
|
|
|
go test -v -count=1 ./server/router/handler/...
|