Skip to main content
Module

x/mesozoic/mod.ts>Builder

A generic build system for Deno web apps
Go to Latest
class Builder
import { Builder } from "https://deno.land/x/mesozoic@v1.0.0-alpha.25/mod.ts";

Constructors

new
Builder(context: BuildContext)

Properties

private
hasCopied: boolean
private
importMap: ParsedImportMap
private
isValid: boolean
compiled: RegExp[]
entrypoints: Map<string, EntrypointConfig>
excluded: RegExp[]
hashed: RegExp[]
log: Logger

Methods

build(sources: FileBag): Promise<BuildResult>
compileSource(source: IFile): Promise<IFile>
copySource(source: IFile, destination?: string)
copySources(sources: FileBag, destination?: string)
gatherSources(from?: string)

Walk the root for SourceFiles obeying exclusion patterns

getEntrypoint(path: string)
isCompilable(source: IFile): boolean
isEntrypoint(source: IFile): boolean
isExcluded(source: IFile): boolean
isHashable(source: IFile): boolean
processSources(sources: FileBag, processor: (source: IFile) => Promise<IFile> | IFile)
resolveImportSpecifier(specifier: string, referrer?: URL)
setCompiled(paths: string[])
setEntrypoints(entrypoints: BuilderEntrypoints)
setExcluded(paths: string[])
setHashed(paths: string[])
toManifest(sources: FileBag, unnamed 1?: { exclude?: string[]; prefix?: string; } | undefined)