-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 699 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 699 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
.PHONY: dev build build-client build-server test test-client test-e2e clean
# Development: Go server manages Vite child process
dev:
cd go && go run ./cmd/readit -- --dev $(ARGS)
# Production build: frontend first, then Go embeds it
build: build-client build-server
build-client:
bunx vite build
build-server: build-client
rm -rf go/internal/server/dist
mkdir -p go/internal/server/dist
cp -r dist/. go/internal/server/dist/
cd go && go build -o ../dist/readit ./cmd/readit
# Tests
test:
cd go && go test ./...
test-client:
bun run test
test-e2e:
bun run test:e2e
clean:
rm -rf dist go/internal/server/dist
mkdir -p go/internal/server/dist
touch go/internal/server/dist/.gitkeep