Skip to content
This repository was archived by the owner on Mar 23, 2022. It is now read-only.

jasny/robo-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Extensions for RoboTask

Installation

composer require jasny\robo-extensions

Usage

class RoboFile extends Robo\Tasks
{
    use Jasny\Robo\loadTasks;
    
    ...
}

LessTask

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();

BumpVersionTask

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();

About

Custom tasks for RoboTask

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages