title: Configure a generic jQuery plugin with Browserify-shim?
body: <p>I'm using browserify-shim and I want to use a generic jQuery plugin. I have looked over the Browserify-shim docs multiple times and I just can't seem to understand what's going on and/or how it knows where to put plugins, attach to the jQuery object etc. Here's what my package.json file looks like:</p>
  
  <pre><code>"browser": {
    "jquery": "./src/js/vendor/jquery.js",
    "caret": "./src/js/vendor/jquery.caret.js"
  },
  
  "browserify-shim": {
    "caret": {
       "depends": ["jquery:$"]
    }
  }
  </code></pre>
  
  <p>According the the example given on the browserify-shim documentation, I don't want to specify an exports because this plugin (and most if not all jQuery plugins) attach themselves to the jQuery object. Unless I'm doing something wrong above, I don't understand why it doesn't work (I get an error telling me the function is undefined) when I use it. See below:</p>
  
  <pre><code>$('#contenteditable').caret(5);  // Uncaught TypeError: undefined is not a function
  </code></pre>
  
  <p>So my question is, how does one configure a generic jQuery plugin (which attaches itself to the jQuery object) with browserify and browserify-shim?</p>