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-beta.1/mod.ts";

Constructors

new
Builder(context: BuildContext, options?: BuilderOptions)

Properties

entrypoints: Map<string, Entrypoint>
importMap: ImportMap
log: Logger

Methods

addEntrypoint(name: string, config: EntrypointConfig)
build(buildSources: 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(name: string)

Returns a Map with the key being the original relative path and the value being the content hashed relative path.

isCompilable(source: IFile): boolean
isHashable(source: IFile): boolean
isIgnored(source: IFile): boolean
setEntrypoints(entrypoints: BuilderEntrypoints)
toManifest(sources: FileBag, unnamed 1?: { ignore?: string[]; prefix?: string; } | undefined)