fix!: create theme:clean command for cleaning theme static files and … #80
+23
−27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Restructures the
CleanCommandto align with the existingthemecommand namespace for better consistency.Changes
Command Restructuring
Console/Command/Static/CleanCommand.php→Console/Command/Theme/CleanCommand.phpOpenForgeProject\MageForge\Console\Command\Static→...Command\Thememageforge:static:clean→mageforge:theme:cleanm:st:c→m:t:c(keepsfrontend:clean)Updated Files
src/src/Console/Command/Theme/CleanCommand.php- Namespace, command name, aliases, descriptionsrc/src/etc/di.xml- Command registration updatedsrc/README.md- Command table updatedsrc/docs/commands.md- Command reference updatedsrc/CHANGELOG.md- Command references updated.github/copilot-instructions.md- Example updated.github/workflows/magento-compatibility.yml- CI/CD tests updated (both Elasticsearch and OpenSearch jobs)Rationale
All theme-related commands now follow a consistent pattern:
mageforge:theme:build(m:t:b)mageforge:theme:watch(m:t:w)mageforge:theme:list(m:t:l)mageforge:theme:clean(m:t:c) ← now consistentmageforge:theme:tokens(m:t:t)The previous
mageforge:static:cleanwith aliasm:st:cbroke this pattern.Testing
bin/magento mageforge:theme:clean --helpbin/magento m:t:c --helpbin/magento frontend:clean --helpBreaking Changes
mageforge:static:cleanorm:st:cneed to be updated tomageforge:theme:cleanorm:t:c.The
frontend:cleanalias remains for backward compatibility.