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

Consider structure that makes it easier to mount sub-ezel projects #30

Open
craigspaeth opened this issue Jul 15, 2014 · 0 comments
Open

Comments

@craigspaeth
Copy link
Contributor

See: https://twitter.com/craigspaeth/status/489061988257910784

Currently it's difficult b/c we override Backbone's sync at the larger project level, then expect models/collections to use that one backbone module. However, sub-apps under node_modules can have their own dependencies and can use their own version of Backbone without a modified sync. In this case we want a sane approach to have both apps use a modified sync. This kind of isolation/vs. shared setup conundrum can also occur in the need to share config/sharify data.

Options could include:

  • Pass in Backbone/config/sharify in a sort-of dependency injection manner to sub-apps. e.g. app.use(require('ezel-sub-app')(Backbone, config, sharify));
  • Sub-apps require backwards into the main project e.g. Backbone = require('../../node_modules/backbone')
  • Some kind of mount helper function that can modify a sub-app based on the project setup.

None of these seem too appealing though.

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