]> git.wh0rd.org - tt-rss.git/blobdiff - lib/dijit/dijit.profile.js
lib: Upgrade Dojo and Dijit from 1.8.3 to 1.12.1
[tt-rss.git] / lib / dijit / dijit.profile.js
index 5a75a6aca024b0ed029bff6ce8d31dc80c339733..bdebb299c74f3b4a7024330eebb107ba5bce264e 100644 (file)
@@ -1,5 +1,6 @@
 var profile = (function(){
        var testResourceRe = /^dijit\/tests\//,
+       nodeModulesRe = /\/node_modules\//,
 
                copyOnly = function(filename, mid){
                        var list = {
@@ -7,7 +8,10 @@ var profile = (function(){
                                "dijit/package.json":1,
                                "dijit/themes/claro/compile":1
                        };
-                       return (mid in list) || (/^dijit\/resources\//.test(mid) && !/\.css$/.test(filename)) || /(png|jpg|jpeg|gif|tiff)$/.test(filename);
+                       return (mid in list) ||
+                               (/^dijit\/resources\//.test(mid) && !/\.css$/.test(filename)) ||
+                               /(png|jpg|jpeg|gif|tiff)$/.test(filename) ||
+                               nodeModulesRe.test(mid);
                };
 
        return {
@@ -25,11 +29,10 @@ var profile = (function(){
                        },
 
                        miniExclude: function(filename, mid){
-                               return /^dijit\/bench\//.test(mid) || /^dijit\/themes\/themeTest/.test(mid);
+                               return /^dijit\/bench\//.test(mid) ||
+                                       /^dijit\/themes\/themeTest/.test(mid) ||
+                                       nodeModulesRe.test(mid);
                        }
                }
        };
 })();
-
-
-