goshort/Makefile
Gustavo Maronato 7499aea5cc
Some checks failed
Build / build (push) Has been cancelled
there we go
2023-08-24 22:44:03 -03:00

27 lines
354 B
Makefile

.PHONY: install frontend backend all dev
install:
npm ci --prefix frontend
frontend:
VITE_API_URL=/api npm run --prefix frontend build
backend:
CGO_ENABLED=0 go build -o goshort goshort.go
all:
make frontend
make backend
serve:
go run goshort.go serve
dev:
go run goshort.go dev
lint:
golangci-lint run
lint-fix:
golangci-lint run --fix