Package 

Class VariantComputer

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • VariantComputer

        VariantComputer()
    • 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.

      • computePnpmBinDir

         final Provider<Directory> computePnpmBinDir(Provider<Directory> pnpmDirProvider, Property<Platform> platform)
      • computeYarnBinDir

         final Provider<Directory> computeYarnBinDir(Provider<Directory> yarnDirProvider, Property<Platform> platform)
      • computeBunBinDir

         final Provider<Directory> computeBunBinDir(Provider<Directory> bunDirProvider, Property<Platform> platform)
      • 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