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
afterEvaluate {
rootProject.extensions.configure<NodeJsRootExtension> {
nodeVersion = "16.0.0"
versions.webpackDevServer.version = "4.0.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
}
val ignoreTill = java.time.LocalDate.parse("2022-02-01")
val ignoreTill = java.time.LocalDate.parse("2022-02-10")
fun isIgnored(tutorial: String): Boolean {
if (java.time.LocalDate.now() > ignoreTill) return false
return when (tutorial) {
"IGNORED" -> true
"Mouse_Events" -> true
"Tab_Navigation" -> true
else -> false
}
}

Loading…
Cancel
Save