composer require jasny\robo-extensions
class RoboFile extends Robo\Tasks
{
use Jasny\Robo\loadTasks;
...
}A version of Robo\Task\Assets\Less that supports passing options and using uri_root for less.php.
$this->taskLess(['www/less/main.less' => 'www/css/style.css'])
->compiler('less', [
'base' => 'www',
'strictMath' => true
])
->run();Bump the version in a json file.
Optionally the git tags are referenced to determine the new version.
$this->taskBumpVersion('composer.json')
->inc('minor')
->run();
$this->taskBumpVersion('composer.json')
->to('1.2.6')
->run();
// `to` also works for 'major', 'minor' and 'patch'
$this->taskBumpVersion('composer.json')
->to('minor')
->run();
// Check the git tags
$this->taskBumpVersion('composer.json')
->inc('patch')
->useGit()
->run();