graalvm / graalvm-demos

This repository contains example applications to illustrate the different capabilities of GraalVM
http://graalvm.org
Universal Permissive License v1.0
587 stars 154 forks source link

Add GraalJS QRCode demo using maven-frontend-plugin and webpack. #289

Closed woess closed 1 month ago

woess commented 1 month ago

Adds a Java example application that uses GraalJS and a JavaScript library (node-qrcode) to generate a QR code from a string and then prints it to the console.

Uses the maven-frontend-plugin to bundle the npm package (with polyfills) using webpack, and include it in the JAR, as part of the Maven build.

See README.md for details.

Run using mvn package exec:java.

woess commented 1 month ago

Moved to https://github.com/graalvm/graal-languages-demos/pull/1