diff --git a/dist/index.js b/dist/index.js index c82050e..ef55536 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8,19 +8,21 @@ early.start("NPMTS"); var plugins = require("./npmts.plugins"); var paths = require("./npmts.paths"); var npmts_promisechain_1 = require("./npmts.promisechain"); -early.stop(); -var npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot); -var npmtsCli = new plugins.smartcli.Smartcli(); -npmtsCli.standardTask() - .then(function () { - plugins.beautylog.figletSync("NPMTS"); - plugins.beautylog.info("npmts version: " + npmtsProjectInfo.version); - try { - npmts_promisechain_1.promisechain(); - } - catch (err) { - console.log(err); - } +early.stop() + .done(function () { + var npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot); + var npmtsCli = new plugins.smartcli.Smartcli(); + npmtsCli.standardTask() + .then(function () { + plugins.beautylog.figletSync("NPMTS"); + plugins.beautylog.info("npmts version: " + npmtsProjectInfo.version); + try { + npmts_promisechain_1.promisechain(); + } + catch (err) { + console.log(err); + } + }); + npmtsCli.addVersion(npmtsProjectInfo.version); + npmtsCli.startParse(); }); -npmtsCli.addVersion(npmtsProjectInfo.version); -npmtsCli.startParse(); diff --git a/package.json b/package.json index 7a28990..1c949b9 100644 --- a/package.json +++ b/package.json @@ -28,13 +28,13 @@ "homepage": "https://gitlab.com/pushrocks/npmts#readme", "dependencies": { "beautylog": "5.0.8", - "early": "^2.0.7", + "early": "^2.0.13", "fs-extra": "^0.30.0", "gulp": "3.9.1", "gulp-concat": "^2.6.0", - "gulp-function": "^1.3.5", + "gulp-function": "^1.3.6", "gulp-if": "^2.0.1", - "gulp-istanbul": "^0.10.4", + "gulp-istanbul": "^1.0.0", "gulp-jsdoc3": "^0.3.0", "gulp-mocha": "^2.2.0", "gulp-replace": "^0.5.4", diff --git a/ts/index.ts b/ts/index.ts index 2c64fe4..0400954 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -8,22 +8,23 @@ early.start("NPMTS"); import * as plugins from "./npmts.plugins" import * as paths from "./npmts.paths"; import {promisechain} from "./npmts.promisechain"; -early.stop(); +early.stop() + .done(() => { + let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot); -let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot); + let npmtsCli = new plugins.smartcli.Smartcli(); + npmtsCli.standardTask() + .then(() => { + plugins.beautylog.figletSync("NPMTS"); + plugins.beautylog.info("npmts version: " + npmtsProjectInfo.version); + try { + promisechain(); + } + catch(err){ + console.log(err); + } + }); -let npmtsCli = new plugins.smartcli.Smartcli(); -npmtsCli.standardTask() - .then(() => { - plugins.beautylog.figletSync("NPMTS"); - plugins.beautylog.info("npmts version: " + npmtsProjectInfo.version); - try { - promisechain(); - } - catch(err){ - console.log(err); - } - }); - -npmtsCli.addVersion(npmtsProjectInfo.version); -npmtsCli.startParse(); \ No newline at end of file + npmtsCli.addVersion(npmtsProjectInfo.version); + npmtsCli.startParse(); + }); \ No newline at end of file