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

Releases: YahooArchive/locator

minor release

14 Nov 15:28
Compare
Choose a tag to compare
  • Fix OS path comparison to work on windows (pr #15)

minor release

25 Oct 08:51
Compare
Choose a tag to compare

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

11 Sep 22:33
Compare
Choose a tag to compare
  • fixed bug (pr #13) where build.json in the app root was being ignored

v0.3.4

18 Jul 20:47
Compare
Choose a tag to compare

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(/* ... */);