Yarn Recipe
require 'contrib/yarn.php';
Configuration
- bin/yarn (optional): set Yarn binary, automatically detected otherwise.
Usage
after('deploy:update_code', 'yarn:install');
after('yarn:install', 'yarn:build');
Configuration
bin/yarn
Configuration
- bin/yarn (optional): set Yarn binary, automatically detected otherwise.
Usage
after('deploy:update_code', 'yarn:install');
after('yarn:install', 'yarn:build');
Default value
return which('yarn');
Tasks
yarn:install
Installs Yarn packages.
In there is a {{previous_release}}, node_modules will be copied from it before installing deps with yarn.
yarn:build
Runs Yarn build.