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');

Configuration

bin/npm

Source

Tasks

npm:install

Source

Installs npm packages.

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



Support Deployer โค๏ธ

Hello, my name is Anton Medvedev. I'm the creator of the Deployer. I maintain this open source project in my spare time. Supporters on GitHub give me extra motivation to work on the project.

Consider supporting Deployer via GitHub Sponsors.