Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin/JS: Fix typo in docs related to running Kotlin/JS project in NodeJS environment #4760

Merged
merged 2 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/topics/js/js-project-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ to serve your JavaScript artifacts.
If you want to customize the configuration used by `webpack-dev-server`, for example, adjust the port the server runs on,
use the [webpack configuration file](#webpack-bundling).

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

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

Expand Down
8 changes: 4 additions & 4 deletions docs/topics/js/running-kotlin-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Depending on the target platform, some platform-specific extra setup might be re

## Run the Node.js target

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

```bash
./gradlew jsBrowserDevelopmentRun
./gradlew jsNodeDevelopmentRun
```

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

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

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

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