Komponent 0.0.4 with minimize

This commit is contained in:
2017-07-22 13:31:15 +02:00
parent 1cf9f2598e
commit 584874a7ac
21 changed files with 117 additions and 49565 deletions

32
minimize.gradle Normal file
View File

@@ -0,0 +1,32 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.eriwen:gradle-js-plugin:1.12.1"
}
}
plugins {
id "com.eriwen.gradle.js" version "2.14.1"
}
// Create new CombineJsTasks if you have multiple sets of JS files
task combineKotlinJs(type: com.eriwen.gradle.js.tasks.CombineJsTask) {
source = [
"${projectDir}/web/js/kotlin/min/kotlin.js",
"${projectDir}/web/js/kotlin/min/kotlinx-html-js.js",
"${projectDir}/web/js/kotlin/min/komp.js",
"${projectDir}/web/js/kotlin/min/komp-todo.js"
]
dest = file("${projectDir}/web/js/generated/todo.all.js")
}
minifyJs {
source = combineKotlinJs
dest = file("${projectDir}/web/js/generated/todo.all.min.js")
closure {
warningLevel = 'QUIET'
compilerOptions.languageIn = "ECMASCRIPT5"
}
}