Issue
This should be straightforward, but I'm missing something.
I am using the greensock draggable animation library, grunt, bower, npm, etc.
bower.json
dependencies:
grunt (in CoffeeScript), bower_concat main files: because the draggable component isn't listed in the tween file in greensock's bower.json:
my directive, in CoffeeScript:
My jasmine test is saying it can't find the reference to Draggable.js in my compiled JS.
ReferenceError: Can't find variable: Draggable in file:///Users/ari.picker/apps/LightHouse/lighthouse/lighthouse-ui/.grunt/grunt-contrib-jasmine/temp/compiled-coffee/src/lessons/panes-directives/greensockDraggable.js (line 9)
Solution
Try changing "greensock"
to "gsap"
in your grunt file.
Including TweenMax with the plugins/utils seems to work.
mainFiles: {
"greensock": ["src/uncompressed/TweenMax.js", "src/uncompressed/utils/Draggable.js"]
}
Answered By - Blake Bowen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.