How can i add velocity plugin to ScrollMagic with npm?
<p>I need to add scrollMagic with velocity plugin to my npm library.</p>

<p>package.json</p>

<pre><code>{
  "name": "library",
  "version": "1.0.10",
  "description": "blabla",
  "main": "index.js",
  "dependencies": {
    "shortid": "2.x",
    "jquery": "2.x",
    "scrollmagic": "2.x"
  }
}
</code></pre>

<p>Is there a way to do that?</p>

<p>Simply adding ScrollMagic does not include plugins.</p>

<p>Please let me know if more info is needed.</p>

<p>EDIT: </p>

<p>If i add the plugin like this: require('scrollmagic/uncompressed/plugins/animation.velocity.js')</p>

<p>I get these error.</p>

<pre><code>    ERROR in ./~/scrollmagic/scrollmagic/uncompressed/plugins/animation.velocity.js
Module not found: Error: Cannot resolve module 'ScrollMagic' in /home/av/local.dev/testest/node_modules/scrollmagic/scrollmagic/uncompressed/plugins
 @ ./~/scrollmagic/scrollmagic/uncompressed/plugins/animation.velocity.js 31:2-46

ERROR in ./~/scrollmagic/scrollmagic/uncompressed/plugins/animation.velocity.js
Module not found: Error: Cannot resolve module 'velocity' in /home/av/local.dev/testest/node_modules/scrollmagic/scrollmagic/uncompressed/plugins
 @ ./~/scrollmagic/scrollmagic/uncompressed/plugins/animation.velocity.js 31:2-46
</code></pre>