-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdjeo.profile.js
134 lines (129 loc) · 2.83 KB
/
djeo.profile.js
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
var packages = {};
try {
// retrieve the set of packages for determining which modules to include
require(['util/build/buildControl'], function (buildControl) {
packages = buildControl.packages;
});
} catch (error) {
console.error('Unable to retrieve packages for determining optional package support in dejo');
}
var copyOnly = function(filename, mid) {
// conditionally omit modules dependent on tiles packages
if (!packages['tiles'] && "djeo/djeo/WebTiles" == mid){
return true;
}
return mid in {
"djeo/tests/util": 1
} || /djeo\/tests\/data\//.test(filename)
};
var miniExclude = function(filename, mid) {
return mid == "djeo/djeo.profile" || /package.json$/.test(filename);
};
var profile = {
releaseDir: "./release",
basePath: "..",
action: "release",
cssOptimize: "comments",
mini: true,
optimize: "closure",
layerOptimize: "closure",
stripConsole: "all",
selectorEngine: "lite",
staticHasFeatures: {
"djeo-built": 1
},
defaultConfig: {
async: 1
},
layers: {
"dojo/dojo": {
include: [
"dojo/dojo",
"dojo/domReady",
"dojo/i18n",
"djeo/Map",
// djeo/Engine is used by all engines
"djeo/Engine",
"djeo/control/Navigation",
"djeo/control/Highlight",
"djeo/control/Tooltip",
"djeo/WebTiles"
],
customBase: true,
boot: true
},
"djeo/native": {
include: [
"djeo/djeo/Engine",
"djeo/djeo/Placemark",
"djeo/djeo/Navigation",
"djeo/djeo/WebTiles",
// seems to be loaded in runtime by gfx
"djeo/dojox/gfx/path",
// basic gfx renderers
"djeo/dojox/gfx/svg",
"djeo/dojox/gfx/vml"
]
},
"djeo-gmaps/gmaps": {
include: [
"djeo-gmaps/Engine",
"djeo-gmaps/Placemark",
"djeo-gmaps/Navigation",
"djeo-gmaps/WebTiles"
]
},
"djeo-ymaps/ymaps": {
include: [
"djeo-ymaps/Engine",
"djeo-ymaps/Placemark",
"djeo-ymaps/Navigation",
"djeo-ymaps/WebTiles"
]
},
"djeo-ge/ge": {
include: [
"djeo-ge/Engine",
"djeo-ge/Placemark",
"djeo-ge/Navigation",
"djeo-ge/Tooltip"
]
},
"djeo-leaflet/leaflet": {
include: [
"djeo-leaflet/Engine",
"djeo-leaflet/Placemark",
"djeo-leaflet/Navigation",
"djeo-leaflet/WebTiles",
// seems to be loaded in runtime
"xstyle/load-css"
]
},
"djeo-esri/esri": {
include: [
"dojo/main",
"dojo/require",
"djeo-esri/Engine",
"djeo-esri/Placemark",
"djeo-esri/Navigation",
"djeo-esri/WebTiles",
// seems to be loaded in runtime by gfx
"dojox/gfx/path",
// basic gfx renderers
"dojox/gfx/svg",
"dojox/gfx/vml"
]
}
},
resourceTags: {
copyOnly: function (filename, mid) {
return copyOnly(filename, mid);
},
amd: function(filename, mid) {
return !copyOnly(mid) && /\.js$/.test(filename);
},
miniExclude: function(filename, mid) {
return miniExclude(filename, mid);
}
}
};