add --nodocs option

This commit is contained in:
2016-08-13 23:54:17 +02:00
parent 2c254a2ecf
commit db1cfe4746
5 changed files with 51 additions and 31 deletions

View File

@@ -8,12 +8,17 @@ exports.run = function (argvArg) {
npmts_promisechain_1.npmtsOra.text("looking for npmextra.json");
var defaultConfig = {
mode: "default",
notest: false
notest: false,
nodocs: false
};
if (argvArg.notest) {
defaultConfig.notest = true;
}
;
if (argvArg.nodocs) {
defaultConfig.nodocs = true;
}
;
var config = plugins.npmextra.dataFor({
toolName: "npmts",
defaultSettings: defaultConfig,

12
dist/npmts.typedoc.js vendored
View File

@@ -27,9 +27,15 @@ var genTypeDoc = function (configArg) {
};
exports.run = function (configArg) {
var done = plugins.Q.defer();
genTypeDoc(configArg)
.then(function () {
if (configArg.nodocs) {
done.resolve(configArg);
});
}
else {
genTypeDoc(configArg)
.then(function () {
done.resolve(configArg);
});
}
;
return done.promise;
};