2017 © Pedro Peláez
 

composer-plugin composer-bower-bridge

Bower integration for Composer packages.

image

peertopark/composer-bower-bridge

Bower integration for Composer packages.

  • Friday, January 27, 2017
  • by blackleg
  • Repository
  • 2 Watchers
  • 0 Stars
  • 580 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Composer Bower bridge

Bower integration for Composer packages. Based on the on (and shamelessly stolen from) eloquent/composer-npm-bridge ![Current version image][version-image] Current build status image ![Current coverage status image][coverage-image], (*1)

Installation

Requirements

  • The npm executable must be available in PATH.

Usage

To utilize the Composer NPM bridge, simply add eloquent/composer-npm-bridge to the require section of the project's Composer configuration:, (*2)

composer require eloquent/composer-npm-bridge:^3

NPM dependencies are specified via a package.json configuration file in the root directory of the Composer package. Source control should be configured to ignore NPM's node_modules directory, similar to Composer's vendor directory., (*3)

How does it work?

The Composer NPM bridge is a Composer plugin that automatically installs and updates NPM packages whenever the corresponding Composer command is executed. To detect compatible packages, the bridge inspects Composer package configuration information to find packages that directly require the eloquent/composer-npm-bridge Composer package itself., (*4)

In addition to normal operation, composer install will install NPM dependencies for all Composer packages using the bridge. This includes the root package, as well as Composer dependencies. Similarly, composer update will install NPM dependencies for all Composer dependencies using the bridge. It will also update and shrinkwrap the NPM dependencies for the root project., (*5)

NPM dependencies will be installed exactly as if npm install were run from the root directory of the package. This applies even if the package is installed as a dependency., (*6)

Caveats

Because NPM dependencies are installed underneath the root directory of the Composer package, Composer may complain about working copy changes when the package is installed as a dependency. Source control should be configured to ignore the node_modules directory in order to avoid this., (*7)

The Versions

27/01 2017

dev-master

9999999-dev https://github.com/peertopark/composer-bower-bridge

Bower integration for Composer packages.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin composer bower package integration bridge composer-plugin

26/01 2017

dev-devel

dev-devel https://github.com/peertopark/composer-bower-bridge

Bower integration for Composer packages.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin composer bower package integration bridge composer-plugin

26/01 2017

1.0.0

1.0.0.0 https://github.com/peertopark/composer-bower-bridge

Bower integration for Composer packages.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin composer bower package integration bridge composer-plugin