Skip to content

Commit 5f06151

Browse files
authored
feat: Kotlin/JS: Fix typo in docs related to running Kotlin/JS project in NodeJS environment (#4760)
* KJS: Fix typo in docs related to running Kotlin/JS project * KJS: Use correct task for running NodeJS apps
1 parent 5bab4a4 commit 5f06151

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/topics/js/js-project-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ to serve your JavaScript artifacts.
278278
If you want to customize the configuration used by `webpack-dev-server`, for example, adjust the port the server runs on,
279279
use the [webpack configuration file](#webpack-bundling).
280280

281-
For running Kotlin/JS projects targeting Node.js, use the `jsBrowserDevelopmentRun` task that is an alias for the `nodeRun` task.
281+
For running Kotlin/JS projects targeting Node.js, use the `jsNodeDevelopmentRun` task that is an alias for the `nodeRun` task.
282282

283283
To run a project, execute the standard lifecycle `jsBrowserDevelopmentRun` task, or the alias to which it corresponds:
284284

docs/topics/js/running-kotlin-js.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Depending on the target platform, some platform-specific extra setup might be re
1414

1515
## Run the Node.js target
1616

17-
When targeting Node.js with Kotlin/JS, you can simply execute the `jsBrowserDevelopmentRun` Gradle task. This can be done for example via the
17+
When targeting Node.js with Kotlin/JS, you can simply execute the `jsNodeDevelopmentRun` Gradle task. This can be done for example via the
1818
command line, using the Gradle wrapper:
1919

2020
```bash
21-
./gradlew jsBrowserDevelopmentRun
21+
./gradlew jsNodeDevelopmentRun
2222
```
2323

24-
If you're using IntelliJ IDEA, you can find the `jsBrowserDevelopmentRun` action in the Gradle tool window:
24+
If you're using IntelliJ IDEA, you can find the `jsNodeDevelopmentRun` action in the Gradle tool window:
2525

2626
![Gradle Run task in IntelliJ IDEA](run-gradle-task.png){width=700}
2727

@@ -71,4 +71,4 @@ Inside the developer tools, navigate to the console, where you can see the resul
7171

7272
With this setup, you can recompile your project after each code change to see your changes. Kotlin/JS also supports
7373
a more convenient way of automatically rebuilding the application while you are developing it.
74-
To find out how to set up this _continuous mode_, check out the [corresponding tutorial](dev-server-continuous-compilation.md).
74+
To find out how to set up this _continuous mode_, check out the [corresponding tutorial](dev-server-continuous-compilation.md).

0 commit comments

Comments
 (0)