Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
914 bytes
|
Rev | Line | |
---|
[256] | 1 | var profile = (function(){ |
---|
| 2 | var testResourceRe = /^dijit\/tests\//, |
---|
| 3 | |
---|
| 4 | copyOnly = function(filename, mid){ |
---|
| 5 | var list = { |
---|
| 6 | "dijit/dijit.profile":1, |
---|
| 7 | "dijit/package.json":1, |
---|
| 8 | "dijit/themes/claro/compile":1 |
---|
| 9 | }; |
---|
| 10 | return (mid in list) || (/^dijit\/resources\//.test(mid) && !/\.css$/.test(filename)) || /(png|jpg|jpeg|gif|tiff)$/.test(filename); |
---|
| 11 | }; |
---|
| 12 | |
---|
| 13 | return { |
---|
| 14 | resourceTags:{ |
---|
| 15 | test: function(filename, mid){ |
---|
| 16 | return testResourceRe.test(mid) || mid=="dijit/robot" || mid=="dijit/robotx"; |
---|
| 17 | }, |
---|
| 18 | |
---|
| 19 | copyOnly: function(filename, mid){ |
---|
| 20 | return copyOnly(filename, mid); |
---|
| 21 | }, |
---|
| 22 | |
---|
| 23 | amd: function(filename, mid){ |
---|
| 24 | return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename); |
---|
| 25 | }, |
---|
| 26 | |
---|
| 27 | miniExclude: function(filename, mid){ |
---|
| 28 | return /^dijit\/bench\//.test(mid) || /^dijit\/themes\/themeTest/.test(mid); |
---|
| 29 | } |
---|
| 30 | }, |
---|
| 31 | |
---|
| 32 | trees:[ |
---|
| 33 | [".", ".", /(\/\.)|(~$)/] |
---|
| 34 | ] |
---|
| 35 | }; |
---|
| 36 | })(); |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.