koala-framework / composer-extra-assets

Composer Plugin for installing Assets using native npm/bower
BSD 2-Clause "Simplified" License
42 stars 11 forks source link

Is it possible to update only npm packages? #19

Open robertfausk opened 8 years ago

robertfausk commented 8 years ago

Is there an equivalent to "composer.phar update my/package" for npm packages? For example: execute "npm update zombie" through composer.phar.

nsams commented 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