Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

locatorObj.ready could be a promise fulfilled after parseBundle() is done #14

@caridy

Description

@caridy
// 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions