Created
December 7, 2010 18:52
-
-
Save neonstalwart/732209 to your computer and use it in GitHub Desktop.
building dojo with require.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
// base url, relative to appDir | |
baseUrl: './', | |
// output directory, relative to this file | |
dir: './build', | |
// closure, closure.keepLines, none | |
optimize: 'closure', | |
closure: { | |
// WHITESPACE_ONLY, SIMPLE_OPTIMIZATIONS, ADVANCED_OPTIMIZATIONS | |
CompilationLevel: 'SIMPLE_OPTIMIZATIONS', | |
// see http://closure-compiler.googlecode.com/svn/trunk/javadoc/com/google/javascript/jscomp/CompilerOptions.html | |
CompilerOptions: { | |
prettyPrint: false, | |
aliasKeywords: false | |
}, | |
// SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, OFF, ALL | |
loggingLevel: 'WARNING' | |
}, | |
// need to have requirejs GREATER THAN (not equal) to 0.15.0 for this to do what it needs to do. | |
pragmas: { | |
asynchLoader: true | |
}, | |
locale: 'en-us', | |
modules: [ | |
{ | |
name: 'dojo' | |
} | |
] | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require([ | |
'order!dojo/_base/_loader/bootstrap.js', | |
'order!dojo/_base/_loader/loader.js', | |
'order!dojo/_base/_loader/hostenv_browser.js', | |
// this list of includes is needed because of the conditional used in dojo/_base.js | |
'order!dojo/_base/lang', | |
'order!dojo/_base/array', | |
'order!dojo/_base/declare', | |
'order!dojo/_base/connect', | |
'order!dojo/_base/Deferred', | |
'order!dojo/_base/json', | |
'order!dojo/_base/Color', | |
'order!dojo/_base/browser' | |
], function () {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dojo.js is a sibling to dojo, dijit and dojox folders