mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
49 lines
754 B
Markdown
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.
|
|
|
|
|