Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDenoTask

Method
📦 Aspire.Hosting.JavaScript v17.0.0
func (DenoAppResource) WithDenoTask(taskName string) DenoAppResource

Signature

methodWithDenoTaskbuilder
Selects the deno task <taskName> mode, running a task defined in deno.json instead of a script entrypoint. Permissions are defined by the task itself and are not emitted for this mode.
WithDenoTask(taskName string) DenoAppResource
taskNamestringThe name of the task in deno.json to run.
DenoAppResource

The resource builder.

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

Applies to

This method applies to the following types: