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.

Default to watching dependencing in development?

See original GitHub issue

Assume a monorepo setup, where many addons are linked by default:

  • a person launches an app via ember s
  • but then decides they want to edit an addon (and rebuild it // rollup -c --watch)
  • when the v2 addon re-outputs its artifacts, the host app should detect that

Reasoning:

  • until we get to a dev-time environment as efficient as Vite, the initial startup time for apps can be costly (though, I’ve yet to experience what a large app is like with all v2 addons — I’ll know more on this in the coming months though)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
lifeartcommented, Feb 6, 2022

Ya, I don’t like idea where ember-cli is watching for every item in node_modules.

Some possible optimizations:

  • create watched tree only for specified deps
  • autodetect watched deps (if it’s symlink or package.json has “file:” reference to it)
  • if it’s not ember-addon, likely we don’t need to watch it by default

I would say that development in node_modules it’s likely 1% of usual day-to day actions for FE developers, and likely we should not spend resources of 99% devs to support 1% by default

2reactions
NullVoxPopulicommented, Feb 6, 2022

deps could have nested node_modules, and may be not a case

I’m proposing to ignore those. To only watch what is specified in an app’s `package.json#dependencies

  • only if :
    • they are within the same repo
    • or if they are linked (like your suggestion says 🥳 )

one dev-dep could lead us to bunch of side watched folders inside node_modules/{dep}/node_modules/{…}

If we only watch the shallow dependencies-of-the-app’s output folder (dist in most cases), then none of nested ‘node_modules’ would matter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Viewing and debugging dependencies
Every Gradle project provides the task dependencies to render the so-called dependency report from the command line. By default the dependency report renders ......
Read more >
Xcode 13.3 cycle in dependencies between targets
So using latest Xcode 13.3 on an Apple Silicon MacBook I get a compile error the 2nd time and every time there after...
Read more >
Developing with Spring Boot
1. Build Systems. 1.1. Dependency Management · 2. Structuring Your Code. 2.1. Using the “default” Package · 3. Configuration Classes. 3.1. · 4....
Read more >
Dependency injection in Android
Dependency injection (DI) is a technique widely used in programming and well suited to Android development. By following the principles of ...
Read more >
Viewing and updating Dependabot alerts
If GitHub discovers insecure dependencies in your project, you can view ... Java, Maven, pom.xml, ✓ test maps to development, else scope defaults...
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