-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 695 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: all install build dev clean lint preview run
all: build
install:
@echo "Installing frontend dependencies..."
cd frontend && ( [ -d node_modules ] || npm install )
build: install
@echo "Building frontend..."
cd frontend && npm run build
@echo "Building Go backend..."
go build -o code-pipeline
run: build
@echo "Starting code-pipeline..."
./code-pipeline
dev: install
@echo "Starting dev server..."
cd frontend && npm run dev
lint: install
@echo "Running linter..."
cd frontend && npm run lint
preview: build
@echo "Starting production preview..."
cd frontend && npm run preview
clean:
@echo "Cleaning build artifacts..."
rm -rf frontend/dist
rm -f code-pipeline