scriptsdev for Composer 
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"
}
...