Skip to content

Instantly share code, notes, and snippets.

@ry
Created April 6, 2018 23:35
Show Gist options
  • Save ry/4e5dc194debf3ff6d286fb82394f1789 to your computer and use it in GitHub Desktop.
Save ry/4e5dc194debf3ff6d286fb82394f1789 to your computer and use it in GitHub Desktop.
From 17cc30176e74af0542712d6ea8ac9c1731bbd208 Mon Sep 17 00:00:00 2001
From: Ryan Dahl <ry@tinyclouds.org>
Date: Sat, 7 Apr 2018 07:52:30 +0900
Subject: [PATCH] debug gendoc
---
src/util.ts | 2 +-
tools/gendoc.ts | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/util.ts b/src/util.ts
index 70c979b..d54f4e2 100644
--- a/src/util.ts
+++ b/src/util.ts
@@ -15,7 +15,7 @@
import { OutputHandler } from "./output_handler";
import { RegularArray } from "./types";
-const debug = false;
+const debug = true;
// If you use the eval function indirectly, by invoking it via a reference
// other than eval, as of ECMAScript 5 it works in the global scope rather than
diff --git a/tools/gendoc.ts b/tools/gendoc.ts
index 7a2e49f..67bebcc 100644
--- a/tools/gendoc.ts
+++ b/tools/gendoc.ts
@@ -33,6 +33,8 @@ const repoBaseUrl = "https://github.com/propelml/propel";
const fileGithubUrls = new Map<string, string>();
+console.log("typescript version", ts.versionMajorMinor);
+
function getGithubUrlForFile(fileName: string) {
if (fileGithubUrls.has(fileName)) {
return fileGithubUrls.get(fileName);
@@ -103,6 +105,8 @@ export function genJSON(): DocEntry[] {
if (!exclude.some(excludeDir => sourceFileName.includes(excludeDir))) {
visitQueue.push(decls[0]);
visitHistory.set(s, true);
+ } else {
+ console.log("DEBUG exclude.... ", sourceFileName, exclude);
}
}
}
--
2.15.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment