mirror of
				https://github.com/linux-do/new-api.git
				synced 2025-11-04 21:33:41 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			386 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			386 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) && npm install && DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build npm run build
 | 
						|
 | 
						|
start-backend:
 | 
						|
	@echo "Starting backend dev server..."
 | 
						|
	@cd $(BACKEND_DIR) && go run main.go &
 |