-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add AMD config to AppManifest #160
Comments
I don't think we can limit the scope of proposed |
|
|
What if
|
The current downside is that the app wouldn’t be able to tell us which script should be used to load the app class. I suppose they could alias it after their appId, but it doesn’t sound great. I previously suggested that we could add a “main” property that would point to the AppClass. The other issue here is that many scripts also require a “shim” to work with AMD. We can support a property for that as well, or look for a more general kind of AMD config. There are certainly problems with that (e.g., “baseUrl”), so we’ll need to consider many possibilities. On April 7, 2014 at 8:31:08 PM, Brian Baker ([email protected]) wrote: What if scripts could be either an object (CommonConfig paths) or an array of strings?
|
Well, an app has to provide a script that defines a module named the same as its AppId, so the more I thought about the |
I think that instead of duplicating parts of CommonConfig inside of AppManifest, why not just put the whole thing in> {
apps: [],
inlineScripts: [],
scripts: [],
styles: [],
commonConfig: { // or name it simply config
baseUrl: //...
packages: //...
}
} And I also like @brianbaker's idea of |
In order to support dependency aliasing, we'll need some way for the app to specify it's AMD dependencies. I think a new property on the AppManifest could solve this nicely. For example:
Upon loading an app, we would pass the
dependencies
property into thepaths
property of the AMD config. This would help prevent script duplication and would allow for multiple versions of a library to exist simultaneously.I think there are a few outstanding questions here:
scripts
with this new object?The text was updated successfully, but these errors were encountered: