NativeScript / NativeScript/nativescript-cli

Allow building a Custom Preview App and using it with `tns preview`

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

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

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

説明

Is your feature request related to a problem? Please describe.

NativeScript Playground is an amazing developer experience for some really quick tests. Sometimes I test something in the Playgrounds just because it's a great, fast and reliable sandbox. There's not always the intention to share the Playground.

From time to time I want to try something in a Playground that is not possible. That's usually because some native library is missing. I understand the reason for that. Anyways this feature request is all about a solution to this problem. A solution that allows fast, reliable testing over the air. No cables required. A solution however that is not as easy to share.

See: https://www.nativescript.org/blog/join-the-nativescript-5.0-launch-webinar#comment-4151225217

Describe the solution you'd like

Please consider adding a --custom-preview CLI param so we can:

  1. Add native libraries to our own custom preview app
  2. Run tns preview --hmr --custom-preview
  3. Scan the QR code with a Phone and run the app

This would give us a very fast, flexible dev experience. No cables needed.

Maybe something like tns deploy ios --custom-preview could build and deploy a custom preview app with the dependencies of our package.json file.

One thing that is really important to consider when reviewing this request:

A user would be able to build one custom preview app with a whole lot of plugins and reuse that for many different codebases to quickly fiddle around. The idea is not to run tns deploy ios --custom-preview on a daily basis. This is for situations where you might want to fiddle around with a NativeScript next version or something along those lines.

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

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

はじめの一歩

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

調査の方向性

tns preview --hmr のフローから始め、tns deploy ios と比較しながら、package.json の依存関係、カスタムネイティブライブラリ、QR コードによる配信、preview アプリの再利用をどのように組み合わせられるかに焦点を当てます。ユーザーがネイティブ依存関係を含むカスタム preview アプリをビルドし、それを複数のプロジェクトで再利用して、ケーブルなしで無線経由で起動できれば完了です。

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

評価

技術スタック
javascript
領域
cli, mobile
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

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

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