public class NpmExecSpec extends org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec
Base specification for running an NPM command via npm-cli.js
For simplicity Gradle executes npm-cli.js directly rather
than use yet another indirection of the npm shell script.
| Fields inherited from class | Fields |
|---|---|
class org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec |
COMMAND_BLOCK |
| Constructor and description |
|---|
NpmExecSpec
(Provider<File> nodeLocation, Provider<File> npmCliJsLocation, org.ysb33r.grolifant5.api.core.ConfigCacheSafeOperations ccso)Constructs the execution specification. |
NpmExecSpec
(Provider<File> nodeLocation, Provider<File> npmCliJsLocation, org.ysb33r.grolifant5.api.core.ProjectOperations projectOperations)Construct class and attach it to specific project. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public org.ysb33r.grolifant5.api.core.executable.CommandEntryPoint |
getCmd()Get direct access to the org.ysb33r.grolifant5.api.core.executable.CommandEntryPoint instance. |
|
public org.ysb33r.grolifant5.api.core.runnable.ExecOutput |
submitAsExec() |
|
public org.ysb33r.grolifant5.api.core.runnable.ExecOutput |
submitAsExec(Action<ExecSpec> additionalConfiguration) |
| Methods inherited from class | Name |
|---|---|
class org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec |
org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#cmd(org.gradle.api.Action), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#cmd(groovy.lang.Closure), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#getCmd(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#process(groovy.lang.Closure), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#process(org.gradle.api.Action), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#getEntrypoint(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#getRunnerSpec(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#submitAsExec(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#submitAsExec(org.gradle.api.Action), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#runnerSpec(groovy.lang.Closure), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#runnerSpec(org.gradle.api.Action), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#entrypoint(groovy.lang.Closure), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#entrypoint(org.gradle.api.Action), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#getProcess(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#copyTo(org.gradle.process.ExecSpec), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#equals(java.lang.Object), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#toString(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#hashCode(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#getClass(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#notify(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#notifyAll(), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#wait(long), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#wait(long, int), org.ysb33r.grolifant5.api.core.runnable.AbstractCommandExecSpec#wait() |
Constructs the execution specification.
nodeLocation - Provider to the location of node executable.npmCliJsLocation - Provider to location of npm-cli.js.ccso - Project this exec spec is attached.Construct class and attach it to specific project.
nodeLocation - Provider to the location of node executable.npmCliJsLocation - Provider to location of npm-cli.js.projectOperations - Project this exec spec is attached.Get direct access to the org.ysb33r.grolifant5.api.core.executable.CommandEntryPoint instance.