mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-07-26 00:01:22 +00:00
.github
content
quartz
components
plugins
processors
static
styles
util
bootstrap-cli.mjs
bootstrap-worker.mjs
build.ts
cfg.ts
worker.ts
.gitattributes
.gitignore
.npmrc
.prettierignore
.prettierrc
CODE_OF_CONDUCT.md
LICENSE.txt
README.md
globals.d.ts
index.d.ts
package-lock.json
package.json
quartz.config.ts
quartz.layout.ts
tsconfig.json
20 lines
622 B
TypeScript
20 lines
622 B
TypeScript
import sourceMapSupport from "source-map-support"
|
|
sourceMapSupport.install(options)
|
|
import cfg from "../quartz.config"
|
|
import { Argv, BuildCtx } from "./util/ctx"
|
|
import { FilePath, FullSlug } from "./util/path"
|
|
import { createFileParser, createProcessor } from "./processors/parse"
|
|
import { options } from "./util/sourcemap"
|
|
|
|
// only called from worker thread
|
|
export async function parseFiles(argv: Argv, fps: FilePath[], allSlugs: FullSlug[]) {
|
|
const ctx: BuildCtx = {
|
|
cfg,
|
|
argv,
|
|
allSlugs,
|
|
}
|
|
const processor = createProcessor(ctx)
|
|
const parse = createFileParser(ctx, fps)
|
|
return parse(processor)
|
|
}
|