25 lines
569 B
JavaScript
25 lines
569 B
JavaScript
|
/*
|
||
|
Copyright (c) 2013, Rodrigo González, Sapienlab All Rights Reserved.
|
||
|
Available via MIT LICENSE, see https://github.com/roro89/jsonpack/blob/master/LICENSE.md for details.
|
||
|
*/
|
||
|
var miniExcludes = {
|
||
|
"jsonpack/README.md": 1,
|
||
|
"jsonpack/package": 1
|
||
|
},
|
||
|
isTestRe = /\/test\//;
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
};
|