Files
new-api/makefile

16 lines
387 B
Makefile
Raw 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
all: start-frontend start-backend
2024-03-01 21:54:24 +08:00
build-frontend:
@echo "Building frontend..."
@cd $(FRONTEND_DIR) && npm install && DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build npm run build
2024-03-01 20:39:28 +08:00
start-backend:
@echo "Starting backend dev server..."
@cd $(BACKEND_DIR) && go run main.go &