-
- All Implemented Interfaces:
public class VariantComputer
-
-
Constructor Summary
Constructors Constructor Description VariantComputer()
-
Method Summary
Modifier and Type Method Description final Provider<Directory>
computeNodeBinDir(Provider<Directory> nodeDirProvider, Property<Platform> platform)
Get the expected node binary directory, taking Windows specifics into account. final Provider<String>
computeNodeExec(NodeExtension nodeExtension, Provider<Directory> nodeBinDirProvider)
Get the expected node binary name, node.exe on Windows and node everywhere else. final Provider<Directory>
computeNpmDir(NodeExtension nodeExtension, Provider<Directory> nodeDirProvider)
Get the expected directory for a given npm version. final Provider<Directory>
computeNpmBinDir(Provider<Directory> npmDirProvider, Property<Platform> platform)
Get the expected npm binary directory, taking Windows specifics into account. final Provider<String>
computeNpmExec(NodeExtension nodeExtension, Provider<Directory> npmBinDirProvider)
Get the expected node binary name, npm.cmd on Windows and npm everywhere else. final Provider<String>
computeNpxExec(NodeExtension nodeExtension, Provider<Directory> npmBinDirProvider)
Get the expected node binary name, npx.cmd on Windows and npx everywhere else. final Provider<Directory>
computePnpmDir(NodeExtension nodeExtension)
final Provider<Directory>
computePnpmBinDir(Provider<Directory> pnpmDirProvider, Property<Platform> platform)
final Provider<String>
computePnpmExec(NodeExtension nodeExtension, Provider<Directory> pnpmBinDirProvider)
final Provider<Directory>
computeYarnDir(NodeExtension nodeExtension)
final Provider<Directory>
computeYarnBinDir(Provider<Directory> yarnDirProvider, Property<Platform> platform)
final Provider<String>
computeYarnExec(NodeExtension nodeExtension, Provider<Directory> yarnBinDirProvider)
final Provider<Directory>
computeBunDir(NodeExtension nodeExtension)
final Provider<Directory>
computeBunBinDir(Provider<Directory> bunDirProvider, Property<Platform> platform)
final Provider<String>
computeBunExec(NodeExtension nodeExtension, Provider<Directory> bunBinDirProvider)
final Provider<String>
computeBunxExec(NodeExtension nodeExtension, Provider<Directory> bunBinDirProvider)
Get the expected bunx binary name, bunx.cmd on Windows and bunx everywhere else. final Provider<String>
computeNodeArchiveDependency(NodeExtension nodeExtension)
Get the node archive name in Gradle dependency format, using zip for Windows and tar.gz everywhere else. -
-
Method Detail
-
computeNodeBinDir
final Provider<Directory> computeNodeBinDir(Provider<Directory> nodeDirProvider, Property<Platform> platform)
Get the expected node binary directory, taking Windows specifics into account.
-
computeNodeExec
@Deprecated(message = "replaced by package-level function", replaceWith = @ReplaceWith(imports = {}, expression = "com.github.gradle.node.variant.computeNodeExec(nodeExtension, nodeBinDirProvider)")) final Provider<String> computeNodeExec(NodeExtension nodeExtension, Provider<Directory> nodeBinDirProvider)
Get the expected node binary name, node.exe on Windows and node everywhere else.
-
computeNpmDir
final Provider<Directory> computeNpmDir(NodeExtension nodeExtension, Provider<Directory> nodeDirProvider)
Get the expected directory for a given npm version.
-
computeNpmBinDir
final Provider<Directory> computeNpmBinDir(Provider<Directory> npmDirProvider, Property<Platform> platform)
Get the expected npm binary directory, taking Windows specifics into account.
-
computeNpmExec
final Provider<String> computeNpmExec(NodeExtension nodeExtension, Provider<Directory> npmBinDirProvider)
Get the expected node binary name, npm.cmd on Windows and npm everywhere else.
Can be overridden by setting npmCommand.
-
computeNpxExec
final Provider<String> computeNpxExec(NodeExtension nodeExtension, Provider<Directory> npmBinDirProvider)
Get the expected node binary name, npx.cmd on Windows and npx everywhere else.
Can be overridden by setting npxCommand.
-
computePnpmDir
final Provider<Directory> computePnpmDir(NodeExtension nodeExtension)
-
computePnpmBinDir
final Provider<Directory> computePnpmBinDir(Provider<Directory> pnpmDirProvider, Property<Platform> platform)
-
computePnpmExec
final Provider<String> computePnpmExec(NodeExtension nodeExtension, Provider<Directory> pnpmBinDirProvider)
-
computeYarnDir
final Provider<Directory> computeYarnDir(NodeExtension nodeExtension)
-
computeYarnBinDir
final Provider<Directory> computeYarnBinDir(Provider<Directory> yarnDirProvider, Property<Platform> platform)
-
computeYarnExec
final Provider<String> computeYarnExec(NodeExtension nodeExtension, Provider<Directory> yarnBinDirProvider)
-
computeBunDir
final Provider<Directory> computeBunDir(NodeExtension nodeExtension)
-
computeBunBinDir
final Provider<Directory> computeBunBinDir(Provider<Directory> bunDirProvider, Property<Platform> platform)
-
computeBunExec
final Provider<String> computeBunExec(NodeExtension nodeExtension, Provider<Directory> bunBinDirProvider)
-
computeBunxExec
final Provider<String> computeBunxExec(NodeExtension nodeExtension, Provider<Directory> bunBinDirProvider)
Get the expected bunx binary name, bunx.cmd on Windows and bunx everywhere else.
Can be overridden by setting bunxCommand.
-
computeNodeArchiveDependency
@Deprecated(message = "replaced by package-level function", replaceWith = @ReplaceWith(imports = {}, expression = "com.github.gradle.node.variant.computeNodeArchiveDependency(nodeExtension)")) final Provider<String> computeNodeArchiveDependency(NodeExtension nodeExtension)
Get the node archive name in Gradle dependency format, using zip for Windows and tar.gz everywhere else.
Essentially: org.nodejs:node:$version:$osName-$osArch@tar.gz
-
-
-
-