Skip to content

Commit

Permalink
add support ot typescript compiling on process-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Feb 12, 2018
1 parent 97ec8df commit 15f6f43
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions jjs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,45 @@
<groupId>org.jjs</groupId>
<artifactId>jjs</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>java2ts-processor::sample</name>
<packaging>jar</packaging>
<build>
<finalName>jjs</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<executable>jjs</executable>
<workingDirectory>${basedir}/src/main/ts</workingDirectory>
<arguments>
<argument>-scripting</argument>
<argument>-classpath</argument>
<classpath/>
<argument>app.js</argument>
<argument>--</argument>
</arguments>
</configuration>
<configuration>
<workingDirectory>${basedir}/src/main/ts</workingDirectory>
</configuration>
<executions>
<execution>
<id>jjs</id>
<configuration>
<executable>jjs</executable>
<arguments>
<argument>-scripting</argument>
<argument>-classpath</argument>
<classpath/>
<argument>app.js</argument>
<argument>--</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tsc</id>
<phase>process-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>tsc</executable>
<arguments>
</arguments>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
Expand Down

0 comments on commit 15f6f43

Please sign in to comment.