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

Add script to run {N} in preview mode #102

Closed
dungahk opened this issue Mar 17, 2019 · 0 comments · Fixed by #105
Closed

Add script to run {N} in preview mode #102

dungahk opened this issue Mar 17, 2019 · 0 comments · Fixed by #105

Comments

@dungahk
Copy link
Contributor

dungahk commented Mar 17, 2019

Description

Sometimes I use the preview feature of {N} to quickly preview the app in my smartphone, especially when I don't have an emulator configure or when I don't have a cable to connect my smartphone to my laptop and the preview is a quick way to start things off.

How

Add an npm script to package.json:

{
  "start.nativescript.app.preview": "cd apps/nativescript-${appName} && tns preview --hmr"
}

Where in the code

https://github.com/nstudio/xplat/blob/master/src/app.nativescript/index.ts#L56

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

Successfully merging a pull request may close this issue.

1 participant