[483] | 1 | var profile = (function(){ |
---|
| 2 | var testResourceRe = /^dojo\/tests\//, |
---|
| 3 | |
---|
| 4 | copyOnly = function(filename, mid){ |
---|
| 5 | var list = { |
---|
| 6 | "dojo/dojo.profile":1, |
---|
| 7 | "dojo/package.json":1, |
---|
| 8 | "dojo/OpenAjax":1, |
---|
| 9 | "dojo/tests":1, |
---|
| 10 | // these are test modules that are not intended to ever be built |
---|
| 11 | "dojo/tests/_base/loader/requirejs/requirejs-setup":1, |
---|
| 12 | "dojo/tests/_base/loader/requirejs/dataMain":1, |
---|
| 13 | "dojo/tests/_base/loader/requirejs/depoverlap":1, |
---|
| 14 | "dojo/tests/_base/loader/requirejs/simple-tests":1, |
---|
| 15 | "dojo/tests/_base/loader/requirejs/relative/relative-tests":1, |
---|
| 16 | "dojo/tests/_base/loader/requirejs/exports/exports-tests":1 |
---|
| 17 | }; |
---|
| 18 | return (mid in list) || |
---|
| 19 | /^dojo\/_base\/config\w+$/.test(mid) || |
---|
| 20 | (/^dojo\/resources\//.test(mid) && !/\.css$/.test(filename)) || |
---|
| 21 | /(png|jpg|jpeg|gif|tiff)$/.test(filename) || |
---|
| 22 | /built\-i18n\-test\/152\-build/.test(mid); |
---|
| 23 | }; |
---|
| 24 | |
---|
| 25 | return { |
---|
| 26 | resourceTags:{ |
---|
| 27 | test: function(filename, mid){ |
---|
| 28 | return testResourceRe.test(mid) || mid=="dojo/tests" || mid=="dojo/robot" || mid=="dojo/robotx"; |
---|
| 29 | }, |
---|
| 30 | |
---|
| 31 | copyOnly: function(filename, mid){ |
---|
| 32 | return copyOnly(filename, mid); |
---|
| 33 | }, |
---|
| 34 | |
---|
| 35 | amd: function(filename, mid){ |
---|
| 36 | return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename); |
---|
| 37 | } |
---|
| 38 | } |
---|
| 39 | }; |
---|
| 40 | })(); |
---|