Files
new-api/makefile

15 lines
377 B
Makefile
Raw Permalink Normal View History

2024-03-01 20:39:28 +08:00
FRONTEND_DIR = ./web
BACKEND_DIR = .
.PHONY: all build-frontend start-backend
2024-03-01 20:39:28 +08:00
2024-03-03 19:41:15 +08:00
all: build-frontend start-backend
2024-03-01 20:39:28 +08:00
2024-03-01 21:54:24 +08:00
build-frontend:
@echo "Building frontend..."
2025-06-09 14:57:01 +08:00
@cd $(FRONTEND_DIR) && bun install && DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(cat VERSION) bun run build
2024-03-01 21:54:24 +08:00
2024-03-01 20:39:28 +08:00
start-backend:
@echo "Starting backend dev server..."
@cd $(BACKEND_DIR) && go run main.go &