This repository has been archived by the owner on May 25, 2019. It is now read-only.
Releases: YahooArchive/locator
Releases · YahooArchive/locator
minor release
- Fix OS path comparison to work on windows (pr #15)
minor release
introducing locatorObj.ready
(pr #15) where locatorObj.ready
is a promise that will be fulfillled or rejected by parseBundle()
. Here is an example:
locatorObj = new Locator({
buildDirectory: __dirname + '/build'
});
locatorObj.plug(new LocatorHandlebars({ format: 'yui' }));
locatorObj.parseBundle(__dirname);
locatorObj.ready.then(function () {
// `locator.getRootBundle();` has all the data about the app
}, function (err) {
// `parseBundle()` failed big!
});
0.3.5
v0.3.4
One change: Allow bundle build directory naming to be specified by a function
passed as a parameter to parseBundle via option object key named
"bundleBuildDirectoryParser". The function is passed the bundle object
(see lib/bundle.js).
i.e.
var locator = new Locator({buildDirectory: 'build'}),
opts = {bundleBuildDirectoryParser: function(bundle) {
return bundle.name + '_' + bundle.version;
}};
locator.parseBundle(__dirname, opts).then(/* ... */);