dependency

fun NpmDependencies.dependency(    name: String,     version: String,     type: NpmDependency.Type,     action: Action<NpmDependency> = Action { }): NamedDomainObjectProvider<NpmDependency>

Registers an arbitrary npm dependency for the package

Return

registered dependency

Parameters

name

of the dependency

version

of the dependency

type

of the dependency

action

to apply