const path = require('path') const express = require('express') const { position, find, write } = require('promise-path') const fromHere = position(__dirname) const report = (...messages) => console.log(`[${require(fromHere('../package.json')).logName} / ${__filename.split(path.sep).pop().split('.js').shift()}]`, ...messages) const app = express() const packageData = require('../package.json') async function generateIndexHTML () { const title = packageData.logName const solutions = await find(fromHere('/*')) const links = solutions .filter(n => n.indexOf('.js') === -1 && n.indexOf('.html') === -1) .map(solution => { const folder = solution.substr(fromHere('../').length) return `