2017 © Pedro Peláez
 

library dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

image

nekland/dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

  • Monday, March 6, 2017
  • by Nek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 342 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Install NPM & Bower dependencies with Composer

This simple tools allows you to run npm install and/or bower install each time you run composer install / update., (*1)

Note: This is Windows-compatible !, (*2)

Usage

Basic usage

Add this lines to your composer.json file (only works with root file) :, (*3)


{ "require": { "yohang/dependency-tools": "1.1.*" }, "scripts": { "post-install-cmd": [ "Yohang\\DependencyTools::installDeps" ], "post-update-cmd": [ "Yohang\\DependencyTools::updateDeps" ] }, "extra": { "dependency-tools": { "npm": true, "bower": true } } }

And that's all, your NPM and Bower dependencies will be installed just after your Composer dependencies., (*4)

Advanced usage

If you don't have a global install of bower, you would maybe like to specify a path to bower. If you uses npm to install bower directly in your project here is an example of how you can configure composer:, (*5)

{
    "extra": {
        "dependency-tools": {
            "npm": true,
            "bower": {
                "path": "node_modules/.bin/bower"
            }
        }
    }
}

Known issue

Bower executable is searching for node, if you installed nodejs on ubuntu, the executable is nodejs, an easy fix is to execute the following command to make a shortcut named node to nodejs., (*6)

sudo ln -vs /usr/bin/nodejs /usr/bin/node

The Versions

06/03 2017

dev-master

9999999-dev https://github.com/nekland/dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

  Sources   Download

MIT

The Requires

 

The Development Requires

composer bower dependency npm

12/06 2014

1.1.2

1.1.2.0 https://github.com/nekland/dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

  Sources   Download

MIT

The Requires

 

The Development Requires

composer bower dependency npm

20/12 2013

1.1.1

1.1.1.0 https://github.com/yohang/dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

  Sources   Download

MIT

The Requires

 

composer bower dependency npm

05/08 2013

1.1.0

1.1.0.0 https://github.com/yohang/dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

  Sources   Download

MIT

The Requires

 

composer bower dependency npm

09/07 2013

1.0.2

1.0.2.0 https://github.com/yohang/dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

  Sources   Download

MIT

The Requires

 

composer bower dependency npm

27/10 2012

1.0.1

1.0.1.0 https://github.com/yohang/dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

  Sources   Download

MIT

The Requires

 

composer bower dependency npm

25/10 2012

1.0.0

1.0.0.0 https://github.com/yohang/dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

  Sources   Download

MIT

The Requires

 

composer bower dependency npm