NativeScript / NativeScript/nativescript-cli

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

Abierto
#4,045 0 comentarios 10 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

feature preview
Lenguaje dominante
JavaScript
Estrellas
1.1k
Forks
204
Merge medio
1 d 9 h
PR fusionados (30 d)
8

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con el flujo de tns preview --hmr y compáralo con tns deploy ios, centrándote en cómo encajarían las dependencias de package.json, las bibliotecas nativas personalizadas, la entrega mediante código QR y la reutilización de la aplicación de preview. Se considera completado cuando los usuarios puedan crear una aplicación de preview personalizada con sus dependencias nativas, reutilizarla entre proyectos y lanzarla de forma inalámbrica sin cables.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
cli, mobile
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.