2017 © Pedro Peláez
 

library composer-javascript

Composer script handler for executing `npm install` and `bower install` automatically.

image

tbbc/composer-javascript

Composer script handler for executing `npm install` and `bower install` automatically.

  • Wednesday, May 28, 2014
  • by tbbc
  • Repository
  • 6 Watchers
  • 15 Stars
  • 15,133 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

The Big Brains Company - Composer Javascript

Composer script handler for executing npm install and bower install automatically after the composer install (or update) command., (*1)

Usage

Add this lines to your composer.json file:, (*2)

{
    "require": {
        "tbbc/composer-javascript": "~1.0"
    },
    "scripts": {
        "post-install-cmd": [
            "Tbbc\\ComposerJavascript\\ScriptHandler::npmInstall",
            "Tbbc\\ComposerJavascript\\ScriptHandler::bowerInstall"
        ],
        "post-update-cmd": [
            "Tbbc\\ComposerJavascript\\ScriptHandler::npmInstall",
            "Tbbc\\ComposerJavascript\\ScriptHandler::bowerInstall"
        ]
    }
}

You can freely add both or just one of the npmInstall or bowerInstall scripts., (*3)

Options

For users that work with a Samba sharing or like, you can pass an option for npm install to prevent using symlinks for binaries., (*4)

Just add the following to your composer.json file:, (*5)

"extra": {
    "tbbc-composer-javascript": {
        "npm-bin-links": false
    }
}

npm-bin-links default value is true., (*6)

The Big Brains Company - Logo, (*7)

The Versions

28/05 2014

dev-master

9999999-dev https://github.com/TheBigBrainsCompany/composer-javascript

Composer script handler for executing `npm install` and `bower install` automatically.

  Sources   Download

MIT

The Requires

 

composer javascript bower npm