* update the cli UI * @param {String} params.url URL for preview server * @param {String} params.status the current status * @param {String} params.time time to compile the heml * @param {String} params.size size of the HTML in mb
({ url, status, time, size })
| 67 | * @param {String} params.size size of the HTML in mb |
| 68 | */ |
| 69 | function renderCLI ({ url, status, time, size }) { |
| 70 | return logUpdate(boxen( |
| 71 | `${chalk.bgBlue.black(' HEML ')}\n\n` + |
| 72 | `- ${chalk.bold('Preview:')} ${url}\n` + |
| 73 | `- ${chalk.bold('Status:')} ${status}\n` + |
| 74 | `- ${chalk.bold('Compile time:')} ${time}\n` + |
| 75 | `- ${chalk.bold('Total size:')} ${size}`, |
| 76 | { padding: 1, margin: 1 })) |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Launches a server that reloads when the update function is called |