NativeScript / NativeScript/nx

Building time is increased after adding NativeScript/nx

Offen
#11 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
TypeScript
Sterne
68
Forks
15
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi, I'm going to use this plugin, it's really very nice, easy and without any extra things.

I have added NativeScript/nx plugin, then added NativeScript application to my existing nx workspace. After that I detected that the build/run process takes extremely long time. First time when I run the app, the build process took not so long, but next times it's extremely slow.

Flow:

  1. Run: npx nx run mobile-app-nativescript:ios
  2. delay: 2m 40sec (from 2 to 3 mins)
  3. After this crazy delay appears: > nx run app-nativescript:ios
  4. Then select a device and everything goes fine and with usual speed.

The problematic step marked bold.

I've to tried create a new workspace and it has the same behaviour. The first build with no delay, but second and all next with long delay. Only one difference, in the new empty workspace, the delay not so long, it's approx 30 sec.

And one more thing. In my existing workspace command npx nx g @nativescript/nx:app <app-name> always works like with flag --groupByName. So, with float or without, I can't create an app with the name nativescript-app, it always creates app-nativescript. BUT with created a new workspace it works correct. Could be it's related to xplat plugin. Currently I have a nativescript app in the workspace under xplat, but I'm going to migrate to NativeScript/nx.

Waiting for your fix :)
Thanks!

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Führe npx nx run mobile-app-nativescript:ios wiederholt sowohl in den bestehenden als auch in leeren Workspaces aus und vergleiche anschließend die Verzögerung, bevor das NativeScript-Ziel ausgeführt wird. Führe außerdem npx nx g @nativescript/nx:app <app-name> mit und ohne Gruppierung aus, um die generierten Namen zu vergleichen. Als abgeschlossen gilt die Aufgabe, wenn wiederholte Builds nicht mehr die lange Verzögerung verursachen und die Benennung der Apps konsistent funktioniert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
build-system, mobile-dev
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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