Skip to content

Commit

Permalink
sample refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Feb 12, 2018
1 parent 8107ba3 commit e2850bb
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 1,304 deletions.
3 changes: 0 additions & 3 deletions jdk8/.vscode/settings.json

This file was deleted.

6 changes: 0 additions & 6 deletions jdk8/main.js

This file was deleted.

89 changes: 0 additions & 89 deletions jdk8/pom.xml

This file was deleted.

23 changes: 0 additions & 23 deletions jdk8/src/main/ts/test.ts

This file was deleted.

6 changes: 0 additions & 6 deletions jdk8/src/main/ts/utils.ts

This file was deleted.

55 changes: 0 additions & 55 deletions jdk8/tsconfig.json

This file was deleted.

5 changes: 3 additions & 2 deletions jjs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ load('classpath:jvm-npm.js');

require.paths = [
"src/main/ts",
"target/ts"
"target/ts/src/main/ts",
"target/ts/target"
];

java.lang.System.setProperty( "jvm-npm.debug", "true");
Expand All @@ -20,4 +21,4 @@ print( "args", $ARG.length );
var process = { argv:$ARG, env:{TERM:'color'} } ;

var exports = {};
load('target/ts/main.js');
load('target/ts/src/main/ts/main.js');
32 changes: 31 additions & 1 deletion jjs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,34 @@
<groupId>org.jjs</groupId>
<artifactId>jjs</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>java2ts-processor::sample</name>
<name>java2ts-processor::sample - ${project.version}</name>
<packaging>jar</packaging>

<build>
<finalName>jjs</finalName>
<plugins>

<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<options>
<ts.outfile>jdk8</ts.outfile>
</options>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
Expand Down Expand Up @@ -63,5 +86,12 @@
<version>1.1.0</version>
</dependency>

<dependency>
<groupId>org.bsc.processor</groupId>
<artifactId>java2ts-processor</artifactId>
<version>${project.version}</version>
</dependency>


</dependencies>
</project>
Loading

0 comments on commit e2850bb

Please sign in to comment.