question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
FrozenPandazcommented, Aug 21, 2020

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.

1reaction
ianldgscommented, May 28, 2021

FYI:

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

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

run-many - CLI command - Nx
Run target for multiple listed projects.
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found