UNPKG

@miyagi/core

Version:

miyagi is a component development tool for JavaScript template engines.

16 lines (13 loc) 392 B
const init = require("."); const { updateConfigForRendererIfNecessary } = require("../helpers"); /** * Runs the renderer to either start the server or create a build * * @param {object} config - the user configuration object */ module.exports = async function initRendering(config) { config = await updateConfigForRendererIfNecessary(config); if (config) { init(config); } };