]> git.wh0rd.org - tt-rss.git/blobdiff - lib/dojo/dojo.profile.js
lib: Upgrade Dojo and Dijit from 1.8.3 to 1.12.1
[tt-rss.git] / lib / dojo / dojo.profile.js
index 4b24edb5e3467e55e75f45b5ddbd06ec30b8f1f2..7a2f24dbfd361822fe3c22c549374bd678aa50c2 100644 (file)
@@ -1,5 +1,6 @@
 var profile = (function(){
-       var testResourceRe = /^dojo\/tests\//,
+       var testResourceRe = /^dojo\/tests(?:DOH)?\//,
+               nodeModulesRe = /\/node_modules\//,
 
                copyOnly = function(filename, mid){
                        var list = {
@@ -19,13 +20,14 @@ var profile = (function(){
                                /^dojo\/_base\/config\w+$/.test(mid) ||
                                (/^dojo\/resources\//.test(mid) && !/\.css$/.test(filename)) ||
                                /(png|jpg|jpeg|gif|tiff)$/.test(filename) ||
+                               nodeModulesRe.test(mid) ||
                                /built\-i18n\-test\/152\-build/.test(mid);
                };
 
        return {
                resourceTags:{
                        test: function(filename, mid){
-                               return testResourceRe.test(mid) || mid=="dojo/tests" || mid=="dojo/robot" || mid=="dojo/robotx";
+                               return testResourceRe.test(mid) || mid=="dojo/robot" || mid=="dojo/robotx";
                        },
 
                        copyOnly: function(filename, mid){
@@ -34,6 +36,10 @@ var profile = (function(){
 
                        amd: function(filename, mid){
                                return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
+                       },
+
+                       miniExclude: function(filename, mid){
+                               return nodeModulesRe.test(mid);
                        }
                }
        };