50 lines
724 B
Markdown
Raw Normal View History

2021-09-26 15:25:58 +02:00
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit contrib/npm.php -->
<!-- Then run bin/docgen -->
# npm
[Source](/contrib/npm.php)
2021-11-06 19:02:51 +01:00
2021-09-26 15:25:58 +02:00
## Installing
Add to your _deploy.php_
```php
require 'contrib/npm.php';
```
## Configuration
- `bin/npm` *(optional)*: set npm binary, automatically detected otherwise.
## Usage
```php
after('deploy:update_code', 'npm:install');
```
2021-10-18 18:29:14 +02:00
## Configuration
### bin/npm
[Source](https://github.com/deployphp/deployer/blob/master/contrib/npm.php#L24)
2021-09-26 15:25:58 +02:00
## Tasks
### npm:install
[Source](https://github.com/deployphp/deployer/blob/master/contrib/npm.php#L30)
2021-11-08 22:59:39 +01:00
Installs npm packages.
2021-09-26 15:25:58 +02:00
In there is a {{previous_release}}, node_modules will be copied from it before installing deps.