2016-06-10 04:14:12 +00:00
|
|
|
/* ================================================== *
|
2016-10-02 18:35:13 +00:00
|
|
|
**** NPMTS ****
|
|
|
|
Fabulous TypeScript development
|
2016-06-10 04:14:12 +00:00
|
|
|
* ================================================== */
|
2016-10-02 18:35:13 +00:00
|
|
|
"use strict";
|
2016-09-22 21:23:16 +00:00
|
|
|
const early = require("early");
|
2016-09-06 15:21:25 +00:00
|
|
|
early.start('NPMTS');
|
2016-09-22 21:23:16 +00:00
|
|
|
const plugins = require("./npmts.plugins");
|
|
|
|
const paths = require("./npmts.paths");
|
|
|
|
const promisechain = require("./npmts.promisechain");
|
2016-06-11 22:45:33 +00:00
|
|
|
early.stop()
|
2016-09-22 21:23:16 +00:00
|
|
|
.then(() => {
|
|
|
|
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot);
|
|
|
|
let npmtsCli = new plugins.smartcli.Smartcli();
|
2016-06-11 22:45:33 +00:00
|
|
|
npmtsCli.standardTask()
|
2016-09-22 21:23:16 +00:00
|
|
|
.then((argvArg) => {
|
2016-09-06 15:21:25 +00:00
|
|
|
plugins.beautylog.figletSync('NPMTS');
|
|
|
|
plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version);
|
2016-09-22 21:23:16 +00:00
|
|
|
promisechain.run(argvArg).catch((err) => { console.log(err); });
|
2016-06-11 22:45:33 +00:00
|
|
|
});
|
|
|
|
npmtsCli.addVersion(npmtsProjectInfo.version);
|
|
|
|
npmtsCli.startParse();
|
2016-06-10 04:14:12 +00:00
|
|
|
});
|