ringo/ringojs — Issue #156: Add helper functions to ease loading of JARs for package authors
Author: earl
Created: 2011-11-07 18:37:27+00:00
State: open

Currently, it is less than obvious for package authors how they should package and handle required JAR files.

Our recommended approach currently boils down to using one `addToClassPath(module.resolve(...))` for each library. This is not only also is not that obvious to figure out, it's also cumbersome if you want to load many JARs.

I therefore suggest some helper functions for package-relative loading of a single JAR as well as a directory of JARs. This should be bundled with core Ringo. A good place to put those functions would probably be a `ringo/package[s]` module.