2016-05-25 03:23:48 +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-05-21 23:09:55 +00:00
|
|
|
import * as early from "early";
|
|
|
|
early.start("NPMTS");
|
2016-05-19 16:36:53 +00:00
|
|
|
import * as plugins from "./npmts.plugins"
|
2016-06-09 22:53:30 +00:00
|
|
|
import * as paths from "./npmts.paths";
|
2016-05-19 16:36:53 +00:00
|
|
|
import {promisechain} from "./npmts.promisechain";
|
2016-06-11 22:45:33 +00:00
|
|
|
early.stop()
|
|
|
|
.done(() => {
|
|
|
|
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot);
|
2016-05-21 23:09:55 +00:00
|
|
|
|
2016-06-11 22:45:33 +00: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-03-23 13:12:58 +00:00
|
|
|
|
2016-06-11 22:45:33 +00:00
|
|
|
npmtsCli.addVersion(npmtsProjectInfo.version);
|
|
|
|
npmtsCli.startParse();
|
|
|
|
});
|