2016-05-19 20:11:18 +00:00
|
|
|
/// <reference path="./typings/index.d.ts" />
|
2016-03-26 13:08:48 +00:00
|
|
|
import plugins = require("./npmts.plugins");
|
|
|
|
import paths = require("./npmts.paths");
|
|
|
|
import NpmtsTests = require("./npmts.tests");
|
|
|
|
import NpmtsJsdoc = require("./npmts.jsdoc");
|
|
|
|
|
|
|
|
|
|
|
|
export let run = function(configArg){
|
|
|
|
let done = plugins.Q.defer();
|
|
|
|
let config = configArg;
|
|
|
|
let promiseArray = [];
|
2016-04-02 17:09:11 +00:00
|
|
|
config.codecov ? promiseArray.push(NpmtsTests.publishCoverage(configArg)) : void(0);
|
2016-03-26 13:08:48 +00:00
|
|
|
config.docs.publish ? promiseArray.push(NpmtsJsdoc.publishDocs(configArg)) : void(0);
|
|
|
|
promiseArray.length === 0 ? plugins.beautylog.info("Did not publish anything!") : void(0);
|
|
|
|
|
2016-03-26 16:35:55 +00:00
|
|
|
plugins.Q.all(promiseArray).then(done.resolve);
|
2016-03-26 13:08:48 +00:00
|
|
|
return done.promise;
|
|
|
|
};
|