Title: Start LiveSync watcher earlier during run · Issue #3404 · NativeScript/nativescript-cli · GitHub
Open Graph Title: Start LiveSync watcher earlier during run · Issue #3404 · NativeScript/nativescript-cli
X Title: Start LiveSync watcher earlier during run · Issue #3404 · NativeScript/nativescript-cli
Description: Currently whenever tns run
Open Graph Description: Currently whenever tns run
X Description: Currently whenever tns run <platform> is executed the logic in CLI is as follows: Prepare the project if needed (this process includes moving files around in platforms, LiveSyncing files if n...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/3404
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Start LiveSync watcher earlier during run","articleBody":"Currently whenever `tns run \u003cplatform>` is executed the logic in CLI is as follows:\r\n1. Prepare the project if needed (this process includes moving files around in `platforms`, LiveSyncing files if needed, building and installing if required)\r\n1. Start watching the project files for changes. Whenever changes occur CLI triggers the whole logic in 1.\r\n\r\nThis logic leads to some issues:\r\n* Some plugins have `before-prepare` hooks which trigger some compilation for example and `before-watch` hook, which starts some other watch process and the project files end up undergoing the same process twice\r\n\r\nThe proposed solution to this is to invert the logic and start the watcher initially and then force the first preparation. This will eliminate the aforementioned issues in all plugins (`nativescript-dev-typescript`, `nativescript-dev-sass`, `nativescript-dev-webpack`, etc.). There is also an additional benefit to be gained with this approach - during the very first build of the project the user may make changes to the project files, which will be taken into account and LiveSynced - this functionality is currently missing.","author":{"url":"https://github.com/Mitko-Kerezov","@type":"Person","name":"Mitko-Kerezov"},"datePublished":"2018-02-28T11:25:27Z","url":"https://github.com/NativeScript/nativescript-cli/issues/3404"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:857fd2af-8a5e-f85f-0dc4-b3ca2d9c543b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E090:1EC9BC:17A0B48:1E1C7A1:6B013F7E |
| html-safe-nonce | 6c48947f4929ba3428466b56583d86476ce2e4e11e94ae788fbe13a71a2298be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDkwOjFFQzlCQzoxN0EwQjQ4OjFFMUM3QTE6NkIwMTNGN0UiLCJ2aXNpdG9yX2lkIjoiMTYzNDU2NjQ4MzM2OTYwNzAzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e5470f0131bcf8482d6628bf899cc6398bde4837b4449c96d65dd36be48e98a7 |
| hovercard-subject-tag | issue:300987976 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/3404/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d3b46ac473e95c4de40e8d240bd8e1bf2181fec416df7ff8cc0009124e024a7/NativeScript/nativescript-cli/issues/3404 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d3b46ac473e95c4de40e8d240bd8e1bf2181fec416df7ff8cc0009124e024a7/NativeScript/nativescript-cli/issues/3404 |
| og:image:alt | Currently whenever tns run |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Mitko-Kerezov |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width