Skip to main content
Module

x/aleph/project.ts>Project

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

Constructors

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

Properties

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

Methods

private
_compile(url: string, options?: { sourceCode?: string; forceCompile?: boolean; })
private
_createMainModule(): Promise<Module>
private
_getPageModule(unnamed 0: Module)
private
_init()
private
_loadConfig()
private
_lookupStyleDeps(
moduleID: string,
a?: { url: string; hash: string; async?: boolean; }[],
s?: Set<string>,
)
private
_moduleFromURL(url: string): Module
private
_renderPage(url: RouterURL, pageModuleTree: { id: string; hash: string; }[])
private
_rewriteImportPath(
mod: Module,
importPath: string,
async?: boolean,
): string
private
_updateDependency(
depPath: string,
depHash: string,
callback: (mod: Module) => void,
tracing?,
)
private
_watch()
callAPI(req: ServerRequest, loc: { pathname: string; search?: string; }): Promise<APIHandle | null>
getModule(id: string): Module | null
getModuleByPath(pathname: string): Module | null
getPageHtml(loc: { pathname: string; search?: string; }): Promise<[number, string]>
isHMRable(moduleID: string)