-
-
Notifications
You must be signed in to change notification settings - Fork 197
Feature request: launch emulators from tns run #3009
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
Comments
My workflow is like yours, @tjvantoll. I don't want the CLI to auto-open multiple emulators, and just because I have AVD and Geny installed, I don't want to launch them both. I like the opt-in model proposed. |
FWIW, before the |
I have the same workflow, normally starting with iOS, then moving to Android. But if I could simply have |
Hey @jlooper ,
|
Interesting use cases. I hadn't considered this question in light of using connected devices. I agree with 1, 2, and 3. Is that a solid workflow in your opinion, @tjvantoll? |
Btw the |
So I think we have two different proposed options.
I’m cool with either—both get me the workflow I’m looking for. Votes? More ideas? @rosen-vladimirov I’m curious if either of these options will be easier to implement and maintain. |
I vote for 1. In the case of 2, omitting the flags with no connected devices would cause |
@ejsuncy I would not like it if A |
@Pip3r4o You're right, that would be annoying. I like the idea of |
Correct, and that’s the behavior of
Yes they are. Suggestions welcome 😄 |
@tjvantoll , the implementation of any of the solutions will require almost the same effort. The problem with
This can be extended by combining it with And of course, as long I'm still not sure what should be the behavior in case |
For sure. And it’s not just in the code. I’m not looking forward to explaining this workflow in the Getting Started Guides if we end up with something too crazy 😛 Back to the point. I think the situations you spell out in 1–3 are exactly how I’d expect this new option to work. Thanks for spelling that out in detail @rosen-vladimirov. I keep trying to think of better syntax for this, because API design is hard. |
I don't think |
My typical NativeScript workflow is to launch emulators for development using either
tns run ios
ortns run android
. Since version 3.1.3, the {N} CLI now supports runningtns run
to deploy to multiple devices, which is awesome... but there’s no way for that command to launch emulators liketns run ios
andtns run android
do.I need to manually start iOS simulators from Xcode, and Android AVDs from Android Studio, and then execute
tns run
to get the workflow I’m looking for. This isn’t horrible, but I’m wondering if we can make this common workflow a little less tedious.I don’t think
tns run
should open emulators by default, but maybe we could introduce some new flags.Thoughts on this? Other ideas for how
tns run
could launch emulators?The text was updated successfully, but these errors were encountered: