by andreaf · 12y ago · 0 comments
var uid = require('matthewmueller/uid');
as in the home page example, what gets bound to the uid identifier?
The point is that a package manager does not only need to fetch dependencies, but also to specify relations between modules. This is why, for instance, Bower only does half the story (fetching) and it has to be coupled with a tool like Require.js to actually provide modules.
In the frontend world there just isn't such a standardization on paths, and this is what makes it difficult to locate a module even when the Github repo for it has been downloaded.
How does Duo solve this issue?
1) Download https://github.com/matthewmueller/uid from github
2) Find it's entry using https://github.com/duojs/main
3) Parse it's entry, and extract the dependencies
4) Recurse