2022-10-04 19:26:14 +00:00

48 lines
768 B
Markdown

<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit contrib/yarn.php -->
<!-- Then run bin/docgen -->
# Yarn Recipe
```php
require 'contrib/yarn.php';
```
[Source](/contrib/yarn.php)
## Configuration
- **bin/yarn** *(optional)*: set Yarn binary, automatically detected otherwise.
## Usage
```php
after('deploy:update_code', 'yarn:install');
```
## Configuration
### bin/yarn
[Source](https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L15)
```php title="Default value"
return which('yarn');
```
## Tasks
### yarn:install
[Source](https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L21)
Installs Yarn packages.
In there is a {{previous_release}}, node_modules will be copied from it before installing deps with yarn.