Skip to content

Instantly share code, notes, and snippets.

@Colmea
Created June 13, 2014 09:38
Show Gist options
  • Save Colmea/b8bc67a9dd4c041553ed to your computer and use it in GitHub Desktop.
Save Colmea/b8bc67a9dd4c041553ed to your computer and use it in GitHub Desktop.
requirejs.config({
baseUrl: basePath + '/plugins/designer/scripts/lib',
paths: {
designer: '../app',
object: '../app/object',
samples: '../app/samples',
constraints: '../app/constraints',
public: '../../../..',
},
shim: {
'bootstrap': {
deps: ['jquery']
},
}
});
// use existing jQuery from layout
define('jquery', [], function() {
return jQuery;
});
//use existing bootstrap from layout
define('bootstrap', [], function() {
return jQuery;
});
// Start the main app logic.
requirejs(['jquery', 'underscore', 'bootstrap', 'bootbox', 'fabric-custom', 'designer/House', 'designer/designer', 'samples/modelBasic'],
function ($, _, _bootstrap, bootbox, fabric, House, Designer, modelBasicJSON) {
//jQuery loaded
console.log('App init');
Designer.initialize();
// Hide loader
Designer.loader.hide();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment