NativeScript / NativeScript/nativescript-cli
Open Chrome when using Chrome DevTools for debugging
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
Currently tns debug android and tns debug ios --chrome prepare the project, run it on specified device and prints a URL which should be opened in Chrome browser.
Instead the commands should open Chrome directly and load a specified URL.
The current implementation prints the URL as it is unable to open it in Chrome. However, the changes applied in this PR allow us to generate a URL to https://chrome-devtools-frontend.appspot.com/. This URL can be safely opened in Chrome directly from CLI.
Things to consider during implementation:
- For testability, we should have an easy way to print the URL and do not open Chrome. This will be useful in CI.
- Visual Studio Code Extension does not need to open Chrome, so ensure
--no-clientoption is respected. - Chrome executable has different names on each OS. Also the
Canaryrelease has another name. Ensure the users have an easy way to set the name, specific to their system. - During debug operation, CLI LiveSyncs changes on device. This may produce different URL (the port may change), so ensure we open the URL again. In case the port is not changed, just inform the user to reconnect DevTools in the already opened tab.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず tns debug android と tns debug ios --chrome のエントリポイントを追跡し、次に DevTools URL がどのように生成されるかについて PR 3071 を確認します。Chrome で URL が開かれ、Chrome を起動せずに CI から URL を出力でき、--no-client が引き続き尊重され、実行可能ファイル名を設定でき、LiveSync URL の変更が処理されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, ios, javascript
- 領域
- cli, devtools, mobile-dev
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100