Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Latest commit

 

History

History
35 lines (23 loc) · 551 Bytes

npm.md

File metadata and controls

35 lines (23 loc) · 551 Bytes

NPM recipe

Installing

Install with composer

composer require deployer/recipes --dev

Add to your deploy.php

require 'recipe/npm.php';

Configuration

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

Tasks

  • npm:install – install npm packages
  • npm:ci – install npm packages with a new and "clean" node_modules directory

Usage

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

or if you want use npm ci command

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