[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 {
|
||||
implementation(kotlin("stdlib-js"))
|
||||
implementation(project(":lib"))
|
||||
implementation(npm(projectDir.resolve("src/main/css")))
|
||||
}
|
||||
|
||||
kotlin {
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
body {
|
||||
background-color: aliceblue;
|
||||
}
|
||||
+4
-1
@@ -6,5 +6,8 @@
|
||||
package com.example
|
||||
|
||||
fun main() {
|
||||
require("css/main.css")
|
||||
println("Sheldon: ${sheldon()}")
|
||||
}
|
||||
}
|
||||
|
||||
external fun require(o: String)
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
kotlin("js").version("<pluginMarkerVersion>")
|
||||
id("org.jetbrains.kotlin.js") version "<pluginMarkerVersion>"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib-js"))
|
||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-js")
|
||||
}
|
||||
|
||||
repositories {
|
||||
Reference in New Issue
Block a user