Skip to content

Instantly share code, notes, and snippets.

@abelmartin
Created November 2, 2012 23:08
Show Gist options
  • Save abelmartin/4004896 to your computer and use it in GitHub Desktop.
Save abelmartin/4004896 to your computer and use it in GitHub Desktop.
example of config files for requirejs-rails gem question
require([
'lib/dom_router',
'vendor/modernizr.custom.08494',
'jquery_ujs',
'lib/document-write-override'
], function(dom_router) {
dom_router.route({
//...
});
dom_router.run();
});
paths:
ourapp: 'application'
underscore: 'vendor/underscore.min'
routie: 'vendor/routie.min'
craftyslide: 'vendor/jquery.craftyslide.min'
cookies: 'vendor/jquery.cookie'
haw: 'haw_shared'
async: 'vendor/require.async'
notify: 'lib/notify'
facebook: 'lib/amd_facebook'
gmaps: 'lib/amd_gmaps'
shim:
underscore:
exports: '_'
jquery_ujs:
deps: [ 'jquery' ]
craftyslide:
deps: [ 'jquery' ]
cookies:
deps: [ 'jquery' ]
dom_observe:
deps: [ 'jquery' ]
haw:
deps: [ 'jquery', 'underscore' ]
exports: 'haw'
routie:
exports: 'routie'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment