-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add npm-recursive-test
command
#5
base: master
Are you sure you want to change the base?
Conversation
This command complements the already existing `npm-recursive-install` command. The implementation could be made a lot more DRY, but this is enough to test whether it might be suitable for inclusion upstream.
This looks like a pretty reasonable change to me. What's the purpose of the |
Hi @emgeee, apologies for the slow response. The What are your thoughts? |
Ya know what, I just realized you snuck in a new feature in the form of being able to run Given that, I definitely think things can be DRY'er, specifically
This would make this script a lot more extensible and allow for someone to easily extent the module to, for example, recursively run |
Nice, I like the sound of all of that, and I was already wondering about creating a Yarn version, so it all fits together nicely. I wonder though if the ideal thing would be to detect if we're being run by npm or yarn (assuming that's even possible) and then do the same for the sub-packages, rather than creating a new version of this library for Yarn? My thinking here is that it's not really the library author's job to say whether the end-developer should use npm or yarn to install with? |
At this point, I'd prefer not to auto detect npm vs yarn since, at least in my workflow, I tend to use both (though it should be possible by checking for the presence of a |
Ah, so I was thinking of detecting whether the user has just typed If you're open to the idea I can take a look on Monday, and see if it's do-able or not? |
I'm not quite sure what you mean by detecting what the user just typed but I think the simple solution would just be to add a |
I'd like to see this support
|
This command complements the already existing
npm-recursive-install
command. The implementation could be made a lot more DRY, but this is enough to test whether it might be suitable for inclusion upstream.