Utilities to execute Node.js scripts.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static NodeJSExecSpec |
configureSpecFromExtensions(NodeJSExecSpec execSpec, NodeJSExtension nodeJS)Configures an NodeJSExecSpec from a NodeJSExtension. |
|
static java.util.Map<java.lang.String, java.lang.Object> |
getDefaultEnvironment()Minimum default environment to use when running node |
|
static org.gradle.process.ExecResult |
runNode(org.gradle.api.Project project, NodeJSExecSpec execSpec)Runs Node.JS scripts given a fully-configured execution specification. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Configures an NodeJSExecSpec from a NodeJSExtension.
execSpec - Execution specification to configure.nodeJS - NodeJS extension to consult during configuration Minimum default environment to use when running node
Runs Node.JS scripts given a fully-configured execution specification.
project - The project in which context this execution will be performed.