Rev | Line | |
---|
[483] | 1 | define([ |
---|
| 2 | "./messages", |
---|
| 3 | "dojo/text!./copyright.txt", |
---|
| 4 | "dojo/text!./buildNotice.txt" |
---|
| 5 | ], function(messages, defaultCopyright, defaultBuildNotice){ |
---|
| 6 | var bc = { |
---|
| 7 | // 0 => no errors |
---|
| 8 | // 1 => messages.getErrorCount()>0 at exist |
---|
| 9 | exitCode:0, |
---|
| 10 | |
---|
| 11 | // use this variable for all newlines inserted by build transforms |
---|
| 12 | newline:"\n", |
---|
| 13 | |
---|
| 14 | // user profiles may replace this with a function from string to string that filters newlines |
---|
| 15 | // however they desire. For example, |
---|
| 16 | // |
---|
| 17 | // newlineFilter: function(s){ |
---|
| 18 | // // convert all DOS-style newlines to Unix-style newlines |
---|
| 19 | // return s.replace(/\r\n/g, "\n").replace(/\n\r/g, "\n"); |
---|
| 20 | // } |
---|
| 21 | // |
---|
| 22 | newlineFilter:function(s, resource, hint){return s;}, |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | // useful for dojo pragma including/excluding |
---|
| 26 | built:true, |
---|
| 27 | |
---|
| 28 | startTimestamp:new Date(), |
---|
| 29 | |
---|
| 30 | paths:{}, |
---|
| 31 | destPathTransforms:[], |
---|
| 32 | packageMap:{}, |
---|
| 33 | |
---|
| 34 | // resource sets |
---|
| 35 | resources:{}, |
---|
| 36 | resourcesByDest:{}, |
---|
| 37 | amdResources:{}, |
---|
| 38 | |
---|
| 39 | closureCompilerPath:"../closureCompiler/compiler.jar", |
---|
| 40 | maxOptimizationProcesses:5, |
---|
| 41 | buildReportDir:".", |
---|
| 42 | buildReportFilename:"build-report.txt", |
---|
| 43 | |
---|
| 44 | defaultCopyright:defaultCopyright, |
---|
| 45 | defaultBuildNotice:defaultBuildNotice |
---|
| 46 | }; |
---|
| 47 | for(var p in messages){ |
---|
| 48 | bc[p] = messages[p]; |
---|
| 49 | }; |
---|
| 50 | return bc; |
---|
| 51 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.