Allow building a Custom Preview App and using it with `tns preview`
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- javascript
Direção de pesquisa
Comece pelo fluxo tns preview --hmr e compare-o com tns deploy ios, concentrando-se em como as dependências de package.json, as bibliotecas nativas personalizadas, a entrega por código QR e a reutilização do app de preview poderiam se integrar. O trabalho estará concluído quando os usuários puderem criar um app de preview personalizado com suas dependências nativas, reutilizá-lo entre projetos e iniciá-lo sem fio, sem cabos.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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:
- Add native libraries to our own custom preview app
- Run
tns preview --hmr --custom-preview - 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.
- Linguagem predominante
- JavaScript
- Estrelas
- 1.1k
- Forks
- 204
- Merge médio
- 1d 9h
- PRs com merge (30d)
- 8
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NativeScript/nativescript-cli
-
in-progress
NativeScript/nativescript-cli#6140 · 2 comentários · 1 responsável ·
-
NativeScript/nativescript-cli#6090 · 1 responsável ·
-
in progress
NativeScript/nativescript-cli#6015 · 1 reação · 1 responsável ·
-
question
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
NativeScript/nativescript-cli#5992 · 5 comentários ·
-
feature-pending-triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
NativeScript/nativescript-cli#5975 ·
Todas as issues de NativeScript/nativescript-cli
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
avniproject/avni-client#2135 ·
-
automated broken-link
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
bevyengine/bevy-website#2595 ·