NativeScript / NativeScript/nativescript-cli

[CLI] Manual watching the source changes

Open
#4,360 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

From @raffaeler on February 6, 2019 10:58

Is your feature request related to a problem? Please describe.
When tns run is started, it takes a while before deploying the application. For this reason I prefer to run in watch mode (tns run or tns debug).
Anyway, when you are doing more than a trivial change, it would be useful to manually trigger the compilation/deploy without stopping and re-running tns run or tns debug.

Describe the solution you'd like
When the terminal is in tns run or tns debug it can accept keyboard commands. It would be useful to add support for three commands while the terminal is watching:

  • 's' key: suspend watching
  • 'r' key: resume watching
  • 'd' key: deploy while in suspended mode

Describe alternatives you've considered
Stopping and restarting tns run or tns debug is way too slow.

Copied from original issue: NativeScript/NativeScript#6865

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CLI entry points for tns run and tns debug, focusing on their watch-mode lifecycle and terminal input handling. Define how suspended watching, resumed watching, and manual deployment should interact, then verify that the requested s, r, and d commands work without stopping the running command.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.