Skip to main content
Module

x/aleph/cli/build.ts

The Full-stack Framework in Deno.
Very Popular
Go to Latest
File
export const helpMessage = `Usage: aleph build <dir> [...options]
<dir> represents the directory of Aleph.js app,if the <dir> is empty, the current directory will be used.
Options: -L, --log-level Set log level [possible values: debug, info] -r, --reload Reload source code cache -h, --help Prints help message`
export default async function (appDir: string, options: Record<string, string | boolean>) { const { Project } = await import('../project.ts') const project = new Project(appDir, 'production', Boolean(options.r || options.reload)) await project.build() Deno.exit(0)}