This commit is contained in:
Philipp Kunz 2016-05-19 18:37:54 +02:00
parent e297be6fc2
commit e30dc5d77c
2 changed files with 3 additions and 5 deletions

4
dist/index.js vendored
View File

@ -2,10 +2,10 @@
/// <reference path="./typings/main.d.ts" /> /// <reference path="./typings/main.d.ts" />
console.log("**** starting NPMTS ****"); console.log("**** starting NPMTS ****");
var plugins = require("./npmts.plugins"); var plugins = require("./npmts.plugins");
var promisechain = require("./npmts.promisechain"); var npmts_promisechain_1 = require("./npmts.promisechain");
plugins.beautylog.figletSync("NPMTS"); plugins.beautylog.figletSync("NPMTS");
try { try {
promisechain.run(); npmts_promisechain_1.promisechain();
} }
catch (err) { catch (err) {
console.log(err); console.log(err);

View File

@ -12,8 +12,7 @@ var NpmtsJsdoc = require("./npmts.jsdoc");
var NpmtsOptions = require("./npmts.options"); var NpmtsOptions = require("./npmts.options");
var NpmtsPublish = require("./npmts.publish"); var NpmtsPublish = require("./npmts.publish");
var NpmtsTests = require("./npmts.tests"); var NpmtsTests = require("./npmts.tests");
exports.run = function () { exports.promisechain = function () {
var promisechain;
NpmtsConfigFile.run() NpmtsConfigFile.run()
.then(NpmtsOptions.run) .then(NpmtsOptions.run)
.then(NpmtsClean.run) .then(NpmtsClean.run)
@ -47,5 +46,4 @@ exports.run = function () {
plugins.beautylog.success("Done!"); plugins.beautylog.success("Done!");
} }
}); });
return promisechain;
}; };