From 62b750898259ef92158ce01a29a3469c2dbceeea Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 23 Dec 2012 13:02:55 +0100 Subject: added app object + event aggegator --- module/web/static/js/config.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 module/web/static/js/config.js (limited to 'module/web/static/js/config.js') diff --git a/module/web/static/js/config.js b/module/web/static/js/config.js new file mode 100644 index 000000000..0ab06a3e5 --- /dev/null +++ b/module/web/static/js/config.js @@ -0,0 +1,37 @@ +// Sets the require.js configuration for your application. +require.config({ + + // XXX: To many dots in file breaks dependencies + paths: { + + jquery: "libs/jquery-1.8.3", + jqueryui: "libs/jqueryui", + flot: "libs/jquery.flot-1.1", + transit: "libs/jquery.transit-0.9.9", + omniwindow: "libs/jquery.omniwindow", + bootstrap: "libs/bootstrap-2.2.2", + + underscore: "libs/lodash-1.0.rc3", + backbone: "libs/backbone-0.9.9", + wreqr: "libs/backbone.wreqr-0.1.0", + handlebars: "libs/Handlebars-1.0rc1", + + // Plugins + text: "libs/text-2.0.3", + tpl: "../../templates" + + }, + + // Sets the configuration for your third party scripts that are not AMD compatible + shim: { + + "backbone": { + deps: ["underscore", "jquery"], + exports: "Backbone" //attaches "Backbone" to the window object + }, + "flot": ["jquery"], + "transit": ["jquery"], + "omniwindow": ["jquery"], + "bootstrap": ["jquery"] + } // end Shim Configuration +}); \ No newline at end of file -- cgit v1.2.3