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

Offen
#4,045 0 Kommentare 10 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
javascript
Bereich
cli, mobile

Rechercherichtung

Beginne mit dem tns preview --hmr-Ablauf und vergleiche ihn mit tns deploy ios. Konzentriere dich dabei darauf, wie Abhängigkeiten in package.json, benutzerdefinierte native Bibliotheken, die Bereitstellung per QR-Code und die Wiederverwendung der Preview-App zusammenpassen würden. Als abgeschlossen gilt die Aufgabe, wenn Benutzer eine benutzerdefinierte Preview-App mit ihren nativen Abhängigkeiten erstellen, sie projektübergreifend wiederverwenden und sie drahtlos ohne Kabel starten können.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

feature preview

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.

Vorherrschende Sprache
JavaScript
Sterne
1.1k
Forks
204
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
8

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus NativeScript/nativescript-cli

Alle Issues in NativeScript/nativescript-cli

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.