tscoverage/ts/index.ts

29 lines
997 B
TypeScript
Raw Normal View History

2016-09-06 15:21:25 +00:00
import 'typings-global'
2016-06-09 22:53:30 +00:00
2016-06-10 04:14:12 +00:00
/* ================================================== *
Starting NPMTS main process.
* ================================================== */
2016-09-06 15:21:25 +00:00
import * as early from 'early'
early.start('NPMTS')
import * as plugins from './npmts.plugins'
import * as paths from './npmts.paths'
import {promisechain} from './npmts.promisechain'
2016-06-11 22:45:33 +00:00
early.stop()
2016-06-16 01:02:33 +00:00
.then(() => {
2016-09-06 15:21:25 +00:00
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot)
let npmtsCli = new plugins.smartcli.Smartcli()
2016-06-11 22:45:33 +00:00
npmtsCli.standardTask()
2016-06-16 01:02:33 +00:00
.then((argvArg) => {
2016-09-06 15:21:25 +00:00
plugins.beautylog.figletSync('NPMTS')
plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version)
2016-06-11 22:45:33 +00:00
try {
2016-09-06 15:21:25 +00:00
promisechain(argvArg)
} catch (err) {
console.log(err)
2016-06-11 22:45:33 +00:00
}
2016-09-06 15:21:25 +00:00
})
2016-09-06 15:21:25 +00:00
npmtsCli.addVersion(npmtsProjectInfo.version)
npmtsCli.startParse()
})