goshort/Makefile
Gustavo Maronato 949ea57dd9
Some checks failed
Build / build (push) Has been cancelled
I'm done
2023-08-24 22:03:58 -03:00

27 lines
340 B
Makefile

.PHONY: install frontend backend all dev
install:
npm ci --prefix frontend
frontend:
VITE_API_URL=/api npm run --prefix frontend build
backend:
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