Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions contrib/npm.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
return which('npm');
});

set('bin/npx', function () {
return which('npx');
});

// Uses `npm ci` command. This command is similar to npm install,
// except it's meant to be used in automated environments such as
// test platforms, continuous integration, and deployment -- or
Expand Down
14 changes: 12 additions & 2 deletions docs/contrib/npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,21 @@ return which('npm');
```


### bin/npx
[Source](https://github.com/deployphp/deployer/blob/master/contrib/npm.php#L22)



```php title="Default value"
return which('npx');
```



## Tasks

### npm\:install {#npm-install}
[Source](https://github.com/deployphp/deployer/blob/master/contrib/npm.php#L28)
[Source](https://github.com/deployphp/deployer/blob/master/contrib/npm.php#L32)

Installs npm packages.

Expand All @@ -54,7 +64,7 @@ install of your dependencies.


### npm\:build {#npm-build}
[Source](https://github.com/deployphp/deployer/blob/master/contrib/npm.php#L33)
[Source](https://github.com/deployphp/deployer/blob/master/contrib/npm.php#L37)

Runs npm build.

Expand Down