Browse Source

Fix tutorial checker

pull/1777/head
Nikolay Igotti 3 years ago
parent
commit
d27b757092
  1. 1
      templates/web-template/build.gradle.kts
  2. 5
      tutorials/checker/build.gradle.kts

1
templates/web-template/build.gradle.kts

@ -34,6 +34,7 @@ kotlin {
// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 // a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273
afterEvaluate { afterEvaluate {
rootProject.extensions.configure<NodeJsRootExtension> { rootProject.extensions.configure<NodeJsRootExtension> {
nodeVersion = "16.0.0"
versions.webpackDevServer.version = "4.0.0" versions.webpackDevServer.version = "4.0.0"
versions.webpackCli.version = "4.9.0" versions.webpackCli.version = "4.9.0"
} }

5
tutorials/checker/build.gradle.kts

@ -50,12 +50,13 @@ fun cloneTemplate(template: String, index: Int, content: String): File {
return tempDir return tempDir
} }
val ignoreTill = java.time.LocalDate.parse("2022-02-01") val ignoreTill = java.time.LocalDate.parse("2022-02-10")
fun isIgnored(tutorial: String): Boolean { fun isIgnored(tutorial: String): Boolean {
if (java.time.LocalDate.now() > ignoreTill) return false if (java.time.LocalDate.now() > ignoreTill) return false
return when (tutorial) { return when (tutorial) {
"IGNORED" -> true "Mouse_Events" -> true
"Tab_Navigation" -> true
else -> false else -> false
} }
} }

Loading…
Cancel
Save