Typescript formatter

Description

Task to process tsfmt, a typescript formatter (see: npmjs.com/typescript-formatter).

Installation

Please install:
$ npm install -g typescript-formatter

Typescript task parameters

Attribute Description Value Required
file typescript file yes, if no fileset
fileset typescript input files yes, if no file

Examples

/!\ tsfmt must be installed on the system and set up in the PATH.

<project name="tsfmt task"> 

  <taskdef name="tsfmt" 
     classname="net.sourceforge.ant4x.taskdefs.javascript.TscTask" 
     classpath="PATH/TO/ant4x.jar"/> 

  <target name="tsfmt"> 
  <tsfmt file="typescript.ts"/>
  </target>
                    </project>