import { Project } from "https://dotland.deno.dev/x/aleph@v0.2.24/project.ts";
A Project to manage the Aleph.js appliaction. core functions include:
- compile source code
- manage deps
- apply plugins
- map page/API routes
- watch file changes
- call APIs
- SSR/SSG
Properties
readonly
config: Readonly<Required<Config>> & { __file?: string; }Methods
private
_compile(url: string, options?: { forceCompile?: boolean; forceTarget?: string; })private
_createMainModule(): Promise<Module>private
_getRouteModule(unnamed 0: Module): RouteModuleprivate
_init(reload: boolean)private
_loadConfig()private
_lookupDeps(moduleID: string,
__deps?: Dep[],
__tracing?: Set<string>,
private
_moduleFromURL(url: string): Moduleprivate
_render404Page(url?: RouterURL)private
_renderLoadingPage()private
_renderPage(loc: { pathname: string; search?: string; })private
_resolveImportURL(importer: Module, url: string): stringprivate
_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