forked from dojo/dojo-oldmirror
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdojo.profile.js
More file actions
39 lines (35 loc) · 1.08 KB
/
Copy pathdojo.profile.js
File metadata and controls
39 lines (35 loc) · 1.08 KB
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
(function(){
var testResourceRe = /^dojo\/tests\//,
copyOnly = function(mid){
var list = {
"dojo/dojo.profile":1,
"dojo/package.json":1,
"dojo/OpenAjax":1,
"dojo/tests":1,
// these are test modules that are not intended to ever be built
"dojo/tests/_base/loader/requirejs/requirejs-setup":1,
"dojo/tests/_base/loader/requirejs/dataMain":1,
"dojo/tests/_base/loader/requirejs/depoverlap":1,
"dojo/tests/_base/loader/requirejs/simple-tests":1,
"dojo/tests/_base/loader/requirejs/relative/relative-tests":1,
"dojo/tests/_base/loader/requirejs/exports/exports-tests":1
};
return (mid in list) || /^dojo\/_base\/config\w+$/.test(mid) || /^dojo\/resources\//.test(mid);
};
return {
resourceTags:{
test: function(filename, mid){
return testResourceRe.test(mid) || mid=="dojo/tests";
},
copyOnly: function(filename, mid){
return copyOnly(mid);
},
amd: function(filename, mid){
return !testResourceRe.test(mid) && !copyOnly(mid) && /\.js$/.test(filename);
}
},
trees:[
[".", ".", /(\/\.)|(~$)/]
]
};
})()