mucking about with the data-model
This commit is contained in:
parent
513107b56a
commit
a63edb1c61
1 changed files with 43 additions and 37 deletions
|
|
@ -1,46 +1,52 @@
|
||||||
plugins {
|
plugins {
|
||||||
id("dev.adamko.factoriowebmap.archetype.base")
|
// id("dev.adamko.factoriowebmap.archetype.base")
|
||||||
kotlin("multiplatform")
|
// kotlin("multiplatform")
|
||||||
|
|
||||||
|
id("dev.adamko.factoriowebmap.archetype.kotlin-jvm")
|
||||||
|
|
||||||
|
id("com.google.protobuf") version "0.8.17"
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val projectId: String by project.extra
|
val projectId: String by project.extra
|
||||||
val buildDir: Directory = layout.buildDirectory.dir(projectId).get()
|
val buildDir: Directory = layout.buildDirectory.dir(projectId).get()
|
||||||
val nodeModulesDir: Directory by project.extra
|
val nodeModulesDir: Directory by project.extra
|
||||||
|
|
||||||
kotlin {
|
//kotlin {
|
||||||
|
//
|
||||||
js(IR) {
|
// js(IR) {
|
||||||
binaries.executable()
|
// binaries.executable()
|
||||||
// browser {
|
//// browser {
|
||||||
// commonWebpackConfig {
|
//// commonWebpackConfig {
|
||||||
// cssSupport.enabled = true
|
//// cssSupport.enabled = true
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//
|
||||||
|
// nodejs()
|
||||||
|
// useCommonJs()
|
||||||
|
//
|
||||||
|
// compilations["main"].apply {
|
||||||
|
// packageJson {
|
||||||
|
// customField(
|
||||||
|
// "scripts",
|
||||||
|
// mapOf(
|
||||||
|
// "build" to "tstl",
|
||||||
|
// "dev" to "tstl --watch",
|
||||||
|
// )
|
||||||
|
// )
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
//
|
||||||
nodejs()
|
// }
|
||||||
useCommonJs()
|
//
|
||||||
|
// jvm {
|
||||||
compilations["main"].apply {
|
// compilations.all {
|
||||||
packageJson {
|
// kotlinOptions.jvmTarget = "11"
|
||||||
customField(
|
// }
|
||||||
"scripts",
|
// testRuns["test"].executionTask.configure {
|
||||||
mapOf(
|
// useJUnitPlatform()
|
||||||
"build" to "tstl",
|
// }
|
||||||
"dev" to "tstl --watch",
|
// }
|
||||||
)
|
//
|
||||||
)
|
//}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
jvm {
|
|
||||||
compilations.all {
|
|
||||||
kotlinOptions.jvmTarget = "11"
|
|
||||||
}
|
|
||||||
testRuns["test"].executionTask.configure {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue