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.2.13/project.ts";

Constructors

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

Properties

readonly
appRoot: string
readonly
buildDir
readonly
config: Readonly<Required<Config>>
readonly
importMap: Readonly<{ imports: Record<string, string>; }>
readonly
isDev
readonly
mode: "development" | "production"
readonly
ready: Promise<void>
readonly
srcDir

Methods

private
_compile(url: string, options?: { sourceCode?: string; forceCompile?: boolean; forceTarget?: string; })
private
_createMainModule(): Promise<Module>
private
_getRouteModule(unnamed 0: Module): RouteModule
private
_init(reload: boolean)
private
_loadConfig()
private
_lookupAsyncDeps(
moduleID: string,
__deps?: { url: string; hash: string; async?: boolean; }[],
__tracing?: Set<string>,
)
private
_moduleFromURL(url: string): Module
private
_renderPage(loc: { pathname: string; search?: 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<APIHandler | null>
getModule(id: string): Module | null
getModuleByPath(pathname: string): Module | null
getPageHtml(loc: { pathname: string; search?: string; }): Promise<[number, string, Record<string, string> | null]>
getSSRData(loc: { pathname: string; search?: string; }): Promise<[number, any]>
isHMRable(moduleID: string)
isSSRable(pathname: string): boolean