Skip to content

Instantly share code, notes, and snippets.

@brantb
Created June 19, 2012 03:28
Show Gist options
  • Save brantb/2952133 to your computer and use it in GitHub Desktop.
Save brantb/2952133 to your computer and use it in GitHub Desktop.
volo.js testcase
/*package.json
{
"volo": {
"dependencies": {
"jquery": "jquery/jquery"
}
}
}
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else {
// Browser globals
root.foo = factory(root.jQuery);
}
}(this, function (jQuery) {
// Just return a value to define the module export.
// This example returns an object, but the module
// can return a function as the exported value.
return {};
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment