devNpm
Creates a dependency to a NPM module that is added to devDependencies.
Note: The created dependency should be manually added to this entity using other methods from this DSL:
kotlin.sourceSets["jsMain"].dependencies {
implementation(devNpm("is-odd-even", "1.1.0"))
}
This is only relevant for Kotlin entities that target only KotlinPlatformType.js or KotlinPlatformType.wasm.
Parameters
The NPM dependency name
The NPM dependency version
Creates a dependency to a NPM module that is added to devDependencies.
Note: The created dependency should be manually added to this entity using other methods from this DSL:
kotlin.sourceSets["jsMain"].dependencies {
implementation(devNpm("is-odd-even", project.file("npm/is-odd-even")))
}
This is only relevant for Kotlin entities that target only KotlinPlatformType.js or KotlinPlatformType.wasm.
Parameters
The NPM dependency name
The directory where dependency files are located (See NPM directory keyword)
Creates a dependency to a NPM module that is added to devDependencies. The name of the dependency is derived either from the package.json
file located in the directory or the directory name itself.
Note: The created dependency should be manually added to this entity using other methods from this DSL:
kotlin.sourceSets["jsMain"].dependencies {
implementation(devNpm(project.file("npm/is-odd-even")))
}
This is only relevant for Kotlin entities that target only KotlinPlatformType.js or KotlinPlatformType.wasm.
Parameters
The directory where dependency files are located (See NPM directory keyword)