insite / robo-composer-script
Robo task that runs custom Composer scripts
Installs: 1 499
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- consolidation/robo: ^4.0 || ^5.0
This package is auto-updated.
Last update: 2024-11-06 16:42:07 UTC
README
This packages contains Robo tasks that allows you to run
custom Composer scripts
and composer exec
.
Script task
You can use it like this:
/** @var \RoboComposerScript\ComposerScriptTask $composerTask */ $composerTask = $this->taskComposerScript(); $composerTask->arg('myscript') ->scriptOption('option'); $composerTask->run();
This will run:
composer run-script myscript --ansi -- --option
Exec task
You can use it like this:
/** @var \RoboComposerScript\ComposerExecTask $composerTask */ $composerTask = $this->taskComposerExec(); $composerTask->arg('mycommand'); $composerTask->run();
This will run:
composer exec mycommand --ansi