Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.claude/
bin/
coverage.out
coverage.html
node_modules/
.sym/
33 changes: 28 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.PHONY: build test install clean fmt lint tidy help build-all setup
# symphonyclient integration: Added CSS build targets
.PHONY: build test install clean fmt lint tidy help build-all setup build-css install-css watch-css

BINARY_NAME=sym
BUILD_DIR=bin
Expand All @@ -8,8 +9,10 @@ LDFLAGS=-ldflags "-X main.Version=$(VERSION)"

help:
@echo "Available targets:"
@echo " build - Build the binary for current platform"
@echo " build - Build the binary for current platform (includes CSS)"
@echo " build-all - Build for all platforms (Linux, macOS, Windows)"
@echo " build-css - Build Tailwind CSS for dashboard"
@echo " watch-css - Watch and rebuild CSS on changes"
@echo " test - Run tests"
@echo " install - Install the binary to GOPATH/bin"
@echo " clean - Remove build artifacts"
Expand All @@ -18,13 +21,32 @@ help:
@echo " tidy - Tidy dependencies"
@echo " setup - Setup development environment"

build:
# symphonyclient integration: CSS build for dashboard
install-css:
@echo "Installing CSS dependencies..."
@npm install

build-css: install-css
@echo "Building Tailwind CSS..."
@npm run build:css
@echo "CSS build complete"

watch-css: install-css
@echo "Watching CSS changes..."
@npm run watch:css

build: build-css
@echo "Building $(BINARY_NAME)..."
@mkdir -p $(BUILD_DIR)
ifeq ($(OS),Windows_NT)
@go build $(LDFLAGS) -o $(BUILD_DIR)/$(BINARY_NAME).exe $(MAIN_PATH)
@echo "Build complete: $(BUILD_DIR)/$(BINARY_NAME).exe"
else
@go build $(LDFLAGS) -o $(BUILD_DIR)/$(BINARY_NAME) $(MAIN_PATH)
@echo "Build complete: $(BUILD_DIR)/$(BINARY_NAME)"
endif

build-all:
build-all: build-css
@echo "Building for all platforms..."
@mkdir -p $(BUILD_DIR)
@echo "Building Linux amd64..."
Expand Down Expand Up @@ -54,6 +76,7 @@ clean:
@echo "Cleaning..."
@rm -rf $(BUILD_DIR)
@rm -f coverage.out coverage.html
@rm -rf node_modules
@echo "Clean complete"

fmt:
Expand All @@ -75,7 +98,7 @@ tidy:
@echo "Tidy complete"

# Development helpers
setup: tidy
setup: tidy install-css
@echo "Setting up development environment..."
@go mod download
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
Expand Down
Loading