Reputation: 28086
To include ngDraggable into a project using systemJs and jspm, we need to add an override in package.json as below:
"overrides": {
"github:fatlinesofcode/[email protected]": {
"dependencies": {
"angular": "jspm:[email protected]"
},
"shim": {
"ngDraggable": [
"angular"
]
}
}
}
It's twice that we are mentioning that ngDraggable has a dependency on angular.. moreover the config.js file created by jspm also mentions this
"github:fatlinesofcode/[email protected]": {
"angular": "github:angular/[email protected]"
},
Why do systemJs and jspm need this mentioned in so many different places ?
Upvotes: 0
Views: 49
Reputation: 1050
It's not twice since dependencies and shim.deps do different stuff.
The shim deps actually modifies the ngDraggable file and adds a "deps angular" statement. This allows you to specify each file dependency separately.
Upvotes: 0