yahoo/locator — pull request #11 by isao (2013-07-17 00:48:13+00:00)
Title: custom bundle build dir basenames w/ parseBundle() option

Allow bundle build directory naming to be specified by a function
passed as a parameter to parseBundle via option object key named
"buildDirectoryNamer". The function is passed the bundle object
(see lib/bundle.js).

i.e.

var loc = new Locator({buildDirectory: 'build'}),
opts = {buildDirectoryNamer: function(bundle) {
return bundle.name + '_' + bundle.version;
}};

loc.parseBundle(__dirname, opts).then(/* ... */);