Add module names for the typedoc, make it work

Mark members with @private for typedoc.
This commit is contained in:
Panayot Cankov
2017-04-19 13:39:17 +03:00
parent c59077161f
commit d098ff43f5
101 changed files with 647 additions and 186 deletions

View File

@@ -23,13 +23,18 @@ module.exports = function(grunt) {
// Custom Functions
var filterTypeScriptFiles = function(content, srcPath) {
var matchRule = /^.*@private/ig;
if (matchRule.test(content))
{
var leadingPrivate = /^.*@private/ig;
if (leadingPrivate.test(content)) {
return false;
}
var blockCommentPrivate = /\/\*\*([^](?!\*\/))*@module([^](?!\*\/))*@private[^]*?\*\//g;
if (blockCommentPrivate.test(content)) {
return false;
}
var processed = content;
processed = processed.replace(/\/\/[\/\s]*@private((.|\s)*?)\/\/[\/\s]*@endprivate/gm, "");
processed = processed.replace(/\/\/[\/\s]*@private[^]*?\/\/[\/\s]*?@endprivate/gm, "");
return processed;
};