goshort/Makefile

27 lines
354 B
Makefile
Raw Normal View History

2023-08-19 02:03:42 -03:00
.PHONY: install frontend backend all dev
install:
npm ci --prefix frontend
frontend:
VITE_API_URL=/api npm run --prefix frontend build
backend:
2023-08-24 22:44:03 -03:00
CGO_ENABLED=0 go build -o goshort goshort.go
2023-08-19 02:03:42 -03:00
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