clarkwinkelmann / flarum-ext-workbench-cleanup
Inspect and delete unused files in the development workbench folder
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:TypeScript
Type:flarum-extension
Requires
- php: ^8.0
- ext-json: *
- flarum/core: ^1.2
This package is not auto-updated.
Last update: 2024-09-11 00:42:09 UTC
README
Offers a simple page to inspect the space used by node_modules
and vendor
folders in the development workbench folder with quick shortcuts to delete them to free up space.
Only supports workbench folders defined with the syntax "url": "workbench/*/"
.
Different folder names or multiple folders will be automatically picked up.
All features are restricted to admin users only so it should be safe even if you use it on publicly accessible forums.
Known limitations:
- The list does not update automatically when you delete something
- Extension folders with neither a
vendor
nornode_modules
folder will not appear in the list - All strings have been hard-coded, the extension cannot be translated
Requirements
This extension was only designed for my personal development setup on Linux but might work on other Unix-compatible systems.
- Operating system with forward-slash folder paths
du
(disk usage) command-line utility- PHP 8.0+
shell_exec
PHP access- Flarum 1.2+
Installation
composer require clarkwinkelmann/flarum-ext-workbench-cleanup
Support
This extension is under minimal maintenance.
It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.
You can contact me to sponsor additional features or updates.
Support is offered on a "best effort" basis through the Flarum community thread.