goshort/Makefile

30 lines
429 B
Makefile
Raw Normal View History

2023-08-19 02:03:42 -03:00
.PHONY: install frontend backend all dev
2023-08-30 23:17:05 -03:00
install-frontend:
2023-08-19 02:03:42 -03:00
npm ci --prefix frontend
2023-08-30 23:17:05 -03:00
install-backend:
go mod download
install: install-frontend install-backend
2023-08-19 02:03:42 -03:00
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
2023-08-30 23:17:05 -03:00
all: frontend backend
2023-08-19 02:03:42 -03:00
serve:
go run goshort.go serve
dev:
go run goshort.go dev
lint:
golangci-lint run
lint-fix:
golangci-lint run --fix