tscoverage/ts/npmts.publish.ts

15 lines
550 B
TypeScript
Raw Normal View History

2016-05-25 03:23:48 +00:00
import "typings-global";
2016-03-26 13:08:48 +00:00
import plugins = require("./npmts.plugins");
import paths = require("./npmts.paths");
import NpmtsJsdoc = require("./npmts.jsdoc");
export let run = function(configArg){
let done = plugins.Q.defer();
let config = configArg;
let promiseArray = [];
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;
};