ability to alias dependencies in component.json #141
Comments
What exactly do you propose? |
Option 1. You could optionally supply an object instead of a string to a dependency: {
"dependencies": {
"juliangruber/events": {version: "*", alias: "foo-events"}
"component/inherit": "*"
}
} In this example, Option 2. Explicitly list aliases. {
"dependencies": {
"juliangruber/events": {version: "*", alias: "foo-events"}
"component/inherit": "*"
},
"dependencyAliases": {
"foo-events": "juliangruber/events"
}
} In this example, |
Something's wrong here. |
Oops. Edited. |
-1 from me, I still want to pretend node doesn't exist. We've also been annoyed by |
component already solves 95% of the problem of creating components that work both in node.js and component. Can't we gently push it the rest of the way? |
it doesn't have anything to do with node, npm's namespacing issue is its own deal, we need to keep things focused |
This would save you from having to use if statements to check for the window object and save people from making repositories like https://github.com/juliangruber/events which simply wraps the component/events component and names it identically to the node one.
For example this would solve component/inherit#2
The text was updated successfully, but these errors were encountered: