Striven
yesterday c538c151c7462ad0395ff2c15c5e11e89e362aa8
quartz/processors/emit.ts
@@ -4,14 +4,14 @@
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
  const perf = new PerfTimer()
  const log = new QuartzLogger(ctx.argv.verbose)
  log.start(`Emitting output files`)
  log.start(`Emitting files`)
  let emittedFiles = 0
  const staticResources = getStaticResourcesFromPlugins(ctx)
@@ -26,7 +26,7 @@
            if (ctx.argv.verbose) {
              console.log(`[emit:${emitter.name}] ${file}`)
            } else {
              log.updateText(`Emitting output files: ${emitter.name} -> ${chalk.gray(file)}`)
              log.updateText(`${emitter.name} -> ${styleText("gray", file)}`)
            }
          }
        } else {
@@ -36,7 +36,7 @@
            if (ctx.argv.verbose) {
              console.log(`[emit:${emitter.name}] ${file}`)
            } else {
              log.updateText(`Emitting output files: ${emitter.name} -> ${chalk.gray(file)}`)
              log.updateText(`${emitter.name} -> ${styleText("gray", file)}`)
            }
          }
        }