GithubHelp home page GithubHelp logo

typescript-maven-plugin's Introduction

TypeScript Maven Plugin

Maven plugin that integrates TypeScript compiler into maven builds

To use the plugin in maven you need to follow these steps:

  1. Add the following plugin repository to your pom.xml
    <pluginRepository>
      <id>typescript-maven-plugin</id>
      <url>https://raw.github.com/ppedregal/typescript-maven-plugin/master/repo</url>
    </pluginRepository>
  1. Add the following build plugin to your pom.xml
      <plugin>
        <groupId>com.ppedregal.typescript</groupId>
      	<artifactId>typescript-maven-plugin</artifactId>        
        <configuration>
        	<sourceDirectory>src/main/ts</sourceDirectory>
        	<targetDirectory>target/ts</targetDirectory>
        </configuration>        
      </plugin>

More documentation in the generated maven site here

typescript-maven-plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

typescript-maven-plugin's Issues

NLP during tests

java.lang.NullPointerException
at com.ppedregal.typescript.maven.TscMojo.tsc(TscMojo.java:259)
at com.ppedregal.typescript.maven.TscMojo.doCompileFiles(TscMojo.java:180)
at com.ppedregal.typescript.maven.TscMojo.doCompileFiles(TscMojo.java:159)
at com.ppedregal.typescript.maven.TscMojo.execute(TscMojo.java:132)
at com.ppedregal.typescript.maven.TscMojoTest.testExecute(TscMojoTest.java:18)

Field TscMojo.libDTS is never set and causes NLP.

testproject1 invalid group name

In the testproject1 the plugin group name is wrongly set and the version ID is missing.
I created a fix for my own in my fork: vicctor@54470df

But now it turned out that the testproject1 is not able to compile. It seems that some standard libraries of typescript (lib.d.ts) is missing.
I found in the mojo source that the plugin shall look for the lib.d.ts in the src/main/tsc directory, but even if I placed the lib.d.ts there nothing changes.

Actually I stuck on this problem in my first typescript project.

Using tsc with node under windows does not work

Hello,

when activating the use of tsc with "useTsc=true", on windows machine where tsc is provided by node.js, the build fails stating that command "tsc" cannot be found, even if the comment is correctly working from the command line (i.e. path is correctly configured).

I've debugged the problem and it is due to the fact that under node the tsc command is in reality "tsc.cmd". By modifying the plugin to use "tsc.cmd" instead of "tsc", the build works (of course a portable solution would be needed).

Best,
R.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.