tscoverage/ts/mod00/index.ts

28 lines
910 B
TypeScript
Raw Normal View History

2016-10-21 15:48:52 +00:00
/* ------------------------------------------
2017-03-04 20:49:10 +00:00
* This module compiles the module's TypeScript files
* Note: Test files are only compiled in memory
2016-10-21 15:48:52 +00:00
* -------------------------------------------- */
2017-01-17 23:58:09 +00:00
import * as q from 'smartq'
2016-10-21 15:48:52 +00:00
import { INpmtsConfig } from '../npmts.config'
import * as plugins from './mod00.plugins'
import * as NpmtsAssets from './mod00.assets'
import * as NpmtsCheck from './mod00.check'
import * as NpmtsClean from './mod00.clean'
import * as NpmtsCompile from './mod00.compile'
2017-01-17 23:58:09 +00:00
export let run = function(configArg: INpmtsConfig): Promise<INpmtsConfig> {
2016-10-21 15:48:52 +00:00
let done = q.defer<INpmtsConfig>()
2017-01-21 22:23:00 +00:00
plugins.beautylog.ora.text('starting TypeScript Compilation')
2016-10-21 15:48:52 +00:00
NpmtsClean.run(configArg)
.then(NpmtsCheck.run)
.then(NpmtsCompile.run)
.then(NpmtsAssets.run)
.then(function(){
done.resolve(configArg)
})
return done.promise
}