]> git.wh0rd.org Git - tt-rss.git/blob - lib/dijit/dijit.profile.js
dojo: Build dojo/dom-construct
[tt-rss.git] / lib / dijit / dijit.profile.js
1 var profile = (function(){
2         var testResourceRe = /^dijit\/tests\//,
3
4                 copyOnly = function(filename, mid){
5                         var list = {
6                                 "dijit/dijit.profile":1,
7                                 "dijit/package.json":1,
8                                 "dijit/themes/claro/compile":1
9                         };
10                         return (mid in list) || (/^dijit\/resources\//.test(mid) && !/\.css$/.test(filename)) || /(png|jpg|jpeg|gif|tiff)$/.test(filename);
11                 };
12
13         return {
14                 resourceTags:{
15                         test: function(filename, mid){
16                                 return testResourceRe.test(mid) || mid=="dijit/robot" || mid=="dijit/robotx";
17                         },
18
19                         copyOnly: function(filename, mid){
20                                 return copyOnly(filename, mid);
21                         },
22
23                         amd: function(filename, mid){
24                                 return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
25                         },
26
27                         miniExclude: function(filename, mid){
28                                 return /^dijit\/bench\//.test(mid) || /^dijit\/themes\/themeTest/.test(mid);
29                         }
30                 }
31         };
32 })();
33
34
35