Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mesozoic/lib/builder.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.1/lib/builder.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

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
toManifest(sources: FileBag, unnamed 1?: { ignore?: string[]; prefix?: string; } | undefined)