[Gradle, JS] Add test on css and migrate one test on groovy dsl
#KT-32721 fixed
This commit is contained in:
+1
@@ -5,6 +5,7 @@ plugins {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("stdlib-js"))
|
implementation(kotlin("stdlib-js"))
|
||||||
implementation(project(":lib"))
|
implementation(project(":lib"))
|
||||||
|
implementation(npm(projectDir.resolve("src/main/css")))
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
body {
|
||||||
|
background-color: aliceblue;
|
||||||
|
}
|
||||||
+3
@@ -6,5 +6,8 @@
|
|||||||
package com.example
|
package com.example
|
||||||
|
|
||||||
fun main() {
|
fun main() {
|
||||||
|
require("css/main.css")
|
||||||
println("Sheldon: ${sheldon()}")
|
println("Sheldon: ${sheldon()}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
external fun require(o: String)
|
||||||
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("js").version("<pluginMarkerVersion>")
|
id("org.jetbrains.kotlin.js") version "<pluginMarkerVersion>"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("stdlib-js"))
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-js")
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
Reference in New Issue
Block a user