24 lines
898 B
JavaScript
24 lines
898 B
JavaScript
"use strict";
|
|
require("typings-global");
|
|
/* ================================================== *
|
|
Starting NPMTS main process.
|
|
* ================================================== */
|
|
const early = require("early");
|
|
early.start('NPMTS');
|
|
const plugins = require("./npmts.plugins");
|
|
const paths = require("./npmts.paths");
|
|
const promisechain = require("./npmts.promisechain");
|
|
early.stop()
|
|
.then(() => {
|
|
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot);
|
|
let npmtsCli = new plugins.smartcli.Smartcli();
|
|
npmtsCli.standardTask()
|
|
.then((argvArg) => {
|
|
plugins.beautylog.figletSync('NPMTS');
|
|
plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version);
|
|
promisechain.run(argvArg).catch((err) => { console.log(err); });
|
|
});
|
|
npmtsCli.addVersion(npmtsProjectInfo.version);
|
|
npmtsCli.startParse();
|
|
});
|