fryiee / addon_composer-extension
An extension for the addons module to add composer commands that can be run on all addons.
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:streams-addon
This package is auto-updated.
Last update: 2024-10-16 19:05:11 UTC
README
A PyroCMS 3 extension for the Addons Module which provides composer commands across all non-core addons
(Note: This means it will currently only run on addons in the addons/
folder, not those installed via Composer.)
Installation
composer require fryiee/addon_composer-extension
If you are installing this on an existing project, then you will also want to run:
php artisan addon:install fryiee.extension.addon_composer
Usage
php artisan addon:composer <command> --args=<arg1> --flags=<flag1> --excludes=<namespace.type.slug>
You can add multiple args, flags or excludes by comma separating them, e.g. --args=no-dev,prefer-dist
The extension will confirm the parsed command and any exclusions before running, e.g.
Run composer install --no-dev on each addon (excluding rt.module.profiles)? (yes/no) [no]:
Examples
Run composer install no-dev on all addons
php artisan addon:composer install --flags=no-dev