insite/robo-composer-script

Robo task that runs custom Composer scripts

0.2.1 2024-10-21 16:15 UTC

This package is auto-updated.

Last update: 2024-12-06 16:47:05 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