yohang / dependency-tools
A simple Composer script to install NPM and/or Bower dependencies
Installs: 14 873
Dependents: 1
Suggesters: 0
Security: 0
Stars: 42
Watchers: 3
Forks: 3
Open Issues: 1
pkg:composer/yohang/dependency-tools
Requires
- php: >=5.3.0
- symfony/process: >=2.0,<3.0
README
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.