-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Make tns run
use livesync by default
#1366
Comments
Agree with @tjvantoll, can say I use Yes, that watched build, that LiveSync is high on the expectation list for new users. Provided the user's environment can handle it, put up some info in the docs and turn it on. (Side rant, xCode is the worst with its partial saves of your work as you are typing, triggering off broken process' down stream.) |
+1 makes sense, one less command to confuse people... |
As a work-around, livesync builds and deploys the project if needed. I.e. instead of Perhaps we can make this more visible in the documentation? |
@teobugslayer Ah ok, I didn’t know that. This section of the getting started guide would probably be the place to do that, but I’ve been holding off promoting livesync there because it still hides errors and stack traces. |
I think that LiveSync should be the default experience for |
@valentinstoychev With the livesync improvements coming in 2.1 and 2.2, can we consider making it the default experience as this issue suggests? |
Yup. I fully agree that would be the nicest thing to do from the developer experience. |
...IMO --watch by default as well, whats the use case for livesync with no watch specified? |
I support this only given that livesync works as expected. Otherwise we'd need a separate option in the We should also consider this from the VSCode extension perspective. @ivanbuhov @blagoev What do you think guys? |
Currently, the VSCode extension comes with |
I’ve spent some time over the holidays playing with a variety of frameworks, and one thing I’ve noticed is that livesync functionality is increasingly the default behavior that developers expect. React Native watches by default, and Angular 2’s setup does as well.
My suggestion is to have
tns run
also setup/runtns livesync
by default (and perhaps provide a--no-livesync
flag to turn it off or something like that). IMO this would significantly help the getting started experience. One complication is that we probably want #763 implemented first, so thattns run
continues to show console logs and stack traces.One alternative is that we could include a handful of npm scripts in the default project’s
package.json
. Something likenpm run ios|android
that runs the app and sets up a watcher by default. For example in Angular 2npm start
, starts a browser tab and an HTTP server, watches for changes to code, and deploys those changes automatically.The text was updated successfully, but these errors were encountered: