Class UnixInstallationLayout

java.lang.Object
com.brunoritz.gradle.singularnode.platform.layout.InstallationLayout
com.brunoritz.gradle.singularnode.platform.layout.UnixInstallationLayout

public class UnixInstallationLayout extends InstallationLayout
The installation layout for Unix and compabible systems (macOs, Linux).
  • Method Details

    • nodeJsBinDirectory

      public File nodeJsBinDirectory()
      Description copied from class: InstallationLayout
      Returns the directory containing the NodeJS executable. Not that this might not be a subdirectory of the installation directory, but just the installation directory itse.f
      Specified by:
      nodeJsBinDirectory in class InstallationLayout
    • pathOfNodeExecutable

      public File pathOfNodeExecutable()
      Description copied from class: InstallationLayout
      Returns the full path of the executable representing the NodeJS engine.
      Specified by:
      pathOfNodeExecutable in class InstallationLayout
    • pathOfBundledNpmScript

      public File pathOfBundledNpmScript()
      Description copied from class: InstallationLayout
      Returns the full path to the bundled NPM script. Note that this is not the managed version and should only be used for installing the desired version of NPM. The file returned is (depending on the platform) just a symlink to the actual CLI script.
      Specified by:
      pathOfBundledNpmScript in class InstallationLayout
    • pathOfBundnledNpxScript

      public File pathOfBundnledNpxScript()
      Description copied from class: InstallationLayout
      Returns the full path to the bundled NPX script. Note that this is not the managed version and should only be used or installing the desired version of NPX.
      Specified by:
      pathOfBundnledNpxScript in class InstallationLayout
    • pathOfBundledCliScript

      public File pathOfBundledCliScript(String scriptName)
      Description copied from class: InstallationLayout
      Returns the full path of a bundled NPM CLI script. Such files reside within the node_modules directory bundled with the NodeJS installation. The name of the script file itself is <scriptName>-cli.js.
      Specified by:
      pathOfBundledCliScript in class InstallationLayout
      Parameters:
      scriptName - The script's name without the cli-js suffix
    • pathOfManagedNpmScript

      public File pathOfManagedNpmScript()
      Description copied from class: InstallationLayout
      Returns the full path to the NPM installation managed by this plugin. This is the verison of PNPM to be used for all PNPM invocations except for installing the managed version itself.
      Specified by:
      pathOfManagedNpmScript in class InstallationLayout
    • pathOfManagedYarnScript

      public File pathOfManagedYarnScript()
      Description copied from class: InstallationLayout
      Returns the full path to the Yarn installation managed by this plugin. This is the verison of Yarn to be used for all Yarn invocations except for installing the managed version itself.
      Specified by:
      pathOfManagedYarnScript in class InstallationLayout
    • pathOfManagedPnpmScript

      public File pathOfManagedPnpmScript()
      Description copied from class: InstallationLayout
      Returns the full path to the PNPM installation managed by this plugin. This is the verison of PNPM to be used for all PNPM invocations except for installing the managed version itself.
      Specified by:
      pathOfManagedPnpmScript in class InstallationLayout