Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
feat(app): Add jsPlumb dependency to app.
Browse files Browse the repository at this point in the history
The Bower version of jsPlumb does not include a `main`
field in it's bower.json file.
The solution was to set an `overrides` field in
this project's bower.json field to patch jsPlumb's.

See
http://stackoverflow.com/questions/21357719/configure-grunt-bower-install-path-for-a-component/23436755#23436755
  • Loading branch information
Glavin001 committed Aug 10, 2014
1 parent 1146286 commit ac2e6c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ <h3 class="text-muted">seasponge</h3>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/angular-touch/angular-touch.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/jsplumb/dist/js/dom.jsPlumb-1.6.2.js"></script>
<!-- endbower -->
<!-- endbuild -->

Expand Down
10 changes: 8 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "seasponge",
"version": "0.0.0",
"appPath": "app",
"dependencies": {
"angular": "1.2.16",
"json3": "~3.3.1",
Expand All @@ -11,11 +12,16 @@
"angular-sanitize": "1.2.16",
"angular-animate": "1.2.16",
"angular-touch": "1.2.16",
"angular-route": "1.2.16"
"angular-route": "1.2.16",
"jsplumb": "~1.6.2"
},
"devDependencies": {
"angular-mocks": "1.2.16",
"angular-scenario": "1.2.16"
},
"appPath": "app"
"overrides": {
"jsplumb": {
"main": "dist/js/dom.jsPlumb-1.6.2.js"
}
}
}
1 change: 1 addition & 0 deletions test/karma.conf.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = (config) ->
'bower_components/angular-route/angular-route.js'
'bower_components/angular-sanitize/angular-sanitize.js'
'bower_components/angular-touch/angular-touch.js'
'bower_components/jsplumb/dist/js/dom.jsPlumb-1.6.2.js'
'app/scripts/**/*.coffee'
'test/mock/**/*.coffee'
'test/spec/**/*.coffee'
Expand Down

1 comment on commit ac2e6c7

@Glavin001
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc #1

Please sign in to comment.