Skip to content

Instantly share code, notes, and snippets.

@mattd
Created December 17, 2012 19:39
Show Gist options
  • Save mattd/4321322 to your computer and use it in GitHub Desktop.
Save mattd/4321322 to your computer and use it in GitHub Desktop.
require.config({
deps: ["main"],
paths: {
// Core
'jquery': 'lib/jquery',
'underscore': 'lib/underscore',
'json2': 'lib/json2',
'backbone': 'lib/backbone',
'marionette': 'lib/backbone.marionette',
// Plugins & Patches
'i18n': 'lib/i18n',
'string': 'lib/objects/string',
'jquery.cookie': 'lib/jquery.cookie',
'marionette.formview': 'lib/marionette.formview'
},
config: {
i18n: {
locale: 'fr-fr'
}
},
shim: {
'underscore': {
exports: '_'
},
'backbone': {
deps: ['jquery', 'underscore', 'json2'],
exports: 'Backbone'
},
'marionette': {
deps: ['backbone'],
exports: 'Marionette'
},
'templates': {
exports: 'JST'
},
'jquery.cookie': {
deps: ['jquery']
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment