Here's some commonly-used JavaScript libraries, and appropriate AMD shims. Also includes a little script for injecting these semi-delicately into existing require.js configs.
Library | Version | Shim Name | Aliases |
---|---|---|---|
Backbone | 1.0.0 | cdn.backbone | |
Backbone.Marionette | 1.1.0 | cdn.marionette | |
jQuery | 1.10.2 | cdn.jquery | |
Processing.js | 1.4.1 | cdn.processing | |
Raphaël | 2.1.2 | cdn.raphael | |
Underscore | 1.6.0 | cdn.underscore | cdn.lodash |
Underscore.mixins | 1 | cdn.underscore.mixins | |
Hogan | 2.0.0 | cdn.hogan | cdn.mustache |
jQuery UI | 1.11.0pre | cdn.jqueryui |
- Install shared libs with npm
- Connect
node_modules/lib/
as/scripts/lib
to your website - Use lib/config.js to set up requirejs paths and shims for shared-libs