| | |
| | | import { QuartzLogger } from "../util/log" |
| | | import { trace } from "../util/trace" |
| | | import { BuildCtx } from "../util/ctx" |
| | | import chalk from "chalk" |
| | | import { styleText } from "util" |
| | | |
| | | export async function emitContent(ctx: BuildCtx, content: ProcessedContent[]) { |
| | | const { argv, cfg } = ctx |
| | |
| | | if (ctx.argv.verbose) { |
| | | console.log(`[emit:${emitter.name}] ${file}`) |
| | | } else { |
| | | log.updateText(`${emitter.name} -> ${chalk.gray(file)}`) |
| | | log.updateText(`${emitter.name} -> ${styleText("gray", file)}`) |
| | | } |
| | | } |
| | | } else { |
| | |
| | | if (ctx.argv.verbose) { |
| | | console.log(`[emit:${emitter.name}] ${file}`) |
| | | } else { |
| | | log.updateText(`${emitter.name} -> ${chalk.gray(file)}`) |
| | | log.updateText(`${emitter.name} -> ${styleText("gray", file)}`) |
| | | } |
| | | } |
| | | } |