NativeScript / NativeScript/nx

How to make a shared Angular Web + NativeScript Angular Mobile app?

Aperta
#30 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
TypeScript
Stelle
68
Fork
15
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

What is the proper procedure to start a new nx workspace for a shared NativeScript Angular Mobile App and Angular Web App?

Right now I have a NativeScript 7 / Angular 11 shared mobile/web app that uses the .tns.ts, .tns.html, .web.ts, etc... method of code splitting, but it seems the new NativeScript 8 and @nativescript/webpack do not support that anymore. This is a substantial project and I want to upgrade to NS8 /Angular 12 so I guess I need to convert the project to work in an nx workspace using the libs folder for the shared Angular modules. But I want to make sure I set up the nx workspace properly first before taking on this massive undertaking.

So basically, can someone please outline the proper commands to start a shared mobile/web NativeScript 8 / Angular 12 project in an nx workspace?

I tried staring an Angular nx workspace project then adding NativeScript but the nx commands to run the mobile project would not work, I kept getting Unable to install dependencies.. It made a minimal nested package.json in the mobile project with, @nativescript/core, @nativescript/android, and @nativescript/ios and the rest of the dependencies in the root package.json which seems right but idk. Any help would greatly be appreciated. Thank you!!

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Iniziare riproducendo la configurazione del workspace Nx segnalata e l’errore “Unable to install dependencies” utilizzando le versioni descritte di NativeScript 8 e Angular 12. Documentare i comandi e la struttura dei pacchetti necessari per un workspace mobile/web condiviso, inclusi i file package.json nella radice e nei pacchetti annidati, e verificare che i comandi Nx documentati eseguano il progetto mobile.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
build-system, mobile, web-dev
Tipo di issue
Documentazione
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.