Nx: Does the `--with-deps` does something when used on `nx serve`?

Created on 12 Aug 2020  路  2Comments  路  Source: nrwl/nx

Description

I've recently converted all my libs to be buildables.

It's helping for the build but I don't think I've noticed any difference when doing nx serve my-app --with-deps

We've got quite a huge number of libs and I'd expect some perf improvement by doing that but I don't feel like that the case. Maybe it's just me or the fact that part of our app is still in the main app.

Can anyone confirm that --with-deps should help when used with nx serve?

Thanks

core question / discussion

Most helpful comment

Currently, serve does not really use buildable library computation. It still pulls from source.

There's an example of how this _can_ be done here:

https://github.com/nrwl/nx-incremental/blob/master/tools/scripts/watch.js
https://github.com/nrwl/nx-incremental/blob/master/apps/ngapp/tsconfig.app.json

We're still working on how we can make this a generic solution.

All 2 comments

Currently, serve does not really use buildable library computation. It still pulls from source.

There's an example of how this _can_ be done here:

https://github.com/nrwl/nx-incremental/blob/master/tools/scripts/watch.js
https://github.com/nrwl/nx-incremental/blob/master/apps/ngapp/tsconfig.app.json

We're still working on how we can make this a generic solution.

@FrozenPandaz any progress? I hope we can run nx serve app --with-deps soon 馃檹

Was this page helpful?
0 / 5 - 0 ratings