A sigh plugin to compile typescript files.


Keywords
sigh, sigh-plugin, typescript
License
Xnet
Install
npm install sigh-ts@0.0.12

Documentation

sigh-ts

A sigh plugin to compile typescript files.

EXAMPLE

pipelines["build"] = [
	glob({basePath: "src"}, "**/*.ts"),
	ts(),
	write("dist")
];

API

ts(options)

options is key-value object which is referencing to typescript compiler options

CHANGELOG

  • 0.0.16 (20 Nov 2016) switched to typescript compiler (was babel)
  • 0.0.15 (13 Nov 2016) fixed ReferenceError: Path is not defined
  • 0.0.14 (13 Nov 2016) fixed error cannot find std lib for TS 2
  • 0.0.13 (13 Sep 2016) memoized getScriptSnapshot, added typings support
  • 0.0.12 (12 Sep 2016) option in pipeline has more precedence than tsconfig
  • 0.0.11 (12 Sep 2016) fixed line number in diagnostic messages
  • 0.0.10 (15 Aug 2016) fixed error Cannot read property 'version' of undefined
  • 0.0.9 (14 Aug 2016) fixed bug change extension to js
  • 0.0.8 (14 Aug 2016) fixed option moduleResolution
  • 0.0.7 (07 Aug 2016) fixed removing declaration files
  • 0.0.6 (06 Aug 2016) allow emit declaration files, log errors
  • 0.0.5 (27 Jul 2016) logging and reportDiagnostics option
  • 0.0.4 (25 Jul 2016) support tsconfig.json
  • 0.0.3 (18 May 2016) updated examples
  • 0.0.2 (18 May 2016) allow specify all options of typescript
  • 0.0.1 (12 Dec 2015) first release

TODO

  • remove map file