hammock/phpci-yarn-plugin

PHPCI plugin for yarn integration

v0.0.2 2018-02-26 11:46 UTC

This package is not auto-updated.

Last update: 2024-04-17 08:19:45 UTC


README

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 hammock/yarn-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. yarn needs to be installed.

Plugin Options

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

PHPCI Config

    Hammock\PHPCI\Yarn:
        command: install