30 lines
429 B
Makefile
30 lines
429 B
Makefile
.PHONY: install frontend backend all dev
|
|
|
|
install-frontend:
|
|
npm ci --prefix frontend
|
|
|
|
install-backend:
|
|
go mod download
|
|
|
|
install: install-frontend install-backend
|
|
|
|
frontend:
|
|
VITE_API_URL=/api npm run --prefix frontend build
|
|
|
|
backend:
|
|
CGO_ENABLED=0 go build -o goshort goshort.go
|
|
|
|
all: frontend backend
|
|
|
|
serve:
|
|
go run goshort.go serve
|
|
|
|
dev:
|
|
go run goshort.go dev
|
|
|
|
lint:
|
|
golangci-lint run
|
|
|
|
lint-fix:
|
|
golangci-lint run --fix
|