A simple Composer script to install NPM and/or Bower dependencies
PHP
Latest commit 9e0b85e Dec 20, 2013 @yohang Merge commit 'ec7fe'
Permalink
Failed to load latest commit information.
src/Yohang Merge commit 'ec7fe' Dec 20, 2013
LICENSE Initial commit Oct 25, 2012
README.md Initial commit Oct 25, 2012
composer.json Added timeout option Aug 5, 2013

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.

Usage

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

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

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