Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to update only npm packages? #19

Open
robertfausk opened this issue Nov 14, 2015 · 1 comment
Open

Is it possible to update only npm packages? #19

robertfausk opened this issue Nov 14, 2015 · 1 comment

Comments

@robertfausk
Copy link

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

@robertfausk robertfausk changed the title Is it possible to only update npm packages? Is it possible to update only npm packages? Nov 14, 2015
@nsams
Copy link
Member

nsams commented Nov 15, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants