You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tt-rss/lib/dojo/dojo.profile.js

41 lines
1.2 KiB
JavaScript

var profile = (function(){
var testResourceRe = /^dojo\/tests\//,
copyOnly = function(filename, 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) && !/\.css$/.test(filename)) || /(png|jpg|jpeg|gif|tiff)$/.test(filename);
};
return {
resourceTags:{
test: function(filename, mid){
return testResourceRe.test(mid) || mid=="dojo/tests" || mid=="dojo/robot" || mid=="dojo/robotx";
},
copyOnly: function(filename, mid){
return copyOnly(filename, mid);
},
amd: function(filename, mid){
return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
}
},
trees:[
[".", ".", /(\/\.)|(~$)/]
]
};
})();