[Gradle, JS] Add arguments for building caches

This commit is contained in:
Ilya Goncharov
2021-04-23 12:45:01 +03:00
parent c23376f040
commit b9fc97b44f
3 changed files with 23 additions and 21 deletions
@@ -161,6 +161,16 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
)
var includes: String? by NullableStringFreezableVar(null)
@Argument(
value = "-Xcache-directories",
valueDescription = "<path>",
description = "A path to cache directories"
)
var cacheDirectories: String? by NullableStringFreezableVar(null)
@Argument(value = "-Xir-build-cache", description = "Use compiler to build cache")
var irBuildCache: Boolean by FreezableVar(false)
@Argument(
value = "-Xgenerate-dts",
description = "Generate TypeScript declarations .d.ts file alongside JS file. Available in IR backend only."