Skip to main content

Type Alias: AppConfig

AppConfig = object

Defined in: cli/app-config.ts:5

A configuration of a Single Page Application built on top GoatDB.

Properties

PropertyTypeDescriptionDefined in
appName?stringApplication name. Extracted from the "name" field of the project's deno.json or package.json.cli/app-config.ts:68
assetsFilter?(path) => booleanAn optional filter function for filtering only selected files out of the assets directory. The default implementation ignores files starting with '.'.cli/app-config.ts:50
assetsPath?stringPath to a directory containing static assets. If provided, all files under it will be bundled into the application and be publicly accessible through the web server. Accessible at /assets/*.cli/app-config.ts:40
buildDirstringThe directory in which to perform the build process. Intermediate files as well as the final binary will be placed there.cli/app-config.ts:10
cssPath?stringPath to the main CSS file for the app. Accessible at /index.css.cli/app-config.ts:32
denoJson?stringPath to deno.json. Defaults to 'deno.json' inside the current directory.cli/app-config.ts:54
htmlPath?stringPath to the main HTML file for the app. If provided, all unknown paths will be redirected to this HTML file. Accessible at /index.html.cli/app-config.ts:26
jsPathstringPath to the main js entry point for the client app. The server automatically transpiles the client code for the browser code using ESBuild. Supported files: .js .jsx .ts .tsx. Accessible at /app.jscli/app-config.ts:19
minify?booleanIf set to true, the output code bundle will be minified.cli/app-config.ts:63
packageJson?stringPath to package.json (Node.js). Defaults to 'package.json' inside the current directory.cli/app-config.ts:59