class default
extends EventEmitter
import { default } from "https://deno.land/x/pagic@v1.6.2/src/Pagic.ts";
Constructors
new
default(config?: Partial<PagicConfig>)Properties
private
runtimeConfig: Partial<PagicConfig>config: PagicConfig
pagePropsMap: Record<string, PageProps>
A map stored all pageProps
projectConfig: Partial<PagicConfig>
Methods
private
handleFileChange(filePaths: string[])private
initConfig()Deep merge defaultConfig, projectConfig and runtimeConfig, then sort plugins
private
initPaths()private
rebuild()private
runPlugins()private
serve()private
watch()build()
getConfig(pagePath?: string)