forked from netresearch/t3x-rte_ckeditor_image
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
104 lines (81 loc) · 2.58 KB
/
Copy pathMakefile
File metadata and controls
104 lines (81 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Makefile for rte_ckeditor_image TYPO3 Extension
# Auto-generated by agent - Last updated: 2025-10-22
.PHONY: help
help: ## Show available targets
@awk 'BEGIN{FS=":.*##";print "\nUsage: make <target>\n"} /^[a-zA-Z0-9_.-]+:.*##/ {printf " %-22s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
# ===================================
# DDEV Environment Commands
# ===================================
.PHONY: up
up: start setup ## Complete startup (start DDEV + run setup) - ONE COMMAND TO RULE THEM ALL
.PHONY: start
start: ## Start DDEV environment
ddev start
.PHONY: stop
stop: ## Stop DDEV environment
ddev stop
.PHONY: setup
setup: ## Complete setup (docs + install + configure)
@ddev describe >/dev/null 2>&1 || ddev start
ddev setup
.PHONY: docs
docs: ## Render extension documentation
ddev docs
.PHONY: docs-lint
docs-lint: ## Lint documentation (TYPO3 guidelines compliance)
./Build/Scripts/validate-docs.sh
.PHONY: docs-fix
docs-fix: ## Fix auto-fixable documentation issues
./Build/Scripts/validate-docs.sh --fix
.PHONY: install-v13
install-v13: ## Install TYPO3 v13.4 LTS
ddev install-v13
.PHONY: ddev-restart
ddev-restart: ## Restart DDEV containers
ddev restart
# ===================================
# Composer & Quality Commands
# ===================================
.PHONY: install
install: ## Install composer dependencies
composer install
.PHONY: lint
lint: ## Run all linters (PHP syntax + PHPStan + style check + docs)
@echo "==> Running PHP lint..."
composer ci:test:php:lint
@echo "==> Running PHPStan..."
composer ci:test:php:phpstan
@echo "==> Running Rector check..."
composer ci:test:php:rector
@echo "==> Running code style check..."
composer ci:test:php:cgl
@echo "==> Running documentation lint..."
./Build/Scripts/validate-docs.sh || true
@echo "✅ All linters passed"
.PHONY: format
format: ## Auto-fix code style issues
composer ci:cgl
.PHONY: typecheck
typecheck: ## Run PHPStan static analysis
composer ci:test:php:phpstan
.PHONY: rector
rector: ## Apply Rector PHP modernization changes
composer ci:rector
.PHONY: rector-check
rector-check: ## Check Rector suggestions without applying
composer ci:test:php:rector
.PHONY: test
test: ## Run tests (when available)
@echo "⚠️ Tests not yet configured"
@echo "See Tests/AGENTS.md for test setup instructions"
.PHONY: ci
ci: ## Run complete CI pipeline (pre-commit checks)
composer ci:test
.PHONY: phpstan-baseline
phpstan-baseline: ## Update PHPStan baseline
composer ci:test:php:phpstan:baseline
.PHONY: clean
clean: ## Clean temporary files and caches
rm -rf .php-cs-fixer.cache
rm -rf var/
.DEFAULT_GOAL := help