summaryrefslogtreecommitdiff
path: root/public-src/require.config.js
blob: e824aaa7ce52fa0f614b8a3852410d53ffeef217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
var require = {
	baseUrl: "/bogus",
	shim: {
		"jarmon": {
			deps: [
				"javascriptrrd/rrdFile", // ~1.1
				"javascriptrrd/binaryXHR", // ~1.1
				"jquery", // ^1.6.3
				"flot/jquery.flot.stack", // >= 0.7
				"flot/jquery.flot.time", // split in to a plugin in >=0.8.0
				"flot/jquery.flot.selection", // split in to a plugin in >= 0.6
				"jquerytools/tabs/tabs",
				"jquerytools/toolbox/toolbox.history",
			],
			exports: "jarmon"
		},
		// jQuery plugins
		"jquerytools/tabs/tabs"               : { deps: ["jquery"], exports: "jQuery.tools.tabs" },
		"jquerytools/toolbox/toolbox.history" : { deps: ["jquery" /* <1.9 */], exports: "jQuery.tools.history" },
		"flot/jquery.flot"                    : { deps: ["jquery" /* <1.9 */], exports: "jQuery.plot" },
		// Flot plugins
		"flot/jquery.flot.time"      : { deps: ["flot/jquery.flot"] },
		"flot/jquery.flot.selection" : { deps: ["flot/jquery.flot"] },
		"flot/jquery.flot.stack"     : { deps: ["flot/jquery.flot"] },
		// Jarmon configs
		"cfg/jarmon-winston": { deps: ["jquery", "jarmon"] },
		"cfg/jarmon-proton": { deps: ["jquery", "jarmon"] },
	},
	paths: {
		"flot"          : "/3rd-party/yarn/flot",
		"jarmon"        : "/3rd-party/yarn/jarmon/jarmon/jarmon",
		"javascriptrrd" : "/3rd-party/yarn/javascriptrrd/src/lib",
		"jquerytools"   : "/3rd-party/yarn/jquerytools/src",
		"requirejs"     : "/3rd-party/yarn/requirejs/require",

		"jquery"        : "/3rd-party/jquery-1.6.3",

		"cfg"           : "/cfg",
	},
};