Skip to content

Commit 8616160

Browse files
committed
Last edits
1 parent e512fa6 commit 8616160

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

graaljs/graaljs-webpack-guide/README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ You will need:
3434
- Gradle 8.0 or later, or Maven 3.6.3 or later
3535
- A decent text editor or IDE
3636

37-
3837
## 1. Set Up the Java Project
3938

4039
You can use either **Gradle** or **Maven** to set up your Java project:
4140

42-
4341
### Create a New Gradle Java Project
4442

4543
Run the following command to create a new project with Gradle:
@@ -307,9 +305,9 @@ const config = {
307305
module.exports = () => config;
308306
```
309307

310-
Create `main.mjs`, the entry point of the bundle, with the following contents:
308+
Create _main.mjs_, the entry point of the bundle, with the following contents:
311309

312-
`main.mjs`
310+
_main.mjs_
313311

314312
```js
315313
// GraalJS doesn't have built-in TextEncoder support yet. It's easy to import it from a polyfill in the meantime.
@@ -328,7 +326,7 @@ You can choose interface names freely, but it's best to base them on the JavaScr
328326

329327
Define an interface that matches the JavaScript qrcode:
330328

331-
`src/main/java/com/example/QRCode.java`
329+
_src/main/java/com/example/QRCode.java_
332330

333331
```java
334332
package com.example;
@@ -340,7 +338,7 @@ interface QRCode {
340338

341339
Define an interface for handling JavaScript Promises:
342340

343-
`src/main/java/com/example/Promise.java`
341+
_src/main/java/com/example/Promise.java_
344342

345343
```java
346344
package com.example;
@@ -354,7 +352,7 @@ public interface Promise {
354352

355353
Define a functional interface for consuming Polyglot values:
356354

357-
`src/main/java/com/example/ValueConsumer.java`
355+
_src/main/java/com/example/ValueConsumer.java_
358356

359357
```java
360358
package com.example;
@@ -371,7 +369,7 @@ public interface ValueConsumer extends Consumer<Value> {
371369

372370
Use the following `Context` class and interfaces to create QR codes and convert them to a Unicode string representation or an image:
373371

374-
`src/main/java/com/example/App.java`
372+
_src/main/java/com/example/App.java_
375373

376374
```java
377375
package com.example;
@@ -421,7 +419,7 @@ If using Gradle, run the following commands to build and run your application:
421419
./gradlew run --args="https://www.graalvm.org/"
422420
```
423421

424-
If using Maven, run the following commands to build and run your application:
422+
If using Maven, run the following commands to build and run your application:
425423

426424
```shell
427425
mvn package

0 commit comments

Comments
 (0)