tscoverage/ts/mod00/mod00.compile.ts

18 lines
524 B
TypeScript
Raw Normal View History

2017-01-17 23:58:09 +00:00
import * as q from 'smartq'
2016-10-02 18:35:13 +00:00
2016-10-21 15:48:52 +00:00
import * as paths from '../npmts.paths'
import * as plugins from './mod00.plugins'
2016-06-07 06:49:22 +00:00
export let run = function (configArg) {
2017-03-04 20:49:10 +00:00
let done = q.defer()
let config = configArg
plugins.beautylog.ora.text('now compiling ' + 'TypeScript'.yellow)
plugins.tsn.compileGlobStringObject(config.ts, config.tsOptions, paths.cwd)
.then(() => {
plugins.beautylog.ok(`compiled the module's TypeScript!`)
done.resolve(config)
}).catch(err => { console.log(err) })
return done.promise
2016-09-06 15:21:25 +00:00
}