Stop tracking embedded Vite build output.
Keep a .gitkeep placeholder for go:embed and rebuild the frontend via make web / run-server-dev. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,18 +12,24 @@ PREFIX ?= $(GOPATH)
|
||||
INSTALL_BIN := $(PREFIX)/bin
|
||||
DEV_HOME := $(CURDIR)/.dev-home
|
||||
|
||||
.PHONY: build build-server build-all web run run-dev run-server-dev install uninstall test version demo
|
||||
.PHONY: build build-server build-all web web-build run run-dev run-server-dev install uninstall test version demo
|
||||
|
||||
build:
|
||||
go build -ldflags "$(LDFLAGS)" -o bin/$(BINARY) $(CMD)
|
||||
|
||||
web:
|
||||
cd web && npm ci && npm run build
|
||||
@mkdir -p internal/webembed/dist && touch internal/webembed/dist/.gitkeep
|
||||
|
||||
# Rebuild frontend only (assumes web/node_modules already installed).
|
||||
web-build:
|
||||
cd web && npm run build
|
||||
@mkdir -p internal/webembed/dist && touch internal/webembed/dist/.gitkeep
|
||||
|
||||
build-server: web
|
||||
go build -ldflags "$(LDFLAGS)" -o bin/$(BINARY_SERVER) $(CMD_SERVER)
|
||||
|
||||
# Build server binary without rebuilding frontend (uses committed/placeholder dist).
|
||||
# Build server binary without rebuilding frontend (uses local webembed/dist).
|
||||
build-server-go:
|
||||
go build -ldflags "$(LDFLAGS)" -o bin/$(BINARY_SERVER) $(CMD_SERVER)
|
||||
|
||||
@@ -40,7 +46,7 @@ run-dev: build
|
||||
|
||||
# Web test environment: SQLite demo against tm_server only (no YouTrack).
|
||||
# Seeds 50 demo projects (Test + samples); login admin/admin (alice/alice as member).
|
||||
run-server-dev: build-server-go
|
||||
run-server-dev: web-build build-server-go
|
||||
@rm -f $(DEV_HOME)/.local/share/task-master/task-master.db \
|
||||
$(DEV_HOME)/.local/share/task-master/task-master.db-wal \
|
||||
$(DEV_HOME)/.local/share/task-master/task-master.db-shm
|
||||
|
||||
Reference in New Issue
Block a user