Skip to content

Commit

Permalink
add support for 'jvm-npm'
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jun 12, 2019
1 parent 21de1d8 commit 13bb09e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
10 changes: 10 additions & 0 deletions samples/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
// STARTUP
//

load('./target/js/jvm-npm.js');

print( typeof require );

require.paths = [
"node_emul"
];

java.lang.System.setProperty( 'jvm-npm.debug', 'false');

var process = {
argv:'',
platform:'macosx',
Expand Down
33 changes: 26 additions & 7 deletions samples/graaljs-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,31 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.bsc</groupId>
<artifactId>jvm-npm-core</artifactId>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/js</outputDirectory>
<includes>**/*.js</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
Expand All @@ -286,13 +311,7 @@
</plugins>
</build>
<dependencies>
<!--
<dependency>
<groupId>org.bsc</groupId>
<artifactId>jvm-npm-core</artifactId>
</dependency>
-->


<dependency>
<groupId>org.bsc.processor</groupId>
<artifactId>java2ts-processor</artifactId>
Expand Down

0 comments on commit 13bb09e

Please sign in to comment.