tscoverage/dist/npmts.jsdoc.js

27 lines
860 B
JavaScript
Raw Permalink Normal View History

2016-03-12 09:21:16 +00:00
"use strict";
2016-05-25 03:23:48 +00:00
require("typings-global");
2016-02-22 21:22:39 +00:00
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");
2016-05-17 00:32:40 +00:00
var npmts_promisechain_1 = require("./npmts.promisechain");
2016-07-14 11:02:58 +00:00
var genEsDoc = function (configArg) {
2016-02-22 21:22:39 +00:00
var done = plugins.Q.defer();
2016-07-14 11:02:58 +00:00
npmts_promisechain_1.npmtsOra.text("now generating " + "EsDoc documentation".yellow);
plugins.beautylog.log("ESDoc Output:");
var esdocConfig = {
source: paths.distDir,
destination: paths.docsDir
};
plugins.esdoc.generate(esdocConfig, plugins.esdocPublisher);
plugins.beautylog.ok("Docs by EsDoc have been created!");
done.resolve(configArg);
2016-02-22 21:22:39 +00:00
return done.promise;
};
2016-02-23 17:35:28 +00:00
exports.run = function (configArg) {
2016-02-22 21:22:39 +00:00
var done = plugins.Q.defer();
2016-07-14 11:02:58 +00:00
genEsDoc(configArg)
.then(function () {
done.resolve(configArg);
});
2016-02-22 21:22:39 +00:00
return done.promise;
};