forked from kriszyp/alkali
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
37 lines (33 loc) · 781 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
var miniExcludes = {
"xstyle/index.html": 1,
"xstyle/README.md": 1,
"xstyle/package": 1
},
copyOnlyRe = [
/\/build/, // contents of build folder and build.js
/\/core\/amdLoader/, // contents of core folder
/\/core\/put/, // contents of core folder
/\/xstyle(\.min)?$/ // xstyle.min.*
],
isTestRe = /\/tests\//;
var profile = {
resourceTags: {
test: function(filename, mid){
return isTestRe.test(filename);
},
miniExclude: function(filename, mid){
return isTestRe.test(filename) || mid in miniExcludes;
},
amd: function(filename, mid){
return /\.js$/.test(filename);
},
copyOnly: function(filename, mid){
for(var i = copyOnlyRe.length; i--;){
if(copyOnlyRe[i].test(mid)){
return true;
}
}
return false;
}
}
};