27 lines
340 B
Makefile
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
|