Skip to main content
Version: 7.x

npm

Source

Installing#

Add to your deploy.php

require 'contrib/npm.php';

Configuration#

  • bin/npm (optional): set npm binary, automatically detected otherwise.

Usage#

after('deploy:update_code', 'npm:install');

Tasks#

npm:install#

Source

Install npm packages.

In there is a {{previous_release}}, node_modules will be copied from it before installing deps.