Simple POC of using JS lib we use in JVM. It uses Nashorn to run JS code in JVM.
The approach is to use browserify and bundle
everything in js file which is then evaluated by JVM and accessed from
Java. See Minim.java
for the Java code and index.js
for the JS code.
See package.json
.
make deps
and then make
.
java Minim <refract.json>
It prints all annotation messages found the the parse result.
Use warnings.json
file in the repo if none other is available to you.