malta-typescript
v1.0.8
Published
Malta plugin to live compile typescript
Downloads
4
Maintainers
Readme
This plugin can be used on: .ts files
tsc
needs to be available from the console.
Options : no options
Sample usage:
malta app/source/home.ts public/js -plugins=malta-typescript
or in the .json file :
"app/source/home.ts" : "public/js -plugins=malta-typescript"
or in a script :
var Malta = require('malta');
Malta.get().check([
'app/source/home.ts',
'public/js',
'-plugins=malta-typescript',
'-options=showPath:false,watchInterval:500,verbose:0'
]).start(function (o) {
var s = this;
console.log('name : ' + o.name)
console.log("content : \n" + o.content);
'plugin' in o && console.log("plugin : " + o.plugin);
console.log('=========');
});