class Appliactionimport { Appliaction } from "https://deno.land/x/aleph@v0.3.0-alpha.1/server/app.ts"; The Aleph Server Appliaction class. ConstructorsnewAppliaction(workingDir?,mode?: "development" | "production",reload?,)PropertiesreadonlybuildDirreadonlyconfig: Readonly<Required<Config>>readonlyimportMap: ImportMapreadonlyisDevreadonlymode: "development" | "production"readonlyoutputDirreadonlyready: Promise<void>readonlysrcDirreadonlyworkingDir: stringMethodsprivatebundle()bundle modules for production. privatecompile(url: string, options?: { sourceCode?: string; forceCompile?: boolean; bundleMode?: boolean; bundledModules?: string[]; }): Promise<Module>download and compile a moudle by given url, then cache on the disk. privatecopyDist()privatecreateChunkBundle(name: string, list: string[])create chunk bundle. privatecreateMainModule(): Promise<void>create re-compiled main module. privatecreatePageBundle(mod: Module, bundledModules: string[])create page bundle. privatefixImportUrl(importUrl: string): stringfix import url privategetRouteModule(unnamed 0: Module): RouteModulereturns the route module by given module. privategetScripts()privateinit(reload: boolean)initialize project privateisSSRable(pathname: string): booleancheck a page whether is ssrable. privateloadConfig()load config from aleph.config.(ts|js|json) privateloadDependency(url: string): Promise<Uint8Array>load dependency content, use deno builtin cache system privatelookupDeps(url: string,__deps?: DependencyDescriptor[],__tracing?: Set<string>,)lookup deps recurively. privatenewModule(url: string): Modulecreate a new module by given url. privateoptimize()optimize for production. privatepreprocessCSS(sourceCode: string)preprocess css with postcss plugins privaterender404Page(url?: RouterURL)render custom 404 page. privaterenderLoadingPage()render custom loading page for SPA mode. privaterenderPage(loc: { pathname: string; search?: string; })render page base the given location. privaterunDenoBundle(bundlingFile: string,bundleFile: string,header?,reload?,)run deno bundle and compess the output with terser. privatessg()render all pages in routing. privatetranspile(sourceCode: string, options: TransformOptions)transpile code without types checking. privateupdateHash(depUrl: string,depHash: string,callback: (mod: Module) => void,)update module hash since the dependency changed. privatewatch()watch file changes, re-compile modules and send HMR signal. addPageModule(pathname: string, code: string): Promise<void>add a new page module by given path and source code. build()build the application to a static site(SSG) createFSWatcher(): EventEmittergetModule(url: string): Module | nullreturns the module by given url. getPageHtml(loc: { pathname: string; search?: string; }): Promise<[number, string, Record<string, string> | null]>getSPAIndexHtml()getSSRData(loc: { pathname: string; search?: string; }): Promise<[number, any]>handleAPI(req: ServerRequest, loc: { pathname: string; search?: string; })injectHMRCode(unnamed 0: Module, content: string): stringinject HMR code isHMRable(url: string)removeFSWatcher(e: EventEmitter)removePageModule(pathname: string): Promise<void>add a new page module by given path and source code.