public interface JsePnpmToolchain extends org.ysb33r.gradle.jsecosystem.toolchains.JseBootstrappableToolchainWithCommandExecSpec<JsePnpmExecSpec>
| Modifier and Type | Method and Description |
|---|---|
void |
executableByPackageJson(java.lang.Object pathToPackageJson)
Reads the
package.json file and extracts the pnpm version. |
void |
executableByPackageJsonWithNode(java.lang.Object pathToPackageJson)
Like
executableByPackageJson(Object) but also inspects the file for the node version in the
devEngines.runtime section. |
void |
executableByPackageJsonWithNvmRc(java.lang.Object pathToPackageJson,
java.lang.Object pathToNvmRc)
Like
executableByPackageJson(Object), but reads the node version from the .nvmrc file. |
org.gradle.api.provider.Provider<java.io.File> |
getNodeBinDir()
Directory where
node is located. |
org.gradle.api.provider.Provider<java.lang.String> |
getNodeVersion()
The version of
node that is associated with this toolchain. |
org.gradle.api.provider.Provider<java.io.File> |
getStoreDir()
Get the location of the store directory.
|
org.gradle.api.provider.Provider<org.ysb33r.gradle.jse.pnpm.toolchains.JsePnpmStoreLayout> |
getStoreLayout()
A provider to the store layout.
|
void |
setStoreDir(java.lang.Object storeDir)
Override the store directory.
|
void |
withNodeToolchain(org.gradle.api.provider.Provider<? extends org.ysb33r.gradle.jse.node.toolchains.JseNodeToolchain> tc)
Associate this toolchain with a specific
node toolchain. |
void |
withNodeToolchain(java.lang.String tcName)
Associate this toolchain with a specific
node toolchain. |
void |
withPnpmNode()
Have
pnpm manage its own node installation. |
void |
withPnpmNode(java.lang.Object ver)
Have
pnpm manage its own node installation. |
executableByVersioncreateExecSpec, createExecSpecgetExecutableVersionvoid executableByPackageJson(java.lang.Object pathToPackageJson)
package.json file and extracts the pnpm version.
The package.json file must contain a devEngines.packageManager section for pnpm.
pathToPackageJson - Path to package.json file. File must exist.void executableByPackageJsonWithNode(java.lang.Object pathToPackageJson)
executableByPackageJson(Object) but also inspects the file for the node version in the
devEngines.runtime section.pathToPackageJson - Path to package.json file. File must exist.void executableByPackageJsonWithNvmRc(java.lang.Object pathToPackageJson,
java.lang.Object pathToNvmRc)
executableByPackageJson(Object), but reads the node version from the .nvmrc file.pathToPackageJson - Path to package.json file. File must exist.pathToNvmRc - Path to .nvmrc file. File must exist.void withNodeToolchain(java.lang.String tcName)
node toolchain.tcName - Name of toolchain.void withNodeToolchain(org.gradle.api.provider.Provider<? extends org.ysb33r.gradle.jse.node.toolchains.JseNodeToolchain> tc)
node toolchain.tc - Provider of toolchain.void withPnpmNode()
pnpm manage its own node installation.
The version of node is a default determined by the plugin.
void withPnpmNode(java.lang.Object ver)
pnpm manage its own node installation.ver - {code node} version string. Must be in semantic version format.org.gradle.api.provider.Provider<java.io.File> getNodeBinDir()
node is located.
This value will be finalized on the first read.
void setStoreDir(java.lang.Object storeDir)
By default, this is ~/.gradle/caches/pnpm.
On Windows, if the build runs on a different drive than the user's home Gradle directory, a directory
.gradle/caches/pnpm will be created on that drive.
storeDir - New location of store directory.org.gradle.api.provider.Provider<java.io.File> getStoreDir()
null.org.gradle.api.provider.Provider<org.ysb33r.gradle.jse.pnpm.toolchains.JsePnpmStoreLayout> getStoreLayout()
null or empty.org.gradle.api.provider.Provider<java.lang.String> getNodeVersion()
node that is associated with this toolchain.node toolchain has not yet been configured.