Skip to content

Instantly share code, notes, and snippets.

@mauron85
Created May 23, 2013 15:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauron85/5636828 to your computer and use it in GitHub Desktop.
Save mauron85/5636828 to your computer and use it in GitHub Desktop.
require.config({
// enforceDefine: true,
// urlArgs: 'bust=' + (new Date()).getTime(),
waitSeconds: 3,
paths: {
'text': '../components/requirejs-text/text',
'classes': '../scripts/classes',
'jquery': '../components/jquery/jquery',
'jquery.mobile': '../components/jquery-mobile/jquery.mobile',
'jquery.mobileConfig': '../scripts/jquery.mobileConfig',
'jquery.formparams': '../scripts/vendor/jquery.formparams',
'underscore': '../components/underscore/underscore',
// 'socketio': [
// 'http://mapilary.dev:8888/socket.io/socket.io',
// '../components/socket.io-client/dist/socket.io'
// ],
'socketio': '../components/socket.io-client/dist/socket.io',
'backbone': '../components/backbone/backbone',
'backbone.iobind': '../components/backbone.iobind/dist/backbone.iobind',
'backbone.iosync': '../components/backbone.iobind/dist/backbone.iosync',
'backbone.memory': '../components/backbone.memorySync/backbone.memory',
'leaflet': '../components/leaflet/dist/leaflet',
'leaflet.awesome-markers': '../components/leaflet.awesome-markers/dist/leaflet.awesome-markers',
},
shim: {
'jquery': {
exports: 'jquery'
},
'jquery.mobileConfig': ['jquery'],
'jquery.mobile': ['jquery', 'jquery.mobileConfig'],
'jquery.formparams': ['jquery'],
'underscore': {
exports: '_'
},
'socketio': {
exports: 'io'
},
'backbone': {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
},
'backbone.iobind': ['jquery', 'underscore', 'backbone', 'socketio'],
'backbone.iosync': ['jquery', 'underscore', 'backbone', 'socketio'],
'backbone.memory': ['backbone'],
'leaflet': {
exports: 'L'
},
'leaflet.awesome-markers' : ['leaflet']
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment