node package manager

gobble-typescript

gobble-typescript

Compile TypeScript files with gobble and TypeScript.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-typescript

Usage

var gobble = require( 'gobble' );
var ts = require( 'typescript' );
 
module.exports = gobble( 'src' ).transform( 'typescript', {
 
  target: ts.ScriptTarget.ES2015,
  module: ts.ModuleKind.ES2015,
  jsx: ts.JsxEmit.React,
});

License

MIT. Copyright 2015 Kevin Thompson