Files
superfile/Makefile
Yorukot e0f8b8e085 fix: enhance terminal pixel detection and response handling (#904)
fix #900 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a development script to automate formatting, linting, testing,
integration tests, and building the project.
* **Refactor**
* Improved terminal cell size detection for file previews, providing
more reliable and synchronous behavior across platforms.
* **Chores**
* Updated terminal capability checks by removing Alacritty from the list
of terminals assumed to support the Kitty graphics protocol.
* Introduced a Makefile to streamline build, test, lint, and development
workflows.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-29 01:55:18 +08:00

42 lines
892 B
Makefile

.PHONY: all build test lint clean dev testsuite help
# Default target
all: dev
# Development workflow (equivalent to ./dev.sh)
dev:
@FORCE_COLOR=1 ./dev.sh
# Build only
build:
@FORCE_COLOR=1 ./dev.sh --skip-tests
# Run tests
test:
@go test ./...
# Run linter
lint:
@golangci-lint run
# Run full testsuite
testsuite:
@FORCE_COLOR=1 ./dev.sh --testsuite
# Clean build artifacts
clean:
@rm -rf ./bin/
# Show help
help:
@echo "Available targets:"
@echo " all - Run full development workflow (default)"
@echo " dev - Run development workflow (./dev.sh)"
@echo " build - Build only (skip tests)"
@echo " test - Run unit tests only"
@echo " lint - Run linter only"
@echo " testsuite - Run full testsuite"
@echo " clean - Clean build artifacts"
@echo " help - Show this help"
@echo ""
@echo "For more options, use: ./dev.sh --help"