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