webext-dark-mode/Makefile
Felipe M. 8d93f3b3cf
All checks were successful
CI / build (push) Successful in 11s
CI / lint (push) Successful in 14s
ci: migrate from Woodpecker CI to Forgejo Actions (#1)
Replace Woodpecker CI with GitHub/Forgejo Actions workflows matching
the patterns used in mattermost-marketplace-ng. Add CI workflow with
lint and build jobs, and release workflow with artifact upload.
Also update .gitignore with web-ext-artifacts and AI tool entries.

Reviewed-on: #1
Co-authored-by: Felipe M. <me@fmartingr.com>
Co-committed-by: Felipe M. <me@fmartingr.com>
2026-04-08 11:06:20 +02:00

23 lines
679 B
Makefile

.PHONY: help build clean test
EXTENSION_NAME := extension.zip
EXTENSION_XPI := extension.xpi
FILES := manifest.json content.js styles.css popup.html popup.js icons
help: ## Show this help message
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
build: ## Build the extension
@echo "Building extension..."
@bunx --bun web-ext build --overwrite-dest
clean: ## Remove build artifacts
@echo "Cleaning up..."
@rm -f $(EXTENSION_NAME) $(EXTENSION_XPI)
lint: ## Lint the extension
@echo "Linting..."
@bunx --bun web-ext lint