2016-03-12 09:21:16 +00:00
|
|
|
"use strict";
|
2016-09-06 15:21:25 +00:00
|
|
|
require('typings-global');
|
2016-06-10 04:14:12 +00:00
|
|
|
/* ================================================== *
|
|
|
|
Starting NPMTS main process.
|
|
|
|
* ================================================== */
|
2016-09-06 15:21:25 +00:00
|
|
|
var early = require('early');
|
|
|
|
early.start('NPMTS');
|
|
|
|
var plugins = require('./npmts.plugins');
|
|
|
|
var paths = require('./npmts.paths');
|
|
|
|
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-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-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
|
|
|
});
|