logo Kevoree :: Modeling :: Java2TypeScript :: MavenPlugin

Java to Typescript transpiler

homepage: github.com/kevoree-modeling/java2typescript
fresh index:
last release: 3 years ago, first release: 4 years ago
packaging: maven-plugin
get this artifact from: central
see this artifact on: search.maven.org




This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
org.kevoree.modeling.java2typescript.:extract (phase: process-sources)
org.kevoree.modeling.java2typescript.:generate (phase: process-sources)
org.kevoree.modeling.java2typescript.:tsc (phase: compile)

Often used code snippets:

<plugin>
  <groupId>org.kevoree.modeling</groupId>
  <artifactId>org.kevoree.modeling.java2typescript.mavenplugin</artifactId>
  <version>${java2typescript.plugin.version}</version>
  <executions>
    <execution>
      <id>compile-ts</id>
      <goals>
        <goal>tsc</goal>
      </goals>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>org.kevoree.modeling</groupId>
  <artifactId>org.kevoree.modeling.java2typescript.mavenplugin</artifactId>
  <version>${java2typescript.plugin.version}</version>
  <executions>
    <execution>
      <id>compile-src</id>
      <goals>
        <goal>generate</goal>
      </goals>
      <configuration>
        <source>${basedir}/../org.kevoree.modeling.microframework/src/main/java</source>
        <target>${basedir}/src/main/ts</target>
        <targetJS>${basedir}/src/main/resources</targetJS>
      </configuration>
    </execution>
    <execution>
      <id>compile-test</id>
      <goals>
        <goal>generate</goal>
      </goals>
      <configuration>
        <source>${basedir}/../org.kevoree.modeling.microframework/src/test/java</source>
        <target>${basedir}/target/generated-test-sources</target>
        <targetJS>${basedir}/target/test-classes</targetJS>
        <flatJUnit>true</flatJUnit>
        <copyLibDTs>false</copyLibDTs>
        <libraries>
          <library>${basedir}/src/main/resources</library>
        </libraries>
      </configuration>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>org.kevoree.modeling</groupId>
  <artifactId>org.kevoree.modeling.java2typescript.mavenplugin</artifactId>
  <version>${java2typescript.plugin.version}</version>
  <executions>
    <execution>
      <id>compile-ts</id>
      <phase>test-compile</phase>
      <goals>
        <goal>extract</goal>
      </goals>
      <configuration>
        <target>${project.build.testOutputDirectory}</target>
      </configuration>
    </execution>
  </executions>
</plugin>

© Jiri Pinkas 2015 - 2018. All rights reserved. Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení | 4npm - npm search | monitored using: sitemonitoring
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.