]>
git.wh0rd.org - tt-rss.git/blob - lib/dijit/dijit.profile.js
1 var profile
= (function(){
2 var testResourceRe
= /^dijit\/tests\//,
3 nodeModulesRe
= /\/node_modules\//,
5 copyOnly = function(filename
, mid
){
7 "dijit/dijit.profile":1,
8 "dijit/package.json":1,
9 "dijit/themes/claro/compile":1
11 return (mid
in list
) ||
12 (/^dijit\/resources\//.test(mid
) && !/\.css$/.test(filename
)) ||
13 /(png|jpg|jpeg|gif|tiff)$/.test(filename
) ||
14 nodeModulesRe
.test(mid
);
19 test: function(filename
, mid
){
20 return testResourceRe
.test(mid
) || mid
=="dijit/robot" || mid
=="dijit/robotx";
23 copyOnly: function(filename
, mid
){
24 return copyOnly(filename
, mid
);
27 amd: function(filename
, mid
){
28 return !testResourceRe
.test(mid
) && !copyOnly(filename
, mid
) && /\.js$/.test(filename
);
31 miniExclude: function(filename
, mid
){
32 return /^dijit\/bench\//.test(mid
) ||
33 /^dijit\/themes\/themeTest/.test(mid
) ||
34 nodeModulesRe
.test(mid
);