Extract module 'js.config' out of 'js.frontend'
This allows to get rid of dependency cli.common -> js.frontend.
This commit is contained in:
committed by
Alexander Udalov
parent
15d2a06132
commit
143aef938b
@@ -0,0 +1,13 @@
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("jps-compatible")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":compiler:frontend.common"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
}
|
||||
+1
-2
@@ -7,7 +7,6 @@ package org.jetbrains.kotlin.platform.js
|
||||
|
||||
import org.jetbrains.kotlin.platform.SimplePlatform
|
||||
import org.jetbrains.kotlin.platform.TargetPlatform
|
||||
import org.jetbrains.kotlin.platform.toTargetPlatform
|
||||
|
||||
abstract class JsPlatform : SimplePlatform("JS") {
|
||||
override val oldFashionedDescription: String
|
||||
@@ -35,4 +34,4 @@ object JsPlatforms {
|
||||
val allJsPlatforms: List<TargetPlatform> = listOf(defaultJsPlatform)
|
||||
}
|
||||
|
||||
fun TargetPlatform?.isJs(): Boolean = this?.singleOrNull() is JsPlatform
|
||||
fun TargetPlatform?.isJs(): Boolean = this?.singleOrNull() is JsPlatform
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("jps-compatible")
|
||||
@@ -10,6 +9,7 @@ dependencies {
|
||||
compile(project(":js:js.ast"))
|
||||
compile(project(":js:js.parser"))
|
||||
compile(project(":js:js.serializer"))
|
||||
compile(project(":js:js.config"))
|
||||
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
||||
compileOnly(intellijDep()) { includeJars("guava", rootProject = rootProject) }
|
||||
}
|
||||
@@ -18,4 +18,3 @@ sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user