-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.js
32 lines (27 loc) · 854 Bytes
/
package.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
var profile = (function () {
"use strict";
var miniExcludes = {
"dojorama/package": 1
},
amdExcludes = {},
isTestRe = /\/tests\//,
isBuildRe = /\/builds\//,
isVendorRe = /dojorama\/vendor\//
;
return {
resourceTags: {
test: function (filename, mid) {
return isTestRe.test(filename);
},
miniExclude: function (filename, mid) {
return isTestRe.test(filename) || isBuildRe.test(filename) || isVendorRe.test(filename) || mid in miniExcludes;
},
amd: function (filename, mid) {
return (/\.js$/).test(filename) && !(mid in amdExcludes);
},
copyOnly: function (filename, mid) {
return false;
}
}
};
})();