-
Notifications
You must be signed in to change notification settings - Fork 2
Add mageforge:static:clean command for comprehensive cache and generated files cleanup #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com>
Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com>
Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com>
Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com>
Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com>
Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com>
Ja, alle gewünschten Ordner wurden hinzugefügt. Der Befehl bereinigt jetzt: Theme-spezifische Verzeichnisse:
Globale Verzeichnisse:
Commit: 5596b42 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds a new mageforge:static:clean command that provides comprehensive cache and generated files cleanup functionality for Magento 2 themes, avoiding the overhead of a full cache flush.
Key Changes:
- New command with support for single theme, multiple themes, or all themes at once
- Interactive multi-select theme picker using Laravel Prompts for non-argument invocations
- Dry-run mode to preview deletions without executing them
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
src/Console/Command/Static/CleanCommand.php |
New command implementation with theme-specific and global directory cleaning logic |
src/etc/di.xml |
Registers the new CleanCommand in Magento's DI container |
docs/commands.md |
Documents the new command with usage examples and implementation details |
README.md |
Adds command to the available commands table |
CHANGELOG.md |
Records new features and changes in the unreleased section |
.github/workflows/magento-compatibility.yml |
Adds CI/CD tests for the new command with dry-run and alias tests |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com>
Implementation Plan for mageforge:static:clean Command
Summary
All code review feedback has been successfully addressed:
Fixes Applied:
m:s:ctom:st:cto avoid conflict with system:checkFinal Implementation:
--allflag to clean all themes--dry-runfor previewing changesm:st:c,frontend:cleanOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.