API
Demo
@alinea/cli
export function
generate
(
options
:
GenerateOptions
)
:
Promise
<
void
>
export type
GenerateOptions
=
{
configFile
:
string
cwd
:
string
quiet
:
boolean
staticDir
:
string
wasmCache
:
boolean
watch
:
|
boolean
|
WatchMode
}
export function
init
(
options
:
InitOptions
)
:
Promise
<
void
>
export type
InitOptions
=
{
cwd
:
string
quiet
:
boolean
}
export function
serve
(
options
:
ServeOptions
)
:
Promise
<
void
>
export type
ServeOptions
=
{
buildOptions
:
BuildOptions
configFile
:
string
cwd
:
string
port
:
number
staticDir
:
string
}