public interface NodeJSExtensionMethods
| Modifier and Type | Method and Description |
|---|---|
void |
appendPath(org.gradle.api.provider.Provider<java.lang.String> postfix)
Add search to system path.
|
void |
environment(java.util.Map<java.lang.String,?> args)
Add environmental variables to be passed to the exe.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironment()
Environment for running the exe
|
org.gradle.api.provider.Provider<java.io.File> |
getExecutable()
A provider for a resolved executable.
|
org.gradle.api.provider.Provider<java.io.File> |
getNpmCliJsProvider()
Resolves a path to a
npm executable that is associated with the configured Node.js. |
void |
prefixPath(org.gradle.api.provider.Provider<java.lang.String> prefix)
Add search to system path
In the case of a task this will be prefixed to both the task and project extension's version
of the system path.
|
void |
setEnvironment(java.util.Map<java.lang.String,?> args)
Replaces current environment with new one.
|
void |
useSystemPath()
Adds the system path to the execution environment.
|
org.gradle.api.provider.Provider<java.io.File> getExecutable()
org.gradle.api.provider.Provider<java.io.File> getNpmCliJsProvider()
npm executable that is associated with the configured Node.js.npm executable.void setEnvironment(java.util.Map<java.lang.String,?> args)
args - New environment key-value map of properties.java.util.Map<java.lang.String,java.lang.String> getEnvironment()
Calling this will resolve all lazy-values in the variable map.
void environment(java.util.Map<java.lang.String,?> args)
args - Environmental variable key-value map.void useSystemPath()
void appendPath(org.gradle.api.provider.Provider<java.lang.String> postfix)
postfix - Provider of a path item that can be appended to the current system path.void prefixPath(org.gradle.api.provider.Provider<java.lang.String> prefix)
prefix - Provider of a path item that can be prefixed to the current system path.