Object NodeCommandsExtension

  • All Implemented Interfaces:

    
    public class NodeCommandsExtension
    
                        

    The extension for Node commands for ShellScript.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String nodeVersion(ShellScript $self, Project project) Get the version of installed Node.
      final String npmInstall(ShellScript $self, Project project) Install the dependencies.
      final String nodeCommand(ShellScript $self, Project project, String arguments) Run the Node command.
      final String npmCommand(ShellScript $self, Project project, String arguments) Run the NPM command.
      final String npxCommand(ShellScript $self, Project project, String arguments) Run the NPX command.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.