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>
23 lines
679 B
Makefile
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
|