cheppers/robo-yarn

This package is abandoned and no longer maintained. The author suggests using the sweetchuck/robo-yarn package instead.

Robo task wrappers for Yarn commands

Installs: 99

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 1

Type:robo-tasks

v0.2.3 2020-03-16 18:50 UTC

This package is auto-updated.

Last update: 2022-03-30 19:38:42 UTC


README

CircleCI codecov

Supported commands

  • yarn --version
  • yarn install
  • detect the configured NodeJS version from
    • yarn.lock
    • package-lock.json
    • .nvmrc

Example

<?php

use Sweetchuck\Robo\Yarn\YarnTaskLoader;
use Robo\Contract\TaskInterface;
use Robo\Tasks;

class RoboFile extends Tasks
{
    use YarnTaskLoader;

    public function yarnVersion(string $dir): TaskInterface
    {
        return $this->taskYarnVersion([
            'workingDirectory' => $dir,
        ]);
    }

    public function yarnInstall(string $dir): TaskInterface
    {
        return $this->taskYarnInstall([
            'workingDirectory' => $dir,
        ]);
    }
}