tscoverage/ts/index.ts

30 lines
1012 B
TypeScript
Raw Normal View History

2016-05-25 05:23:48 +02:00
import "typings-global";
2016-06-10 00:53:30 +02:00
2016-06-10 06:14:12 +02:00
/* ================================================== *
Starting NPMTS main process.
* ================================================== */
2016-05-22 01:09:55 +02:00
import * as early from "early";
early.start("NPMTS");
2016-05-19 18:36:53 +02:00
import * as plugins from "./npmts.plugins"
2016-06-10 00:53:30 +02:00
import * as paths from "./npmts.paths";
2016-05-19 18:36:53 +02:00
import {promisechain} from "./npmts.promisechain";
2016-06-12 00:45:33 +02:00
early.stop()
.done(() => {
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot);
2016-05-22 01:09:55 +02:00
2016-06-12 00:45:33 +02:00
let npmtsCli = new plugins.smartcli.Smartcli();
npmtsCli.standardTask()
.then(() => {
plugins.beautylog.figletSync("NPMTS");
plugins.beautylog.info("npmts version: " + npmtsProjectInfo.version);
try {
promisechain();
}
catch(err){
console.log(err);
}
});
2016-06-12 00:45:33 +02:00
npmtsCli.addVersion(npmtsProjectInfo.version);
npmtsCli.startParse();
});