2016-03-12 09:21:16 +00:00
|
|
|
"use strict";
|
2016-05-25 03:23:48 +00:00
|
|
|
require("typings-global");
|
2016-06-10 04:14:12 +00:00
|
|
|
/* ================================================== *
|
|
|
|
Starting NPMTS main process.
|
|
|
|
* ================================================== */
|
2016-05-21 23:09:55 +00:00
|
|
|
var early = require("early");
|
|
|
|
early.start("NPMTS");
|
2016-02-19 23:53:23 +00:00
|
|
|
var plugins = require("./npmts.plugins");
|
2016-06-09 22:53:30 +00:00
|
|
|
var paths = require("./npmts.paths");
|
2016-05-19 16:37:54 +00:00
|
|
|
var npmts_promisechain_1 = require("./npmts.promisechain");
|
2016-06-11 22:45:33 +00:00
|
|
|
early.stop()
|
2016-06-16 01:02:33 +00:00
|
|
|
.then(function () {
|
2016-06-11 22:45:33 +00:00
|
|
|
var npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot);
|
|
|
|
var npmtsCli = new plugins.smartcli.Smartcli();
|
|
|
|
npmtsCli.standardTask()
|
2016-06-16 01:02:33 +00:00
|
|
|
.then(function (argvArg) {
|
2016-06-11 22:45:33 +00:00
|
|
|
plugins.beautylog.figletSync("NPMTS");
|
|
|
|
plugins.beautylog.info("npmts version: " + npmtsProjectInfo.version);
|
|
|
|
try {
|
2016-06-16 01:02:33 +00:00
|
|
|
npmts_promisechain_1.promisechain(argvArg);
|
2016-06-11 22:45:33 +00:00
|
|
|
}
|
|
|
|
catch (err) {
|
|
|
|
console.log(err);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
npmtsCli.addVersion(npmtsProjectInfo.version);
|
|
|
|
npmtsCli.startParse();
|
2016-06-10 04:14:12 +00:00
|
|
|
});
|