mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
15 lines
401 B
Makefile
15 lines
401 B
Makefile
FRONTEND_DIR = ./web
|
|
BACKEND_DIR = .
|
|
|
|
.PHONY: all build-frontend start-backend
|
|
|
|
all: build-frontend start-backend
|
|
|
|
build-frontend:
|
|
@echo "Building frontend..."
|
|
@cd $(FRONTEND_DIR) && yarn install --network-timeout 1000000 && DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(cat VERSION) yarn build
|
|
|
|
start-backend:
|
|
@echo "Starting backend dev server..."
|
|
@cd $(BACKEND_DIR) && go run main.go &
|