rna-code/bower-phpci-plugin

PHPCI plugin for Bower integration

1.0.3 2016-03-13 11:48 UTC

This package is not auto-updated.

Last update: 2024-04-24 21:57:56 UTC


README

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

Install the Plugin

  1. Navigate to your PHPCI root directory and run composer require rna-code/bower-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. Bower needs to be installed.

Plugin Options

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

PHPCI Config

    RNACode\PHPCI\Bower:
        command: install

example:

setup:
    ...
    RNACode\PHPCI\Bower:
        command: install
        flags:
            - "--allow-root"
            - "--save"
    ...

Output:

bower install --allow-root --save