scriptsdev for Composer ![Build status](https://camo.githubusercontent.com/e91949cfaa2b0f6ba6e5b7752415949eee2914ae98f69fb5df3a87c38c665b0d/68747470733a2f2f7472617669732d63692e6f72672f6e65726f6e6d6f6f6e2f736372697074736465762e7376673f6272616e63683d6d6173746572)
It's like require-dev, but for scripts
Just run composer require neronmoon/scriptsdev --dev
After installing you able to add extra.scripts-dev directive in your composer.json
...
"extra": {
"scripts-dev": {
"post-install-cmd": [
"npm install --dev"
],
"post-update-cmd": "php ./someCoolCommand.php"
},
}
...
...
"scripts-dev": {
"post-install-cmd": [
"npm install --dev"
],
"post-update-cmd": "php ./someCoolCommand.php"
}
...