Anton Medvedev e80876d90d Update docs
2022-07-26 09:18:44 +02:00

49 lines
754 B
Markdown

<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit contrib/yarn.php -->
<!-- Then run bin/docgen -->
# Yarn Recipe
[Source](/contrib/yarn.php)
## Installing
Add to your _deploy.php_
```php
require '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#L23)
## Tasks
### yarn:install
[Source](https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L29)
Installs Yarn packages.
In there is a {{previous_release}}, node_modules will be copied from it before installing deps with yarn.