2024-03-18 17:03:14 +00:00
|
|
|
.PHONY : clean all ui api gen wire docker
|
|
|
|
gen:
|
|
|
|
ifeq ($(wildcard "webui/node_modules"),)
|
|
|
|
buf generate
|
|
|
|
else
|
|
|
|
buf generate --exclude-path webui/node_modules
|
|
|
|
endif
|
|
|
|
|
|
|
|
wire:
|
|
|
|
go mod tidy
|
|
|
|
cd gen/wire && wire
|
2023-09-30 13:47:59 +00:00
|
|
|
|
|
|
|
ui:
|
2024-03-18 17:03:14 +00:00
|
|
|
cd webui && npm install && npm run build
|
2023-09-30 13:47:59 +00:00
|
|
|
|
|
|
|
api:
|
2024-03-18 17:03:14 +00:00
|
|
|
go mod tidy && go build .
|
|
|
|
|
|
|
|
build: gen wire ui api
|
|
|
|
|
|
|
|
run: gen wire ui api
|
2023-09-30 13:47:59 +00:00
|
|
|
./pastebin api
|
2024-03-18 17:03:14 +00:00
|
|
|
|
|
|
|
docker:
|
|
|
|
podman build -t images.internal/pastebin:latest .
|
|
|
|
podman push images.internal/pastebin:latest
|