blob: 67644030ace21b46af90f99c31a8d5c838195166 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
var listAll = require('./listAll');
/**
* 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 {OrderedMap<Plugin>}
*/
function listForBook(book) {
var config = book.getConfig();
var plugins = config.getPluginDependencies();
return listAll(plugins);
}
module.exports = listForBook;
|