16 lines
674 B
JavaScript
16 lines
674 B
JavaScript
"use strict";
|
|
/// <reference path="./typings/main.d.ts" />
|
|
var plugins = require("./npmts.plugins");
|
|
var NpmtsTests = require("./npmts.tests");
|
|
var NpmtsJsdoc = require("./npmts.jsdoc");
|
|
exports.run = function (configArg) {
|
|
var done = plugins.Q.defer();
|
|
var config = configArg;
|
|
var promiseArray = [];
|
|
config.coveralls ? promiseArray.push(NpmtsTests.publishCoverage(configArg)) : void (0);
|
|
config.docs.publish ? promiseArray.push(NpmtsJsdoc.publishDocs(configArg)) : void (0);
|
|
promiseArray.length === 0 ? plugins.beautylog.info("Did not publish anything!") : void (0);
|
|
plugins.Q.all(promiseArray).then(done.resolve());
|
|
return done.promise;
|
|
};
|