mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
19 lines
420 B
JavaScript
19 lines
420 B
JavaScript
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.getValue('plugins');
|
|
|
|
return listAll(plugins);
|
|
}
|
|
|
|
module.exports = listForBook;
|