UNPKG

dojo-util

Version:

Dojo utilities including build system for optimizing JavaScript application performance, and DOH testing tool

27 lines (23 loc) 497 B
var testResourceRe = /^doh\/tests/, list = { "doh/doh.profile": 1, "doh/package.json": 1, "doh/tests": 1, "doh/_parseURLargs": 1 }, copyOnly = function(mid){ return (mid in list); }; var profile = { resourceTags: { test: function(filename, mid){ return testResourceRe.test(mid); }, copyOnly: function(filename, mid){ return copyOnly(mid); }, amd: function(filename, mid){ return !testResourceRe.test(mid) && !copyOnly(mid) && /\.js$/.test(filename); } } };