Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddDenoApp

Method
📦 Aspire.Hosting.JavaScript v17.0.0
func (DistributedApplicationBuilder) AddDenoApp(
name string,
appDirectory string,
scriptPath string,
) DenoAppResource

Signature

methodAddDenoAppbuilder
Adds a Deno application to the application model. Deno should be available on the PATH.
AddDenoApp(
name string,
appDirectory string,
scriptPath string,
) DenoAppResource
namestringThe name of the resource.
appDirectorystringThe path to the directory containing the Deno application.
scriptPathstringThe path to the script (for example, main.ts) relative to appDirectory to run.
DenoAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder