Open robertfausk opened 8 years ago
Currently this is not possible - but definitely a missing feature.
As adding custom composer commands thru a plugin is not possible I thought about adding an vendor/bin/extra-assets binary for such commands.
What has to be kept in mind is that npm packages are per-composer package (or root).
Possible usage:
./vendor/bin/extra-assets npm-update example/composerpackage example-npm-package
./vendor/bin/extra-assets npm-update root example-npm-package
(or maybe the package (root) should not be needed in that case)
And the same should also be possible for bower packages:
./vendor/bin/extra-assets bower-update example-bower-package
Is there an equivalent to "composer.phar update my/package" for npm packages? For example: execute "npm update zombie" through composer.phar.