- Added aria-label and type attributes to the edit button in the sidebar. - Implemented a mechanism to prevent multiple edit triggers using requestAnimationFrame. - Updated mousedown event handling to allow real controls while preventing text selection in WKWebView. feat: add reconnectSession method to TabManager - Introduced reconnectSession method to facilitate session reconnections by ID. feat: implement disconnected overlay in terminal - Added setDisconnectedOverlay method to show/hide a disconnected overlay for terminal sessions. - Created _ensureDisconnectOverlay method to manage the overlay's existence and content. feat: extend Service API with file-related functions - Added FileExists and FileIsPrivateKey functions to check file existence and identify private keys. - Introduced ListSSHKeys function to retrieve SSH private key paths from the user's .ssh directory. - Implemented SFTPStat and SFTPUploadData functions for enhanced SFTP operations. refactor: clean up code formatting and improve readability - Adjusted code formatting for better readability across various files, including consistent use of line breaks and indentation.
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
.PHONY: all build dev clean test test-cover lint install deps frontend-deps run package help
|
|
|
|
# Resolve the Wails binary. Prefer wails on PATH; fall back to GOPATH/bin.
|
|
WAILS := $(or $(shell which wails 2>/dev/null),$(shell go env GOPATH)/bin/wails)
|
|
|
|
# Default target
|
|
all: build
|
|
|
|
# Install all dependencies
|
|
deps: frontend-deps
|
|
go mod download
|
|
|
|
# Install frontend dependencies
|
|
frontend-deps:
|
|
cd frontend && npm install
|
|
|
|
# Development mode with hot reload
|
|
dev: deps
|
|
$(WAILS) dev
|
|
|
|
# Production build
|
|
build: deps
|
|
$(WAILS) build -ldflags "-s -w"
|
|
|
|
# Run tests
|
|
test:
|
|
go test ./... -v -count=1
|
|
|
|
# Run tests with coverage
|
|
test-cover:
|
|
go test ./... -v -count=1 -coverprofile=coverage.out
|
|
go tool cover -html=coverage.out -o coverage.html
|
|
|
|
# Clean build artefacts
|
|
clean:
|
|
rm -rf build/bin
|
|
rm -rf frontend/node_modules
|
|
rm -rf frontend/src/js/lib
|
|
rm -rf frontend/src/css/lib
|
|
go clean -testcache
|
|
|
|
# Lint (requires golangci-lint)
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
# Package for distribution
|
|
package: build
|
|
@echo "Binary built at build/bin/"
|
|
|
|
# Help
|
|
help:
|
|
@echo "Nexus Terminal — Build Targets"
|
|
@echo ""
|
|
@echo " make deps — Install all dependencies"
|
|
@echo " make dev — Run in development mode with hot reload"
|
|
@echo " make build — Production build"
|
|
@echo " make test — Run tests"
|
|
@echo " make test-cover — Run tests with coverage report"
|
|
@echo " make clean — Clean build artefacts"
|
|
@echo " make lint — Run linter (requires golangci-lint)"
|
|
@echo " make package — Build and package for distribution"
|
|
@echo " make help — Show this help"
|