mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 16:15:22 +00:00
21 lines
439 B
JavaScript
21 lines
439 B
JavaScript
var Promise = require('../../utils/promise');
|
|
|
|
var copyPluginAssets = require('./copyPluginAssets');
|
|
var prepareI18n = require('./prepareI18n');
|
|
var prepareResources = require('./prepareResources');
|
|
|
|
/**
|
|
Initialize the generator
|
|
|
|
@param {Output}
|
|
@return {Output}
|
|
*/
|
|
function onInit(output) {
|
|
return Promise(output)
|
|
.then(prepareI18n)
|
|
.then(prepareResources)
|
|
.then(copyPluginAssets);
|
|
}
|
|
|
|
module.exports = onInit;
|