Created
May 30, 2012 09:49
-
-
Save DimitarChristoff/2835214 to your computer and use it in GitHub Desktop.
poor man's AMD and mootools
This file contains 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.config({ | |
baseUrl: 'scripts/', | |
paths: { | |
'text': 'lib/text', | |
'mustache': 'lib/mustache', | |
'mootools': 'lib/mootools-core', | |
'mootools-more': 'lib/mootools-more', | |
'router': 'lib/router', | |
'breadcrumb': 'modules/breadcrumb', | |
'settings': 'modules/settings', | |
'storage': 'modules/storage', | |
'qs-controller': 'modules/controllers/qs-controller', | |
'validators': 'modules/validators' | |
}, | |
shim: { | |
'mootools': { | |
exports: 'MooTools' | |
}, | |
'mootools-more': { | |
deps: ['mootools'], | |
exports: 'MooTools.More' | |
}, | |
'mustache': { | |
exports: 'Mustache' | |
} | |
}, | |
deps: ['modules/libs', 'modules/core', 'modules/templates', 'modules/types'], | |
urlArgs: 'bust=' + (new Date()).getTime() | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment