io.github.scottpierce.kotlin-node-slim
Owner: Scott Pierce
Creates a slim nodejs project of only the dependencies used by a Kotlin Node JS Gradle module so that only the used dependencies can be packaged. This helps to greatly reduce the released file size, especially in projects with multiple javascript projects.
https://github.com/ScottPierce/kotlin-node-slim
Sources: https://github.com/ScottPierce/kotlin-node-slim
Version 0.0.9 (latest)
Created 11 July 2023.
Add this plugin to your build using the plugins DSL:
plugins {
id("io.github.scottpierce.kotlin-node-slim") version "0.0.9"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts)
:dependencies { implementation("io.github.scottpierce.kotlin-node-slim:io.github.scottpierce.kotlin-node-slim.gradle.plugin:0.0.9") }
It can then be applied in the precompiled script plugin:plugins { id("io.github.scottpierce.kotlin-node-slim") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("io.github.scottpierce.kotlin-node-slim:io.github.scottpierce.kotlin-node-slim.gradle.plugin:0.0.9") } } apply(plugin = "io.github.scottpierce.kotlin-node-slim")
- Applying plugins to all subprojects .