lib/plugins/findForBook.js
function findForBook(book) {
    return timing.measure(
        'plugins.findForBook',

        Promise.all([
            findInstalled(locateRootFolder()),
            findInstalled(book.getRoot())
        ])

        // Merge all plugins
        .then(function(results) {
            return Immutable.List(results)
                .reduce(function(out, result) {
                    return out.merge(result);
                }, Immutable.OrderedMap());
        })
    );
}
function findForBook(book) {
    return timing.measure(
        'plugins.findForBook',

        Promise.all([
            findInstalled(locateRootFolder()),
            findInstalled(book.getRoot())
        ])

        // Merge all plugins
        .then(function(results) {
            return Immutable.List(results)
                .reduce(function(out, result) {
                    return out.merge(result);
                }, Immutable.OrderedMap());
        })
    );
}
function findForBook ( book ) { return timing . measure ( 'plugins.findForBook' , Promise . all ( [ findInstalled ( locateRootFolder ( ) ) , findInstalled ( book . getRoot ( ) ) ] ) // Merge all plugins . then ( function ( results ) { return Immutable . List ( results ) . reduce ( function ( out , result ) { return out . merge ( result ) ; } , Immutable . OrderedMap ( ) ) ; } ) ) ; }
List all plugins installed in a book

@param {Book}
@return {Promise<OrderedMap<String:Plugin>>}
List all plugins installed in a book