You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
372 B
21 lines
372 B
APP_NAME := person-site
|
|
FRONTEND_DIR := web
|
|
|
|
.PHONY: dev-backend dev-frontend build test clean
|
|
|
|
dev-backend:
|
|
go run -tags dev .
|
|
|
|
dev-frontend:
|
|
cd $(FRONTEND_DIR) && npm run dev
|
|
|
|
build: clean
|
|
cd $(FRONTEND_DIR) && npm ci && npm run build
|
|
go build -ldflags="-s -w" -o $(APP_NAME) .
|
|
|
|
test:
|
|
go test -tags dev ./...
|
|
|
|
clean:
|
|
rm -f $(APP_NAME)
|
|
rm -rf $(FRONTEND_DIR)/dist
|
|
|