-
Notifications
You must be signed in to change notification settings - Fork 295
/
package.js
45 lines (40 loc) · 1007 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
33
34
35
36
37
38
39
40
41
42
43
44
45
// jshint unused: false
var profile = (function () {
var copyOnlyMids = {
'dgrid/Gruntfile': 1,
'dgrid/package': 1
};
var miniExcludeMids = {
'dgrid/CHANGES.md': 1,
'dgrid/LICENSE': 1,
'dgrid/README.md': 1,
'dgrid/Gruntfile': 1,
'dgrid/package': 1
};
var amdRegex = /\.js$/;
var isDemoRegex = /\/demos\//;
var isStylusRegex = /\.styl$/;
var isTestRegex = /\/test\//;
return {
resourceTags: {
copyOnly: function (filename, mid) {
return (mid in copyOnlyMids) || isDemoRegex.test(filename) || isTestRegex.test(filename);
},
test: function (filename) {
return isTestRegex.test(filename);
},
miniExclude: function (filename, mid) {
return isDemoRegex.test(filename) ||
isStylusRegex.test(filename) ||
isTestRegex.test(filename) ||
mid in miniExcludeMids;
},
amd: function (filename) {
return amdRegex.test(filename);
}
},
trees: [
[ '.', '.', /(?:\/\.)|(?:~$)|(?:(?:coverage|node_modules|nib|nodes)\/)/ ]
]
};
})();