lib/bootstrap.js
function createRunQueue(modules) {

	return modules
		.map((mod) => mod._runQueue)
		.reduce((acc, res) => acc.concat(res), []);

}
function createRunQueue(modules) {

	return modules
		.map((mod) => mod._runQueue)
		.reduce((acc, res) => acc.concat(res), []);

}
function createRunQueue ( modules ) { return modules . map ( ( mod ) => mod . _runQueue ) . reduce ( ( acc , res ) => acc . concat ( res ) , [ ] ) ; }
Runs recursively through modules and their dependency-modules
and creates an array with handlers to invoke later by app-instance after startup.
@param  {Object} module Module instance
@return {Array}        Array of run handlers.
Runs recursively through modules and their dependency - modules and creates an array with handlers to invoke later by app - instance after startup .