// locator initialization
var locator = new Locator({
buildDirectory: 'build'
});
locator.plug(pluginOne())
.plug(pluginTwo())
.plug(pluginThree())
.parseBundle(__dirname, {});
locator.ready.then(function(have) {
// do something...
});
this will facilitate passing locator instance around into different components that requires filesystem abstraction and let them know when locator is ready to be used.
related to modown trello card 203