Class TypeScriptCompiler

java.lang.Object
ro.isdc.wro.extensions.processor.support.typescript.TypeScriptCompiler

public class TypeScriptCompiler extends Object
Uses rhino to compile a TypeScript into javascript.
Since:
1.6.3
Author:
Alex Objelean
  • Constructor Details

    • TypeScriptCompiler

      public TypeScriptCompiler()
  • Method Details

    • compile

      public String compile(String typeScript)
    • getCompilerWrapperStream

      protected InputStream getCompilerWrapperStream()
      Returns:
      the stream for the script performing actual compilation wrapper.
    • getCompilerStream

      protected InputStream getCompilerStream()
      Returns:
      the stream for the script for TypeScript compiler.