Skip to main content
Module

x/aleph/project.ts>default

The Full-stack Framework in Deno.
Very Popular
Go to Latest
class default
import { default } from "https://deno.land/x/aleph@v0.1.1/project.ts";

Constructors

new
default(dir: string, mode: "development" | "production")

Properties

readonly
apiPaths
readonly
buildDir
readonly
config: Config
readonly
isDev
readonly
mode: "development" | "production"
readonly
ready: Promise<void>
readonly
rootDir: string
readonly
srcDir

Methods

private
_clearPageRenderCache(moduleId?: string)
private
_compile(url: string, options?: { sourceCode?: string; implicitDeps?: { url: string; hash: string; }[]; forceCompile?: boolean; })
private
_createMainModule(): Promise<Module>
private
_init()
private
_loadConfig()
private
_newModule(url: string): Module
private
_removePageModule(moduleId: string)
private
_renderPage(url: RouterURL)
private
_rewriteImportPath(mod: Module, importPath: string): string
private
_updateDependency(
depPath: string,
depHash: string,
callback: (mod: Module) => void,
trace?: Set<string>,
)
private
_watch()
getAPIHandle(path: string): Promise<APIHandle | null>
getModule(id: string): Module | null
getModuleByPath(pathname: string): Module | null
getPageHtml(location: Location): Promise<[number, string]>
isHMRable(moduleId: string)