mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3203] Fixed doc tools bugs from Linux run and added verbose option (#3496)
This commit is contained in:
committed by
Eugenio Romano
parent
257e422a1c
commit
5b3fb4856d
@@ -53,6 +53,10 @@ function updatePhase(filenames, aggData) {
|
||||
errorMessages = [];
|
||||
var pathname = filenames[i]; // path.resolve(srcFolder, filenames[i]);
|
||||
|
||||
if (program.verbose) {
|
||||
console.log(pathname);
|
||||
}
|
||||
|
||||
var src = fs.readFileSync(pathname);
|
||||
var tree = remark().use(frontMatter, ["yaml"]).parse(src)
|
||||
|
||||
@@ -132,6 +136,7 @@ program
|
||||
.usage("[options] <source>")
|
||||
.option("-p, --profile [profileName]", "Select named config profile", "default")
|
||||
.option("-j, --json", "Output JSON data for Markdown syntax tree")
|
||||
.option("-v, --verbose", "Log doc files as they are processed")
|
||||
.parse(process.argv);
|
||||
|
||||
var sourcePath;
|
||||
|
Reference in New Issue
Block a user