Skip to content

Commit 3fbafba

Browse files
ban-miolyagpl
andauthored
Apply suggestions from code review
Co-authored-by: Olga Gupalo <[email protected]>
1 parent 993965b commit 3fbafba

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

graaljs/graaljs-webpack-guide/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ JavaScript libraries can be integrated into standard Java applications using [Gr
1818
You can do this with the [GraalVM Polyglot API](https://www.graalvm.org/latest/reference-manual/embed-languages/), which allows you to embed and interact with JavaScript directly from Java code.
1919

2020
GraalJS is available as both [Gradle](https://www.graalvm.org/javascript) and [Maven](https://central.sonatype.com/artifact/org.graalvm.polyglot/js) artifacts.
21-
This makes it easy to add to your project regardless of your build tool.
21+
This makes it easy to add GraalJS to your project regardless of the build tool.
2222
Using Node (NPM) packages in Java projects often requires a bit more setup, due to the nature of the Node packaging ecosystem.
2323
One way to use such modules is to prepackage them into a single _.js_ or _.mjs_ file using a bundler like [webpack](https://webpack.js.org/).
2424

2525
In this guide, you will integrate the `webpack` build into your Java project and embed the generated JavaScript code in your application's JAR file.
2626

2727
## Prerequisites
2828

29-
In this guide, you will add the [qrcode](https://www.npmjs.com/package/qrcode) NPM package to a Java application to generate QR codes.
29+
This guide demonstrates how to add the [qrcode](https://www.npmjs.com/package/qrcode) NPM package to a Java application to generate QR codes.
3030

31-
To do this you will need:
31+
You will need:
3232

3333
- JDK 21 or later
3434
- Gradle 8.0 or later, or Maven 3.6.3 or later
@@ -43,11 +43,11 @@ You can use either **Gradle** or **Maven** to set up your Java project:
4343
- for Gradle projects, navigate to the Gradle folder with `cd gradle`
4444
- for Maven projects, navigate to the Maven folder with `cd maven`
4545

46-
### Create a new Gradle Java Project
46+
Create a New Gradle Java Project
4747

4848
You can start with any Gradle Java project.
4949

50-
If you don’t have one yet run the following:
50+
Run the following command to create a new project with Gradle:
5151

5252
```shell
5353
gradle init --type java-application
@@ -425,14 +425,14 @@ You can cast the exported `QRCode` object to the declared `QRCode` interface so
425425

426426
## 4. Building and Running the Application
427427

428-
If using Gradle, build and run your application using:
428+
If using Gradle, run the following commands to build and run your application:
429429

430430
```shell
431431
./gradlew build
432432
./gradlew run --args="https://www.graalvm.org/"
433433
```
434434

435-
If using Maven, build and run your application using:
435+
If using Maven, run the following commands to build and run your application:
436436

437437
```shell
438438
mvn package

0 commit comments

Comments
 (0)