Skip to content

Instantly share code, notes, and snippets.

@laurendavissmith
Created August 21, 2011 15:02
Show Gist options
  • Save laurendavissmith/1160713 to your computer and use it in GitHub Desktop.
Save laurendavissmith/1160713 to your computer and use it in GitHub Desktop.
YUI Groups
YUI({
base : '[...]/yui/demos/loader-config-groups/library/',
combine : true,
comboBase : '[...]/combo/?b=yui/demos/loader-config-groups&f=',
root : 'library/',
filter : {
'searchExp': '(^(?:[^&]+&[^&]+)|[^&]+)&',
'replaceStr': '$1,'
},
groups : {
utilities : {
root : 'utilities/',
combine : true,
comboBase : '[...]/combo/?b=yui/demos/loader-config-groups&f=',
modules : {
'gallery-yquery' : {
path : 'gallery-yquery.js',
requires : ['get','event']
}
}
},
animation : {
root : 'animation/',
combine : true,
comboBase : '[...]/combo/?b=yui/demos/loader-config-groups&f=',
modules : {
'gallery-effects' : {
path : 'gallery-effects.js',
requires : ['node','async-queue','anim']
},
'gallery-yuisand' : {
path : 'gallery-yuisand.js',
require : ['anim']
}
}
},
markup : {
root : 'markup/',
combine : true,
comboBase : '[...]/combo/?b=yui/demos/loader-config-groups&f=',
modules : {
'gallery-markout' : {
path : 'gallery-markout.js',
requires : ['dom-style','selector','node-base']
}
}
},
}
}).use( function(Y) {
Y.use( 'gallery-yquery' );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment