/phpci-npm-cache

A plugin for PHPCI to download and install npm packages required by your application.

Primary LanguagePHPMIT LicenseMIT

Npm plugin for PHPCI

A plugin for PHPCI to download and install npm packages required by your application.

Install the Plugin

  1. Navigate to your PHPCI root directory and run composer require rna-code/npm-cache-phpci-plugin
  2. If you are using the PHPCI daemon, restart it
  3. Update your phpci.yml in the project you want to deploy with

Prerequisites

  1. npm-cache needs to be installed.

Plugin Options

  • command [string, require] - Command name. See docs
  • directory [string, optional] - Relative path to run npm-cache in.
  • flags [list, optional] - Command flags

PHPCI Config

    RNACode\PHPCI\NpmCache:
        command: install