-
Notifications
You must be signed in to change notification settings - Fork 289
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
pluginDependencies in plugin bower files should work #1858
Comments
Related: #1179 (comment). |
I'm aware this could be a temporary/partial solution, but it feels better than leaving the hack in place. I think it could be a while before any changes are made which would make this completely irrelevant. And in the meantime this would fix pluginDependencies for everyone. I'm not proposing a big change, we are just testing the changes at Can but we have replaced the hack with some code that looks into the bower.json files of included plugins and adds their pluginDependencies to the list of included plugins. If anyone has any thoughts please let me know. Thanks |
Agree that it’s not ideal. We haven’t done anything on this before as we’ve never really had a solid solution for framework dependencies. @oliverfoster is looking at this in the near future, so may have recommendations? |
v4 of Adapt Framework should provide a solid solution for this, by using bower properly. then we can revert from pluginDependencies to dependencies in the bower.json |
Affected Area
It should be possible to add a
pluginDependencies
object to the bower.json of any plugin and have the plugins listed in it pulled into the build. Eg. The hotgraphic component should be able to ensure the narrative component gets included by listing it in its pluginDependencies.Requested Feature
At the moment the pluginDependencies are ignored by the authoring tool. Instead in the outputmanager.js file there is a hardcoded hack which adds the narrative component if the hotgraphic is present, and adds the mcq if the gmcq component is present.
Use Case
New plugins with dependencies can be developed.
Additional Information
The hack was added in these PRs:
#1033
#1038
The text was updated successfully, but these errors were encountered: