From 6f67a14761bf2cb5dcf5b286e4ffbd9766b68a25 Mon Sep 17 00:00:00 2001 From: Sarah Haggarty Date: Mon, 3 Jul 2023 19:30:45 +0200 Subject: [PATCH] chore: update JS default distribution target directory --- docs/topics/gradle/gradle-configure-project.md | 4 ++-- docs/topics/js/js-project-setup.md | 12 ++++++++---- docs/topics/js/js-react.md | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/topics/gradle/gradle-configure-project.md b/docs/topics/gradle/gradle-configure-project.md index 15b32688cd5..0bd3678d205 100644 --- a/docs/topics/gradle/gradle-configure-project.md +++ b/docs/topics/gradle/gradle-configure-project.md @@ -47,8 +47,8 @@ In the following table, there are the minimum and maximum **fully supported** ve | KGP version | Gradle min and max versions | AGP min and max versions | |-------------|-----------------------------------------|-------------------------------------------------------| | 1.9.0 | %minGradleVersion% – %maxGradleVersion% | %minAndroidGradleVersion% – %maxAndroidGradleVersion% | -| 1.8.20 | 6.8.3 – 7.6.0 | 4.1.3 – 7.2.1 | -| 1.8.0 | 6.8.3 – 7.3.3 | 4.1.3 – 7.4.0 | +| 1.8.20 | 6.8.3 – 7.6.0 | 4.1.3 – 7.4.0 | +| 1.8.0 | 6.8.3 – 7.3.3 | 4.1.3 – 7.2.1 | | 1.7.20 | 6.7.1 – 7.1.1 | 3.6.4 – 7.0.4 | | 1.7.0 | 6.7.1 – 7.0.2 | 3.4.3 – 7.0.2 | | 1.6.20 | 6.1.1 - 7.0.2 | 3.4.3 - 7.0.2 | diff --git a/docs/topics/js/js-project-setup.md b/docs/topics/js/js-project-setup.md index a029110bd46..983f3bec11a 100644 --- a/docs/topics/js/js-project-setup.md +++ b/docs/topics/js/js-project-setup.md @@ -387,7 +387,7 @@ kotlin.js.webpack.major.version=4 The most common webpack adjustments can be made directly via the `kotlin.js.browser.webpackTask` configuration block in the Gradle build file: -- `outputFileName` - the name of the webpacked output file. It will be generated in `/build/distributions/` after +- `outputFileName` - the name of the webpacked output file. It will be generated in `/build/dist/` after an execution of a webpack task. The default value is the project name. - `output.libraryTarget` - the module system for the webpacked output. Learn more about [available module systems for Kotlin/JS projects](js-modules.md). The default value is `umd`. @@ -440,7 +440,7 @@ the resulting JavaScript file, which takes more time, but generates executables the `browserProductionWebpack` task when preparing your project for production use. Execute either of these tasks to obtain the respective artifacts for development or production. The generated files will - be available in `build/distributions` unless [specified otherwise](#distribution-target-directory). + be available in `build/dist` unless [specified otherwise](#distribution-target-directory). ```bash ./gradlew browserProductionWebpack @@ -777,7 +777,11 @@ rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlu ## Distribution target directory -By default, the results of a Kotlin/JS project build reside in the `/build/distribution` directory within the project root. +By default, the results of a Kotlin/JS project build reside in the `/build/dist//` directory within the project root. + +> Prior to Kotlin 1.9.0, the default distribution target directory was `/build/distributions`. +> +{type="note" } To set another location for project distribution files, add the `distribution` block inside `browser` in the build script and assign a value to the `directory` property. @@ -831,7 +835,7 @@ js { } ``` -Note that this does not affect the webpacked output in `build/distributions`. +Note that this does not affect the webpacked output in `build/dist`. ## package.json customization diff --git a/docs/topics/js/js-react.md b/docs/topics/js/js-react.md index f977eab6905..4e2fa1dba13 100644 --- a/docs/topics/js/js-react.md +++ b/docs/topics/js/js-react.md @@ -1187,7 +1187,7 @@ To package all assets in production mode, run the `build` task in Gradle via the running `./gradlew build`. This generates an optimized project build, applying various improvements such as DCE (dead code elimination). -Once the build has finished, you can find all the files needed for deployment in `/build/distributions`. They include +Once the build has finished, you can find all the files needed for deployment in `/build/dist`. They include the JavaScript files, HTML files, and other resources required to run the application. You can put them on a static HTTP server, serve them using GitHub Pages, or host them on a cloud provider of your choice.