Class NpmCommandResource

Namespace
Aspire.Hosting.ApplicationModel
Assembly
IEvangelist.Aspire.Hosting.Netlify.dll

A resource that represents an npm script runner.

[AspireExport(ExposeProperties = true)]
public class NpmCommandResource : ExecutableResource, IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IResourceWithProbes, IComputeResource, IResource
Inheritance
Resource
ExecutableResource
NpmCommandResource
Implements
IResourceWithEnvironment
IResourceWithArgs
IResourceWithEndpoints
IResourceWithWaitSupport
IResourceWithProbes
IComputeResource
IResource
Inherited Members
ExecutableResource.Command
ExecutableResource.WorkingDirectory
Resource.Name
Resource.Annotations

Constructors

NpmCommandResource(string, string, string)

A resource that represents an npm script runner.

public NpmCommandResource(string name, string workingDirectory, string scriptName)

Parameters

name string

The name of the resource.

workingDirectory string

The working directory to use for the command.

scriptName string

The npm script name to run.

Properties

ScriptName

Gets the npm script name to run. For example, "build".

public string ScriptName { get; }

Property Value

string