Hi,
I'm getting Angular via the default JSPM package which uses GitHub:
"angular": "github:angular/bower-...@1.5.0"
angular-jqcloud is published on NPM, so I added a dependency as such:
"angular-jqcloud": "npm:angular...@1.0.3"
But "angular-jqcloud" declares a dependency in its package.json:
...which seem to cause JSPM to try to get Angular from NPM (and failing), rather than resolving it from the Angular that's already coming from the GitHub registry.
What's the proper way to deal with this? Should I override the dependencies in my package.json like so?
"npm:angular...@1.0.3": {
"registry": "github",
"dependencies": {
"angular": "github:angular/bower-...@1.5.0"
}
}
That seem to work, but now I'm missing the "jqcloud2" dependency that was also listed in "angular-jqcloud2" package.json. Should I repeat it in my override? Does that means I'll have to maintain this override over time and make sure to keep it in sync with what the upstream package defines, like:
"npm:angular...@1.0.3": {
"registry": "github",
"dependencies": {
"angular": "github:angular/bower-...@1.5.0",
"jqcloud2": "npm:jqcl...@2.0.2"
}
}
That sounds like a lot of overhead, am I missing something?
Also, I need "jqcloud2" to be loaded first, so I assume I must also declare a "shim", making tje complete config:
"npm:angular...@1.0.3": {
"registry": "github",
"dependencies": {
"angular": "github:angular/bower-...@1.5.0",
"jqcloud2": "npm:jqcl...@2.0.2"
},
"shim": {
"angular-jqcloud": [
"jqcloud2"
]
}
}
Am I getting this correctly? That looks like a lot of manual work to repeat for every package, I just want to check I'm not missing anything.
Thanks,
Nico