Object NodeCommandsExtension
-
- All Implemented Interfaces:
public class NodeCommandsExtensionThe extension for Node commands for ShellScript.
-
-
Field Summary
Fields Modifier and Type Field Description public final static NodeCommandsExtensionINSTANCE
-
Method Summary
Modifier and Type Method Description final StringnodeVersion(ShellScript $self, Project project)Get the version of installed Node. final StringnpmInstall(ShellScript $self, Project project)Install the dependencies. final StringnodeCommand(ShellScript $self, Project project, String arguments)Run the Node command. final StringnpmCommand(ShellScript $self, Project project, String arguments)Run the NPM command. final StringnpxCommand(ShellScript $self, Project project, String arguments)Run the NPX command. -
-
Method Detail
-
nodeVersion
final String nodeVersion(ShellScript $self, Project project)
Get the version of installed Node.
-
npmInstall
final String npmInstall(ShellScript $self, Project project)
Install the dependencies.
-
nodeCommand
final String nodeCommand(ShellScript $self, Project project, String arguments)
Run the Node command.
-
npmCommand
final String npmCommand(ShellScript $self, Project project, String arguments)
Run the NPM command.
-
npxCommand
final String npxCommand(ShellScript $self, Project project, String arguments)
Run the NPX command.
-
-
-
-