summaryrefslogtreecommitdiffstats
path: root/lib/plugins/listDepsForBook.js
blob: 196e3aaebb361086ae4f54377fecdba066f93cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var listDependencies = require('./listDependencies');

/**
 * List all plugin requirements for a book.
 * It can be different from the final list of plugins,
 * since plugins can have their own dependencies
 *
 * @param {Book}
 * @return {List<PluginDependency>}
 */
function listDepsForBook(book) {
    var config = book.getConfig();
    var plugins = config.getPluginDependencies();

    return listDependencies(plugins);
}

module.exports = listDepsForBook;