sweetchuck / robo-yarn
Robo task wrappers for Yarn commands
Installs: 103 452
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 2
Type:robo-tasks
Requires
- php: >=7.2
- ext-json: *
- consolidation/robo: ^2.0
- icecave/semver: ^3.0
- mindscreen/yarnlock: ^1.0
Requires (Dev)
- codeception/codeception: ^4.0
- codeception/module-asserts: ^1.1
- danielstjules/stringy: ^3.1
- mikey179/vfsstream: ^1.6
- squizlabs/php_codesniffer: ^3.5
- sweetchuck/codeception-module-robo-task-runner: ^0.7
- sweetchuck/git-hooks: ^0.0
- sweetchuck/robo-git: ^0.2
- sweetchuck/robo-phpcs: ^0.1
- symfony/error-handler: ^5.0
- symfony/finder: ^4.0
- webmozart/path-util: ^2.3
README
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, ]); } }