Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building time is increased after adding NativeScript/nx #11

Open
SergioZhydecky opened this issue Apr 8, 2021 · 1 comment
Open

Building time is increased after adding NativeScript/nx #11

SergioZhydecky opened this issue Apr 8, 2021 · 1 comment

Comments

@SergioZhydecky
Copy link

SergioZhydecky commented Apr 8, 2021

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!

@NathanWalker
Copy link
Contributor

NathanWalker commented Apr 18, 2021

What version of @nrwl/workspace is in your workspace package.json devDependencies?

Nx 12 was recently released and you may try nx migrate latest to update to it.

groupByName is persisted in package.json under the nativescriptNx key (or xplat key if using xplat) and does affect as defaults commands used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants