Skip to content

Commit e56ffce

Browse files
authored
Merge branch 'main' into copilot/add-hyva-token-command
2 parents 17cf63b + 8d92503 commit e56ffce

10 files changed

Lines changed: 2215 additions & 112 deletions

File tree

.github/workflows/magento-compatibility.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,30 @@ jobs:
134134
echo "Test MageForge Theme List command:"
135135
bin/magento mageforge:theme:list
136136
137+
138+
echo "Test MageForge Hyvä Compatibility Check command:"
139+
bin/magento mageforge:hyva:compatibility:check --help
140+
bin/magento m:h:c:c --help
141+
142+
echo "Test MageForge Hyvä Compatibility Check - Show all modules:"
143+
bin/magento mageforge:hyva:compatibility:check --show-all
144+
145+
echo "Test MageForge Hyvä Compatibility Check - Third party only:"
146+
bin/magento m:h:c:c --third-party-only
147+
148+
echo "Test MageForge Hyvä Compatibility Check - Detailed output:"
149+
bin/magento m:h:c:c --show-all --detailed
150+
151+
echo "Test MageForge Static Clean command with dry-run:"
152+
bin/magento mageforge:static:clean --all --dry-run
153+
154+
echo "Test MageForge Static Clean aliases:"
155+
bin/magento mageforge:static:clean --all --dry-run
156+
echo "Test MageForge Static Clean aliases:"
157+
bin/magento m:st:c --help
158+
bin/magento frontend:clean --help
159+
160+
137161
- name: Test Summary
138162
run: |
139163
echo "MageForge module compatibility test with Magento ${{ matrix.magento-version }} completed"
@@ -255,6 +279,27 @@ jobs:
255279
echo "Test MageForge Theme List command:"
256280
bin/magento mageforge:theme:list
257281
282+
echo "Test MageForge Hyvä Compatibility Check command:"
283+
bin/magento mageforge:hyva:compatibility:check --help
284+
bin/magento m:h:c:c --help
285+
286+
echo "Test MageForge Hyvä Compatibility Check - Show all modules:"
287+
bin/magento mageforge:hyva:compatibility:check --show-all
288+
289+
echo "Test MageForge Hyvä Compatibility Check - Third party only:"
290+
bin/magento m:h:c:c --third-party-only
291+
292+
echo "Test MageForge Hyvä Compatibility Check - Detailed output:"
293+
bin/magento m:h:c:c --show-all --detailed
294+
295+
echo "Test MageForge Static Clean command with dry-run:"
296+
bin/magento mageforge:static:clean --all --dry-run
297+
298+
echo "Test MageForge Static Clean alias:"
299+
bin/magento m:st:c --help
300+
bin/magento frontend:clean --help
301+
302+
258303
- name: Test Summary
259304
run: |
260305
echo "MageForge module compatibility test with Magento 2.4.8 completed"

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,30 @@ All notable changes to this project will be documented in this file.
66

77
## UNRELEASED
88

9+
10+
### Added
11+
912
- feat: add `mageforge:theme:tokens` command to generate Hyvä design tokens from design.tokens.json or hyva.config.json
13+
- feat: add `mageforge:hyva:compatibility:check` command to add a Hyvä compatibility checker
14+
- Scans Magento modules for Hyvä theme compatibility issues
15+
- Detects RequireJS, Knockout.js, jQuery, and UI Components usage
16+
- Interactive menu with Laravel Prompts for scan options
17+
- Options: `--show-all`, `--third-party-only`, `--include-vendor`, `--detailed`
18+
- Color-coded output (✓ Compatible, ⚠ Warnings, ✗ Incompatible)
19+
- Detailed file-level issues with line numbers
20+
- Exit code 1 for critical issues, 0 for success
21+
- Command aliases: `m:h:c:c`, `hyva:check`
22+
- feat: add `mageforge:static:clean` command for comprehensive cache and generated files cleanup
23+
- feat: add interactive multi-theme selection for static:clean command using Laravel Prompts
24+
- feat: add `--all` option to clean all themes at once
25+
- feat: add `--dry-run` option to preview what would be cleaned without deleting
26+
- feat: add command alias `frontend:clean` for quick access
27+
- feat: add CI/CD tests for static:clean command in compatibility workflow
28+
29+
### Changed
30+
31+
- refactor: split complex executeCommand method into smaller, focused methods to reduce cyclomatic complexity
32+
- docs: update copilot-instructions.md with CI/CD integration guidelines for new commands
1033

1134
## Latest Release
1235

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Please ensure that your Magento installation meets this requirement before insta
3838
| `mageforge:theme:build` | Builds selected themes (CSS/TailwindCSS) | `m:t:b`, `frontend:build` |
3939
| `mageforge:theme:watch` | Starts watch mode for theme development | `m:t:w`, `frontend:watch` |
4040
| `mageforge:theme:tokens` | Generate Hyvä design tokens (Hyvä themes only) | `m:t:t` |
41+
| `mageforge:static:clean` | Clean static files, cache and generated files for a theme | `m:st:c`,`frontend:clean` |
4142

4243
---
4344

0 commit comments

Comments
 (0)