tscoverage/dist/npmts.publish.js

14 lines
519 B
JavaScript
Raw Normal View History

2016-03-26 13:08:48 +00:00
"use strict";
2016-05-25 03:23:48 +00:00
require("typings-global");
2016-03-26 13:08:48 +00:00
var plugins = require("./npmts.plugins");
var NpmtsJsdoc = require("./npmts.jsdoc");
exports.run = function (configArg) {
var done = plugins.Q.defer();
var config = configArg;
var 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;
};