From f3063e7c11ef6482744df5cb3659805b52da4c13 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 03:55:17 +0000 Subject: [PATCH 1/4] Initial plan From 55233981f8dbbd987444a90002653b0e1793c895 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 03:59:26 +0000 Subject: [PATCH 2/4] Remove all workflow and script references from documentation Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- CONTRIBUTING.md | 5 +---- README.md | 18 ------------------ 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f262c46..f85252e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,7 +38,6 @@ These guidelines apply to all contributions, including: * Source code changes * Documentation updates -* Workflow and automation changes * Bug reports and enhancement proposals ## Prerequisites @@ -72,7 +71,6 @@ The repository provides several tools to streamline development: * **Makefile**: Common development tasks (`make help` to see all commands) * **Pre-commit Hooks**: Automatic local validation before commits * **VS Code Tasks**: Pre-configured tasks for common operations -* **CI/CD Workflows**: Automated testing and deployment via MokoStandards Run `make validate-required` before submitting PRs to catch common issues early. @@ -81,8 +79,7 @@ Run `make validate-required` before submitting PRs to catch common issues early. 1. Fork the repository. 2. Create a branch from the active development branch. 3. Make focused, minimal changes that address a single concern. -4. Ensure changes pass existing CI checks. -5. Submit a pull request with a clear description of intent and impact. +4. Submit a pull request with a clear description of intent and impact. Direct commits to protected branches are not permitted. diff --git a/README.md b/README.md index cb05c85..2cc066a 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,6 @@ make package ### Development Resources - **[Quick Start Guide](./docs/QUICK_START.md)** - Get up and running in 5 minutes -- **[Workflow Guide](./docs/WORKFLOW_GUIDE.md)** - Complete workflow reference with examples - **[Joomla Development Guide](./docs/JOOMLA_DEVELOPMENT.md)** - Testing, quality checks, and deployment - **[Contributing Guide](./CONTRIBUTING.md)** - How to contribute @@ -180,23 +179,6 @@ make package - **Makefile**: Run `make help` to see all available commands - **Pre-commit Hooks**: Automatic validation before commits - **VS Code Tasks**: Pre-configured development tasks -- **GitHub Actions**: Automated CI/CD pipelines - -### Cross-Platform Support - -All automation is handled through the Makefile and GitHub Actions workflows for maximum cross-platform compatibility: -- **Joomla Extension Support**: Full support for Joomla 4.x and 5.x templates, components, modules, and plugins -- **Platform Detection**: Workflows automatically detect whether you're working with Joomla extensions -- **MokoStandards Integration**: Uses reusable workflows from MokoStandards for consistency - -### Joomla Development Workflows - -Comprehensive Joomla-aware development tools and workflows are available: - -- **Extension Packaging** - Create distributable ZIP packages for Joomla or Dolibarr -- **PHP Quality Checks** - PHPStan and PHP_CodeSniffer with Joomla standards -- **Automated Testing** - Codeception framework with multiple Joomla versions -- **CI/CD Pipelines** - GitHub Actions with caching for faster builds Run `make help` to see all available development commands. From 6e59d53fe577043a83aaee5a062c8ce2e8d44d5d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 04:02:24 +0000 Subject: [PATCH 3/4] Remove VS Code and Makefile references, delete issue templates Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/adr.md | 16 ---------- .github/ISSUE_TEMPLATE/bug_report.md | 29 ------------------- .github/ISSUE_TEMPLATE/deployment_plan.md | 20 ------------- .../ISSUE_TEMPLATE/documentation_change.md | 11 ------- .github/ISSUE_TEMPLATE/escalation.md | 14 --------- .github/ISSUE_TEMPLATE/feature_request.md | 21 -------------- .github/ISSUE_TEMPLATE/incident_report.md | 19 ------------ .github/ISSUE_TEMPLATE/migration_plan.md | 20 ------------- .github/ISSUE_TEMPLATE/risk_register_entry.md | 13 --------- .github/ISSUE_TEMPLATE/runbook.md | 18 ------------ .github/ISSUE_TEMPLATE/security_review.md | 15 ---------- CONTRIBUTING.md | 7 ----- README.md | 20 ------------- 13 files changed, 223 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/adr.md delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/deployment_plan.md delete mode 100644 .github/ISSUE_TEMPLATE/documentation_change.md delete mode 100644 .github/ISSUE_TEMPLATE/escalation.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/incident_report.md delete mode 100644 .github/ISSUE_TEMPLATE/migration_plan.md delete mode 100644 .github/ISSUE_TEMPLATE/risk_register_entry.md delete mode 100644 .github/ISSUE_TEMPLATE/runbook.md delete mode 100644 .github/ISSUE_TEMPLATE/security_review.md diff --git a/.github/ISSUE_TEMPLATE/adr.md b/.github/ISSUE_TEMPLATE/adr.md deleted file mode 100644 index 5bf7ed9..0000000 --- a/.github/ISSUE_TEMPLATE/adr.md +++ /dev/null @@ -1,16 +0,0 @@ -# Architecture Decision Record Proposal - -## Title - -## Status -Proposed - -## Context - -## Decision - -## Consequences - -## Alternatives Considered - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 971cfdd..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,29 +0,0 @@ -# Bug Report - -## Summary -Provide a concise description of the defect and impact. - -## Environment -- Application version -- Browser or OS -- Device -- Configuration details - -## Steps to Reproduce -1. -2. -3. - -## Expected Behavior - -## Actual Behavior - -## Logs / Screenshots - -## Severity & Impact - -## Related Incidents or Tickets - -## Acceptance Criteria - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/deployment_plan.md b/.github/ISSUE_TEMPLATE/deployment_plan.md deleted file mode 100644 index dc3d9a5..0000000 --- a/.github/ISSUE_TEMPLATE/deployment_plan.md +++ /dev/null @@ -1,20 +0,0 @@ -# Deployment Plan - -## Purpose - -## Scope - -## Preconditions - -## Deployment Steps -1. -2. -3. - -## Validation - -## Rollback Plan - -## Communications - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/documentation_change.md b/.github/ISSUE_TEMPLATE/documentation_change.md deleted file mode 100644 index f68168c..0000000 --- a/.github/ISSUE_TEMPLATE/documentation_change.md +++ /dev/null @@ -1,11 +0,0 @@ -# Documentation Change - -## Summary - -## Context - -## Proposed Updates - -## Acceptance Criteria - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/escalation.md b/.github/ISSUE_TEMPLATE/escalation.md deleted file mode 100644 index 11acd54..0000000 --- a/.github/ISSUE_TEMPLATE/escalation.md +++ /dev/null @@ -1,14 +0,0 @@ -# Escalation - -## Trigger Conditions - -## Severity Level -SEV1 | SEV2 | SEV3 - -## Escalation Path - -## Communication Plan - -## Closure Criteria - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index bbf530c..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,21 +0,0 @@ -# Feature Request - -## Summary - -## Background / Problem Statement - -## Proposed Solution - -## Alternatives Considered - -## Technical Details - -## User Impact - -## Dependencies - -## Risks - -## Acceptance Criteria - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/incident_report.md b/.github/ISSUE_TEMPLATE/incident_report.md deleted file mode 100644 index 5cacee1..0000000 --- a/.github/ISSUE_TEMPLATE/incident_report.md +++ /dev/null @@ -1,19 +0,0 @@ -# Incident Report - -## Incident Summary - -## Timeline - -## Impact Assessment - -## Root Cause - -## Corrective Actions - -## Preventive Actions - -## Follow Up - -## Communications - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/migration_plan.md b/.github/ISSUE_TEMPLATE/migration_plan.md deleted file mode 100644 index 16be173..0000000 --- a/.github/ISSUE_TEMPLATE/migration_plan.md +++ /dev/null @@ -1,20 +0,0 @@ -# Migration Plan - -## Purpose - -## Scope - -## Preconditions - -## Migration Steps -1. -2. -3. - -## Rollback Plan - -## Validation - -## Stakeholder Communications - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/risk_register_entry.md b/.github/ISSUE_TEMPLATE/risk_register_entry.md deleted file mode 100644 index 9333d16..0000000 --- a/.github/ISSUE_TEMPLATE/risk_register_entry.md +++ /dev/null @@ -1,13 +0,0 @@ -# Risk Register Entry - -## Risk Description - -## Probability and Impact - -## Mitigation Plan - -## Contingency Plan - -## Owners and Review Cadence - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/runbook.md b/.github/ISSUE_TEMPLATE/runbook.md deleted file mode 100644 index 7d5a8b7..0000000 --- a/.github/ISSUE_TEMPLATE/runbook.md +++ /dev/null @@ -1,18 +0,0 @@ -# Runbook - -## Purpose - -## Preconditions - -## Procedure -1. -2. -3. - -## Validation - -## Rollback - -## References - -## Review and Approval diff --git a/.github/ISSUE_TEMPLATE/security_review.md b/.github/ISSUE_TEMPLATE/security_review.md deleted file mode 100644 index 2797eb4..0000000 --- a/.github/ISSUE_TEMPLATE/security_review.md +++ /dev/null @@ -1,15 +0,0 @@ -# Security Review - -## Purpose - -## Scope - -## Threat Model Summary - -## Findings - -## Remediation Actions - -## Approval - -## Review and Approval diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f85252e..9d2dbab 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,9 +57,6 @@ For first-time contributors: # Clone the repository git clone https://github.com/mokoconsulting-tech/moko-cassiopeia.git cd moko-cassiopeia - -# Run development setup -make dev-setup ``` See [docs/QUICK_START.md](./docs/QUICK_START.md) for detailed setup instructions. @@ -68,11 +65,7 @@ See [docs/QUICK_START.md](./docs/QUICK_START.md) for detailed setup instructions The repository provides several tools to streamline development: -* **Makefile**: Common development tasks (`make help` to see all commands) * **Pre-commit Hooks**: Automatic local validation before commits -* **VS Code Tasks**: Pre-configured tasks for common operations - -Run `make validate-required` before submitting PRs to catch common issues early. ## Contribution Workflow diff --git a/README.md b/README.md index 2cc066a..37b0d4c 100644 --- a/README.md +++ b/README.md @@ -150,22 +150,6 @@ For developers and contributors working on the moko-cassiopeia template: ### Quick Start for Developers -Get started in minutes: - -```bash -# Setup development environment -make dev-setup - -# Validate code -make validate-required - -# Check code quality -make quality - -# Create distribution package -make package -``` - **New to the project?** See [Quick Start Guide](./docs/QUICK_START.md) for a 5-minute walkthrough. ### Development Resources @@ -176,11 +160,7 @@ make package ### Available Tools -- **Makefile**: Run `make help` to see all available commands - **Pre-commit Hooks**: Automatic validation before commits -- **VS Code Tasks**: Pre-configured development tasks - -Run `make help` to see all available development commands. ## Changelog From 1650124010d58e397c891b4d5592fcffd8c348c6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 04:05:22 +0000 Subject: [PATCH 4/4] Delete Makefile and .vscode directory Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- .vscode/tasks.json | 171 ----------------------------- Makefile | 265 --------------------------------------------- 2 files changed, 436 deletions(-) delete mode 100644 .vscode/tasks.json delete mode 100644 Makefile diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 071585d..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "Validate All", - "type": "shell", - "command": "./scripts/run/validate_all.sh", - "group": { - "kind": "test", - "isDefault": true - }, - "presentation": { - "reveal": "always", - "panel": "new" - }, - "problemMatcher": [] - }, - { - "label": "Validate Required", - "type": "shell", - "command": "make validate-required", - "group": "test", - "presentation": { - "reveal": "always", - "panel": "new" - }, - "problemMatcher": [] - }, - { - "label": "Run Tests", - "type": "shell", - "command": "codecept run", - "group": "test", - "presentation": { - "reveal": "always", - "panel": "new" - }, - "problemMatcher": [] - }, - { - "label": "PHP CodeSniffer", - "type": "shell", - "command": "phpcs --standard=phpcs.xml src/", - "group": "test", - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": { - "owner": "php", - "fileLocation": "relative", - "pattern": { - "regexp": "^(.+):(\\d+):(\\d+):\\s+(error|warning)\\s+-\\s+(.+)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5 - } - } - }, - { - "label": "PHP CodeSniffer - Auto Fix", - "type": "shell", - "command": "phpcbf --standard=phpcs.xml src/", - "group": "none", - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, - { - "label": "PHPStan", - "type": "shell", - "command": "phpstan analyse --configuration=phpstan.neon", - "group": "test", - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": { - "owner": "php", - "fileLocation": "relative", - "pattern": { - "regexp": "^(.+):(\\d+):\\s+(.+)$", - "file": 1, - "line": 2, - "message": 3 - } - } - }, - { - "label": "Create Package", - "type": "shell", - "command": "./scripts/release/package_extension.sh dist", - "group": "build", - "presentation": { - "reveal": "always", - "panel": "new" - }, - "problemMatcher": [] - }, - { - "label": "Smoke Test", - "type": "shell", - "command": "./scripts/run/smoke_test.sh", - "group": "test", - "presentation": { - "reveal": "always", - "panel": "new" - }, - "problemMatcher": [] - }, - { - "label": "Script Health Check", - "type": "shell", - "command": "./scripts/run/script_health.sh", - "group": "test", - "presentation": { - "reveal": "always", - "panel": "new" - }, - "problemMatcher": [] - }, - { - "label": "Check Code Quality", - "type": "shell", - "command": "make quality", - "group": "test", - "presentation": { - "reveal": "always", - "panel": "new" - }, - "problemMatcher": [] - }, - { - "label": "Fix Permissions", - "type": "shell", - "command": "make fix-permissions", - "group": "none", - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, - { - "label": "Clean", - "type": "shell", - "command": "make clean", - "group": "none", - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, - { - "label": "Install Git Hooks", - "type": "shell", - "command": "./scripts/git/install-hooks.sh", - "group": "none", - "presentation": { - "reveal": "always", - "panel": "new" - }, - "problemMatcher": [] - } - ] -} diff --git a/Makefile b/Makefile deleted file mode 100644 index e7fdce2..0000000 --- a/Makefile +++ /dev/null @@ -1,265 +0,0 @@ -# Makefile for Moko Cassiopeia Development -# Copyright (C) 2025 Moko Consulting -# -# SPDX-License-Identifier: GPL-3.0-or-later - -.PHONY: help install validate test quality package clean dev-setup - -# Default target -.DEFAULT_GOAL := help - -# Version detection -VERSION := $(shell grep -oP '\K[^<]+' src/templates/templateDetails.xml 2>/dev/null || echo "unknown") - -## help: Show this help message -help: - @echo "Moko Cassiopeia Development Makefile" - @echo "" - @echo "Version: $(VERSION)" - @echo "" - @echo "Available targets:" - @sed -n 's/^##//p' $(MAKEFILE_LIST) | column -t -s ':' | sed -e 's/^/ /' - -## install: Install development dependencies -install: - @echo "Installing development dependencies..." - @command -v composer >/dev/null 2>&1 || { echo "Error: composer not found. Please install composer first."; exit 1; } - composer global require "squizlabs/php_codesniffer:^3.0" --with-all-dependencies - composer global require "phpstan/phpstan:^1.0" --with-all-dependencies - composer global require "phpcompatibility/php-compatibility:^9.0" --with-all-dependencies - composer global require "codeception/codeception" --with-all-dependencies - composer global require "vimeo/psalm:^5.0" --with-all-dependencies - composer global require "phpmd/phpmd:^2.0" --with-all-dependencies - composer global require "friendsofphp/php-cs-fixer:^3.0" --with-all-dependencies - phpcs --config-set installed_paths ~/.composer/vendor/phpcompatibility/php-compatibility - @echo "✓ Dependencies installed" - -## validate: Run all validation scripts -validate: - @echo "Running validation scripts..." - @python3 ./scripts/run/validate_all.py - -## validate-required: Run only required validation scripts -validate-required: - @echo "Running required validations..." - @python3 ./scripts/validate/manifest.py - @python3 ./scripts/validate/xml_wellformed.py - @python3 ./scripts/validate/workflows.py - @echo "✓ Required validations passed" - -## test: Run all tests -test: - @echo "Running tests..." - @command -v codecept >/dev/null 2>&1 || { echo "Error: codecept not found. Run 'make install' first."; exit 1; } - codecept run - -## test-unit: Run unit tests only -test-unit: - @echo "Running unit tests..." - @command -v codecept >/dev/null 2>&1 || { echo "Error: codecept not found. Run 'make install' first."; exit 1; } - codecept run unit - -## test-acceptance: Run acceptance tests only -test-acceptance: - @echo "Running acceptance tests..." - @command -v codecept >/dev/null 2>&1 || { echo "Error: codecept not found. Run 'make install' first."; exit 1; } - codecept run acceptance - -## quality: Run code quality checks -quality: - @echo "Running code quality checks..." - @$(MAKE) phpcs - @$(MAKE) phpstan - @$(MAKE) phpcompat - -## phpcs: Run PHP_CodeSniffer -phpcs: - @echo "Running PHP_CodeSniffer..." - @command -v phpcs >/dev/null 2>&1 || { echo "Error: phpcs not found. Run 'make install' first."; exit 1; } - phpcs --standard=phpcs.xml src/ - -## phpcs-fix: Auto-fix PHPCS violations -phpcs-fix: - @echo "Auto-fixing PHPCS violations..." - @command -v phpcbf >/dev/null 2>&1 || { echo "Error: phpcbf not found. Run 'make install' first."; exit 1; } - phpcbf --standard=phpcs.xml src/ - -## phpstan: Run PHPStan static analysis -phpstan: - @echo "Running PHPStan..." - @command -v phpstan >/dev/null 2>&1 || { echo "Error: phpstan not found. Run 'make install' first."; exit 1; } - phpstan analyse --configuration=phpstan.neon - -## phpcompat: Check PHP 8.0+ compatibility -phpcompat: - @echo "Checking PHP 8.0+ compatibility..." - @command -v phpcs >/dev/null 2>&1 || { echo "Error: phpcs not found. Run 'make install' first."; exit 1; } - phpcs --standard=PHPCompatibility --runtime-set testVersion 8.0- src/ - -## psalm: Run Psalm static analysis -psalm: - @echo "Running Psalm static analysis..." - @command -v psalm >/dev/null 2>&1 || { echo "Error: psalm not found. Run 'make install' first."; exit 1; } - psalm --show-info=false - -## phpmd: Run PHP Mess Detector -phpmd: - @echo "Running PHP Mess Detector..." - @command -v phpmd >/dev/null 2>&1 || { echo "Error: phpmd not found. Run 'make install' first."; exit 1; } - phpmd src/ text cleancode,codesize,controversial,design,naming,unusedcode - -## php-cs-fixer: Run PHP-CS-Fixer -php-cs-fixer: - @echo "Running PHP-CS-Fixer..." - @command -v php-cs-fixer >/dev/null 2>&1 || { echo "Error: php-cs-fixer not found. Run 'make install' first."; exit 1; } - php-cs-fixer fix --dry-run --diff src/ - -## php-cs-fixer-fix: Auto-fix with PHP-CS-Fixer -php-cs-fixer-fix: - @echo "Auto-fixing with PHP-CS-Fixer..." - @command -v php-cs-fixer >/dev/null 2>&1 || { echo "Error: php-cs-fixer not found. Run 'make install' first."; exit 1; } - php-cs-fixer fix src/ - -## quality-extended: Run extended quality checks (includes psalm, phpmd) -quality-extended: - @echo "Running extended code quality checks..." - @$(MAKE) quality - @$(MAKE) psalm - @$(MAKE) phpmd - @echo "✓ All quality checks passed" - -## package: Create distribution package -package: - @echo "Creating distribution package..." - @python3 ./scripts/release/package_extension.py dist $(VERSION) - @echo "✓ Package created: dist/moko-cassiopeia-$(VERSION)-*.zip" - -## smoke-test: Run smoke tests -smoke-test: - @echo "Running smoke tests..." - @python3 ./scripts/run/smoke_test.py - -## script-health: Check script health -script-health: - @echo "Checking script health..." - @python3 ./scripts/run/script_health.py - -## version-check: Display current version information -version-check: - @echo "Version Information:" - @echo " Manifest: $(VERSION)" - @echo " Latest CHANGELOG entry:" - @grep -m 1 "^## \[" CHANGELOG.md || echo " (not found)" - -## fix-permissions: Fix script executable permissions -fix-permissions: - @echo "Fixing script permissions..." - @find scripts -type f -name "*.py" -exec chmod +x {} \; - @echo "✓ Permissions fixed" - -## clean: Remove generated files and caches -clean: - @echo "Cleaning generated files..." - @rm -rf dist/ - @rm -rf tests/_output/ - @rm -rf .phpunit.cache/ - @rm -rf .phpstan.cache/ - @rm -rf .psalm/ - @rm -rf .rector/ - @rm -rf phpmd-cache/ - @find . -type f -name ".php-cs-fixer.cache" -delete - @find . -type f -name ".phplint-cache" -delete - @find . -type f -name "*.log" -delete - @find . -type f -name ".DS_Store" -delete - @echo "✓ Cleaned" - -## dev-setup: Complete development environment setup -dev-setup: - @echo "Setting up development environment..." - @$(MAKE) install - @$(MAKE) fix-permissions - @echo "" - @echo "✓ Development environment ready!" - @echo "" - @echo "Quick start:" - @echo " make validate - Run all validations" - @echo " make test - Run tests" - @echo " make quality - Check code quality" - @echo " make package - Create distribution package" - -## format: Format code (PHPCS auto-fix) -format: phpcs-fix - -## check: Quick check (required validations + quality) -check: - @echo "Running quick checks..." - @$(MAKE) validate-required - @$(MAKE) quality - @echo "✓ All checks passed" - -## all: Run everything (validate, test, quality, package) -all: - @echo "Running complete build pipeline..." - @$(MAKE) validate - @$(MAKE) test - @$(MAKE) quality - @$(MAKE) package - @echo "✓ Complete pipeline successful" - -## watch: Watch for changes and run validations (requires entr) -watch: - @echo "Watching for changes... (Ctrl+C to stop)" - @command -v entr >/dev/null 2>&1 || { echo "Error: entr not found. Install with: apt-get install entr"; exit 1; } - @find src -type f | entr -c make validate-required - -## list-scripts: List all available scripts -list-scripts: - @echo "Available validation scripts:" - @find scripts/validate -type f -name "*.py" -exec basename {} \; | sort - @echo "" - @echo "Available fix scripts:" - @find scripts/fix -type f -name "*.py" -exec basename {} \; | sort - @echo "" - @echo "Available run scripts (python):" - @find scripts/run -type f -name "*.py" -exec basename {} \; | sort - -## scaffold: Create new Joomla extension scaffolding -scaffold: - @echo "Create new Joomla extension scaffolding" - @echo "" - @echo "Usage: make scaffold TYPE= NAME= AUTHOR= DESC=" - @echo "" - @echo "Types: component, module, plugin, template, package" - @echo "" - @echo "Example:" - @echo " make scaffold TYPE=module NAME='My Module' AUTHOR='John Doe' DESC='Module description'" - -## scaffold-component: Create a component -scaffold-component: - @python3 scripts/run/scaffold_extension.py component "$(NAME)" "$(DESC)" "$(AUTHOR)" - -## scaffold-module: Create a module -scaffold-module: - @python3 scripts/run/scaffold_extension.py module "$(NAME)" "$(DESC)" "$(AUTHOR)" --client $(CLIENT) - -## scaffold-plugin: Create a plugin -scaffold-plugin: - @python3 scripts/run/scaffold_extension.py plugin "$(NAME)" "$(DESC)" "$(AUTHOR)" --group $(GROUP) - -## scaffold-template: Create a template -scaffold-template: - @python3 scripts/run/scaffold_extension.py template "$(NAME)" "$(DESC)" "$(AUTHOR)" - -## scaffold-package: Create a package -scaffold-package: - @python3 scripts/run/scaffold_extension.py package "$(NAME)" "$(DESC)" "$(AUTHOR)" - -## docs: Open documentation -docs: - @echo "Documentation files:" - @echo " README.md - Project overview" - @echo " docs/JOOMLA_DEVELOPMENT.md - Development guide" - @echo " docs/WORKFLOW_GUIDE.md - Workflow reference" - @echo " scripts/README.md - Scripts documentation" - @echo " CHANGELOG.md - Version history" - @echo " CONTRIBUTING.md - Contribution guide"