Why aren't dependencies explicit?
See original GitHub issueLooking around I noticed that many packages in the pex-gl organization do not appear to explicitly reference each other via the dependencies field in their package.json files.
I noticed this: https://github.com/pex-gl/pex/blob/master/lib/pkg/pex-packages-core.json
Which seems to make sure that if you use pex init your project gets all the right things installed, but I’m curious to understand why this approach is used over the more traditional dependencies field?
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Explicit Dependencies Principle
The Explicit Dependencies Principle states that methods and classes should explicitly require (typically through method parameters or constructor ...
Read more >cb372/sbt-explicit-dependencies
An sbt plugin to check that your libraryDependencies accurately reflects the libraries that your code depends on in order to compile. For example,...
Read more >How Branch-Coupled Dependencies Ruin Your Software ...
It's simple, has only a few constructor arguments, uses explicit dependencies to delegate operations to other classes, and has a single purpose: ...
Read more >Why aren't the Maven dependencies of my JAR being ...
I am under the impression I do not need to specify them explicitly in the pom.xml of my-deployable because they are already listed...
Read more >Understanding the npm dependency model - Alexis King
Since npm 3, things are a little bit less straightforward (specifically, peer dependencies are not automatically installed unless a dependent ...
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

Ok, first step is behind us
plask-wrap@1.0.0
These modules no longer need
-i plaskflagpex-sys v1.5.1updated in https://github.com/pex-gl/pex-sys/commit/e9b2407554a4f994d4ad27f5fae676e3e4250cffpex-context v1.3.0updated in https://github.com/pex-gl/pex-context/commit/f4b2eeae8f56fd60ba95112d8e63227c26a3912apex-io v1.2.0updated in https://github.com/pex-gl/pex-io/commit/6b36dbc4c8764f6a8c4e4519c9c58769acba94fcStill need to update https://github.com/pex-gl/pex-gui/issues/7
This is currently not possible as Context creation is platform specific and that functionality is within Window. Peer dependencies problem in pex has two versions.
Explicit
In
pex-sys/WindowImplBrowser:We should probably add
pex-contextto the package json ofpex-sysas we require it.Implicit
In
pex-gui/GUI:Where we don’t do node require for
pex-contextbut we assume that what we get asctxis certain version of thepex-context/Contextthat hascreateMeshmethod. I don’t know how to get rid of that kind of dependency.