componentjs / component

frontend package manager and build tool for modular web applications
https://github.com/componentjs/guide
MIT License
4.55k stars 304 forks source link

require components from node #500

Closed jonathanong closed 10 years ago

jonathanong commented 10 years ago

i was thinking of creating a component.require() that allows you to require components from components/ instead of node_modules. would you guys be down for that? only issue i can think of right now is that it won't work across npm links.

i.e. var emitter = component.require('emitter')

juliangruber commented 10 years ago

would also not work with npm shrinkwrap and probably other features, so it could be weird

codeactual commented 10 years ago

I'd really appreciate this enhancement. Please let me know if I can help test.

Re: link and shrinkwrap, I'd personally be okay with those caveats.

tj commented 10 years ago

-1 from me, especially since browser stuff will be quite different from node in the near future, probably not worth going down the road of mixing the two, especially before we have something nice and robust for the browser

timaschew commented 10 years ago

kind of related: https://github.com/component/component/issues/60

jonathanong commented 10 years ago

Closing because none of this shit should be necessary with es6 modules