NativeScript / NativeScript/nx
Building time is increased after adding NativeScript/nx
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 68
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
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:
- Run: npx nx run mobile-app-nativescript:ios
- delay: 2m 40sec (from 2 to 3 mins)
- After this crazy delay appears: > nx run app-nativescript:ios
- 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!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce npx nx run mobile-app-nativescript:ios repeatedly in both the existing and empty workspaces, then compare the delay before the NativeScript target runs. Also reproduce npx nx g @nativescript/nx:app <app-name> with and without grouping to compare generated names. Done means repeated builds no longer incur the long delay and app naming behaves consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100