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

Constructors

new
Builder(context: BuildContext)

Properties

private
hasCopied: boolean
private
isValid: boolean
compiled: RegExp[]
dynamicImportIgnored: RegExp[]
entrypoints: Map<string, EntrypointConfig>
hashed: RegExp[]
ignored: RegExp[]
importMap: ImportMap
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)
globToRegExp(pattern: string, options?: GlobToRegExpOptions)
isCompilable(source: IFile): boolean
isEntrypoint(source: IFile): boolean
isHashable(source: IFile): boolean
isIgnored(source: IFile): boolean
setCompiled(paths: string[])
setDynamicImportIgnored(paths: string[])
setEntrypoints(entrypoints: BuilderEntrypoints)
setHashed(paths: string[])
setIgnored(paths: string[])

Allows ignoring certain files from the build process, they won't be copied to the build output directory, so no further processing will occur on them.

toManifest(sources: FileBag, unnamed 1?: { ignore?: string[]; prefix?: string; } | undefined)