NativeScript / NativeScript/nativescript-cli

[CLI] Manual watching the source changes

オープン
#4,360 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

tns runtns debug の CLI エントリポイントから始め、watch モードのライフサイクルとターミナル入力の処理に焦点を当てます。一時停止された watch、再開された watch、手動デプロイがどのように連携すべきかを定義し、要求された srd コマンドが実行中のコマンドを停止せずに動作することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
cli
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。