-
Notifications
You must be signed in to change notification settings - Fork 34
/
cbtree.profile.js
132 lines (121 loc) · 3.21 KB
/
cbtree.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
var testResourceRe = /^cbtree\/tests\//;
var excludePath = [ /^cbtree\/((.*)?\/)?tests\//,
/^cbtree\/((.*)?\/)?demos\//,
/^cbtree\/((.*)?\/)?json\//,
/^cbtree\/((.*)?\/)?csv\//
];
var copyOnly = function(filename, mid) {
var list = {
"cbtree/cbtree.profile":1,
"cbtree/package.json":1
};
return (mid in list) ||
(/^cbtree\/themes\//.test(mid) && !/\.css$/.test(filename)) ||
/(png|jpg|jpeg|gif|tiff)$/.test(filename);
};
// The following profile defines all dojo, dijit and CBTree modules required
// to run all demos included in the CheckBox Tree package.
var profile = {
releaseDir: "../release",
releaseName: "cbtree",
basePath: "..",
action: "release",
cssOptimize: "comments",
optimize: "closure",
layerOptimize: "closure",
selectorEngine: "acme",
mini: true,
staticHasFeatures: {
"config-deferredInstrumentation": 0
},
packages:[
{name:"dojo", location: "dojo"},
{name:"dijit", location: "dijit"},
{name:"cbtree", location: "cbtree"}
],
layers: {
"dojo/dojo": {
include: [
"dojo/dojo",
"dojo/data/ItemFileWriteStore", // Remove with 2.0
"dojo/dom",
"dojo/domReady",
"dojo/dnd/Manager",
"dojo/fx/Toggler",
"dojo/i18n",
"dojo/main",
"dojo/ready",
"dojo/store/Memory",
"dojo/store/Observable"
],
customBase: true,
boot: true
},
"dijit/dijit": {
include: [
"dijit/dijit",
"dijit/form/ComboButton",
"dijit/form/DropDownButton",
"dijit/form/RadioButton",
"dijit/tree/dndSource"
]
},
"cbtree/cbtree": {
include: [
// Legacy dojo/data store models (remove with dojo 2.0)
"cbtree/models/FileStoreModel",
"cbtree/models/ForestStoreModel",
"cbtree/models/TreeStoreModel",
"cbtree/models/StoreModel-API",
"cbtree/data/FileStore",
// New dojo/store & cbtree/store models
"cbtree/model/FileStoreModel",
"cbtree/model/ForestStoreModel",
"cbtree/model/StoreModel-EXT",
"cbtree/model/TreeStoreModel",
// New cbtree/store stores & wrappers
"cbtree/store/Eventable",
"cbtree/store/FileStore",
"cbtree/store/Hierarchy",
"cbtree/store/Memory",
"cbtree/store/Natural",
"cbtree/store/ObjectStore",
"cbtree/store/extensions/Ancestry",
"cbtree/store/extensions/CORS",
// cbtree/store/handlers
"cbtree/store/handlers/arcGisHandler",
"cbtree/store/handlers/csvHandler",
"cbtree/store/handlers/ifrsHandler",
// cbtree
"cbtree/CheckBox",
"cbtree/Tree",
// extensions
"cbtree/extensions/TreeStyling",
"cbtree/extensions/TreeOnSubmit",
// util
"cbtree/util/QueryEngine",
"cbtree/util/TOC",
// misc
"cbtree/errors/createError"
]
}
},
resourceTags: {
test: function(filename, mid){
var result = testResourceRe.test(mid);
return testResourceRe.test(mid) || mid=="cbtree/tests" || mid=="cbtree/demos";
},
amd: function(filename, mid) {
return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
},
copyOnly: function(filename, mid) {
return copyOnly(filename, mid);
},
miniExclude: function(filename, mid){
var result = excludePath.some( function (regex) {
return regex.test(mid);
});
return result;
}
}
};