NpmExecTask
Summary
Basic task for executing various npm commands. Extends NodeExecTask and provides access to npm executable.
The task can be created and configured in a build.gradle.kts
file by registering it with correct type.
build.gradle.kts | |
---|---|
Properties
Property | Type | Default | When Kotlin plugin is present |
---|---|---|---|
npm |
RegularFileProperty | $nodeHome/bin/npm |
Property | CLI | System/Gradle | Environment |
---|---|---|---|
npm
Direct npm executable.