mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 08:45:04 +01:00
993 B
993 B
npm
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');
or if you want use npm ci
command
after('deploy:update_code', 'npm:ci');
- Tasks
npm:install
— Install npm packagesnpm:ci
— Install npm packages with a clean slate
Tasks
npm:install
In there is a {{previous_release}}, node_modules will be copied from it before installing deps.