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
-
ResourceExecutableResourceNpmCommandResource
- Implements
-
IResourceWithEnvironmentIResourceWithArgsIResourceWithEndpointsIResourceWithWaitSupportIResourceWithProbesIComputeResourceIResource
- Inherited Members
-
ExecutableResource.CommandExecutableResource.WorkingDirectoryResource.NameResource.Annotations
Constructors
NpmCommandResource(string, string, string)
A resource that represents an npm script runner.
public NpmCommandResource(string name, string workingDirectory, string scriptName)
Parameters
namestringThe name of the resource.
workingDirectorystringThe working directory to use for the command.
scriptNamestringThe npm script name to run.
Properties
ScriptName
Gets the npm script name to run. For example, "build".
public string ScriptName { get; }