ferryjs / ferry

Ferry is (yet another) REST API framework.
3 stars 3 forks source link

Break components into separate modules #7

Open desmondmorris opened 9 years ago

desmondmorris commented 9 years ago

I think we may want to break the individual components into separate modules. This way when building user land extensions, we can extend the existing classes. In order to do this now, we would need to pull down the main library, which may prove expensive as this project matures.

joshuajabbour commented 9 years ago

Are you talking about the components in the ferry package? I'm not sure they need to be broken out. We'll definitely want to extend classes in userland, but requiring the ferry package can just be the way to do that.

I was trying to do just this last night (class extension), but was having troubles. I think it was babel-related however, as that adds some complexity to our module structure I haven't quite figured out yet.

desmondmorris commented 9 years ago

Yeah exactly. I guess I am just worried about requiring the full lib within the extensions. It may not be a problem though.