You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
954 B
39 lines
954 B
var profile = (function(){ |
|
var testResourceRe = /^dijit\/tests\//, |
|
nodeModulesRe = /\/node_modules\//, |
|
|
|
copyOnly = function(filename, mid){ |
|
var list = { |
|
"themes/themes.profile":1, |
|
"themes/package.json":1, |
|
"themes/Gruntfile":1 |
|
}; |
|
return (mid in list) || |
|
(/^dijit\/resources\//.test(mid) && !/\.css$/.test(filename)) || |
|
/(png|jpg|jpeg|gif|tiff)$/.test(filename) |
|
nodeModulesRe.test(mid); |
|
}; |
|
|
|
return { |
|
resourceTags:{ |
|
test: function(filename, mid){ |
|
return testResourceRe.test(mid); |
|
}, |
|
|
|
copyOnly: function(filename, mid){ |
|
return copyOnly(filename, mid); |
|
}, |
|
|
|
amd: function(filename, mid){ |
|
return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename); |
|
}, |
|
|
|
miniExclude: function(filename, mid){ |
|
return /\.styl$/.test(filename) || |
|
/^dijit\/bench\//.test(mid) || |
|
/^dijit\/themes\/themeTest/.test(mid) || |
|
nodeModulesRe.test(mid); |
|
} |
|
} |
|
}; |
|
})();
|
|
|