diff --git a/web/build.gradle.kts b/web/build.gradle.kts index 4f4cf4d854..33127b3751 100644 --- a/web/build.gradle.kts +++ b/web/build.gradle.kts @@ -35,6 +35,18 @@ subprojects { } } + val printTestBundleSize by tasks.registering { + doLast { + val bundlePath = buildDir.resolve( + "compileSync/test/testDevelopmentExecutable/kotlin/${rootProject.name}-${project.name}-test.js" + ) + if (bundlePath.exists()) { + val size = bundlePath.length() + println("##teamcity[buildStatisticValue key='testBundleSize::${project.name}' value='$size']") + } + } + } + if (isSampleProject()) { val printBundleSize by tasks.registering { dependsOn(tasks.named("jsBrowserDistribution"))