Does the `--with-deps` does something when used on `nx serve`?
See original GitHub issueDescription
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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:11 (2 by maintainers)
Top Results From Across the Web
nrwl-nx/community - Gitter
Hi. I'm exploring Nx with Angular and trying to figure out how to generate a component library that: Can run Storybook, and; Can...
Read more >how to execute nx build before nx serve? - Stack Overflow
Run commands allows you to invoke any number of commands or shell scripts, in parallel or in order. You can block on certain...
Read more >Incremental Build Improvements, Angular 12, Distributed Task ...
Now running nx build app1 will also schedule and build nx build lib1 without passing --with-deps . Another example is serving an application...
Read more >Getting Started with Monorepo with Nx Nrwl - Rupesh Tiwari
Serving client app; MonoRepo Workspace Architecture; MonoRepo Workspace Dependency ... Here is the Nx npm package that you can use from npm.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
FYI:
This might not be true anymore. Based on some tests I made, the
serve
command would fail if one of my libraries wasn’t built, but will work if I manually build it.