Class WindowsInstallationLayout
java.lang.Object
com.brunoritz.gradle.singularnode.platform.layout.InstallationLayout
com.brunoritz.gradle.singularnode.platform.layout.WindowsInstallationLayout
The installation layout for Windows systems. On Windows, most commands either contain a
.exe or .cmd
extension and are sometimes located in slightly different directories.-
Method Summary
Modifier and TypeMethodDescriptionReturns the directory containing the NodeJS executable.pathOfBundledCliScript(String scriptName) Returns the full path of a bundled NPM CLI script.Returns the full path to the bundled NPM script.Returns the full path to the bundled NPX script.Returns the full path to the NPM installation managed by this plugin.Returns the full path to the PNPM installation managed by this plugin.Returns the full path to the Yarn installation managed by this plugin.Returns the full path of the executable representing the NodeJS engine.Methods inherited from class com.brunoritz.gradle.singularnode.platform.layout.InstallationLayout
nodeJsInstallDir, npmInstallDirectory, pnpmInstallDirectory, yarnInstallDirectory
-
Method Details
-
nodeJsBinDirectory
Description copied from class:InstallationLayoutReturns 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:
nodeJsBinDirectoryin classInstallationLayout
-
pathOfNodeExecutable
Description copied from class:InstallationLayoutReturns the full path of the executable representing the NodeJS engine.- Specified by:
pathOfNodeExecutablein classInstallationLayout
-
pathOfBundledNpmScript
Description copied from class:InstallationLayoutReturns 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:
pathOfBundledNpmScriptin classInstallationLayout
-
pathOfBundnledNpxScript
Description copied from class:InstallationLayoutReturns 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:
pathOfBundnledNpxScriptin classInstallationLayout
-
pathOfBundledCliScript
Description copied from class:InstallationLayoutReturns the full path of a bundled NPM CLI script. Such files reside within thenode_modulesdirectory bundled with the NodeJS installation. The name of the script file itself is<scriptName>-cli.js.- Specified by:
pathOfBundledCliScriptin classInstallationLayout- Parameters:
scriptName- The script's name without thecli-jssuffix
-
pathOfManagedNpmScript
Description copied from class:InstallationLayoutReturns 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:
pathOfManagedNpmScriptin classInstallationLayout
-
pathOfManagedYarnScript
Description copied from class:InstallationLayoutReturns 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:
pathOfManagedYarnScriptin classInstallationLayout
-
pathOfManagedPnpmScript
Description copied from class:InstallationLayoutReturns 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:
pathOfManagedPnpmScriptin classInstallationLayout
-