[Gradle, JS] Add test on node js single platform project

^KT-40527 fixed
This commit is contained in:
Ilya Goncharov
2020-07-21 14:59:09 +03:00
parent cb60b9e59c
commit af367b01ec
9 changed files with 86 additions and 3 deletions
@@ -0,0 +1,22 @@
plugins {
id 'org.jetbrains.kotlin.js' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test-js'
}
kotlin {
js {
nodejs {
binaries.executable()
}
}
}
@@ -0,0 +1,22 @@
plugins {
kotlin("js") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
testImplementation(kotlin("test-js"))
}
kotlin {
js {
nodejs {
binaries.executable()
}
}
}
@@ -0,0 +1,11 @@
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
maven {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
}
rootProject.name = 'generatedProject'
@@ -0,0 +1,11 @@
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
maven {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
}
rootProject.name = "generatedProject"
@@ -0,0 +1,5 @@
kotlin:
projectKind: js
modules:
- type: jsNodeSinglePlatform
name: a