Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better library path management #25

Open
nrabinowitz opened this issue May 7, 2012 · 0 comments
Open

Better library path management #25

nrabinowitz opened this issue May 7, 2012 · 0 comments

Comments

@nrabinowitz
Copy link
Owner

There are a couple of options here, depending on whether we want to manage the paths in the build process as well (which would be nice).

  • Breaking out the library path declarations into a separate module, a la registry.js, would allow me to get the paths with a Node script for the build process, the same way I do with the registry.
  • Whether I take that approach or not, I need to offer a way for users (and module writers) to add a new library on the fly, pre-init - most likely with a registerLibrary() function.
  • One more build note: In the build, I should probably ensure that common libraries - anything that could be used by multiple modules - don't get compiled into the module code. Probably this is as simple as taking the list of registered libraries and passing empty: for each path if/when we're building modules with r.js.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant