{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/strong-docs/pulls/comments/115888791","pull_request_review_id":37466586,"id":115888791,"diff_hunk":"@@ -0,0 +1,25 @@\n+    var fs = require('fs-extra');\n+    var path = require('path');\n+    var typedoc = require('typedoc');\n+    var express = require('express');\n+\n+    module.exports = function ts(outputPath, previewMode){\n+        \n+        var filePaths = JSON.parse(fs.readFileSync(\"ts-docs.json\")).content;\n+\n+        // Setup our TypeDoc app\n+        var app = new typedoc.Application({\n+            mode:   'Modules',\n+            logger: 'console',\n+            target: 'ES6',\n+            module: 'CommonJS'\n+        });\n+        // Generate the docs\n+        app.generateDocs(filePaths, outputPath);\n+\n+        if(previewMode){","path":"bin/ts.js","position":20,"original_position":20,"commit_id":"049f06f1beb06c8d81baab01188fcce3e64318c6","original_commit_id":"049f06f1beb06c8d81baab01188fcce3e64318c6","user":{"login":"superkhau","id":1617364,"avatar_url":"https://avatars1.githubusercontent.com/u/1617364?v=3","gravatar_id":"","url":"https://api.github.com/users/superkhau","html_url":"https://github.com/superkhau","followers_url":"https://api.github.com/users/superkhau/followers","following_url":"https://api.github.com/users/superkhau/following{/other_user}","gists_url":"https://api.github.com/users/superkhau/gists{/gist_id}","starred_url":"https://api.github.com/users/superkhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superkhau/subscriptions","organizations_url":"https://api.github.com/users/superkhau/orgs","repos_url":"https://api.github.com/users/superkhau/repos","events_url":"https://api.github.com/users/superkhau/events{/privacy}","received_events_url":"https://api.github.com/users/superkhau/received_events","type":"User","site_admin":false},"body":"space before ( and space after )","created_at":"2017-05-11T01:23:33Z","updated_at":"2017-05-11T01:24:44Z","html_url":"https://github.com/strongloop/strong-docs/pull/78#discussion_r115888791","pull_request_url":"https://api.github.com/repos/strongloop/strong-docs/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/strongloop/strong-docs/pulls/comments/115888791"},"html":{"href":"https://github.com/strongloop/strong-docs/pull/78#discussion_r115888791"},"pull_request":{"href":"https://api.github.com/repos/strongloop/strong-docs/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/strong-docs/pulls/78","id":119955408,"html_url":"https://github.com/strongloop/strong-docs/pull/78","diff_url":"https://github.com/strongloop/strong-docs/pull/78.diff","patch_url":"https://github.com/strongloop/strong-docs/pull/78.patch","issue_url":"https://api.github.com/repos/strongloop/strong-docs/issues/78","number":78,"state":"open","locked":false,"title":"Added support to typescript repos","user":{"login":"mpatsute","id":24725376,"avatar_url":"https://avatars0.githubusercontent.com/u/24725376?v=3","gravatar_id":"","url":"https://api.github.com/users/mpatsute","html_url":"https://github.com/mpatsute","followers_url":"https://api.github.com/users/mpatsute/followers","following_url":"https://api.github.com/users/mpatsute/following{/other_user}","gists_url":"https://api.github.com/users/mpatsute/gists{/gist_id}","starred_url":"https://api.github.com/users/mpatsute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpatsute/subscriptions","organizations_url":"https://api.github.com/users/mpatsute/orgs","repos_url":"https://api.github.com/users/mpatsute/repos","events_url":"https://api.github.com/users/mpatsute/events{/privacy}","received_events_url":"https://api.github.com/users/mpatsute/received_events","type":"User","site_admin":false},"body":"This PR is for adding typescript support. The requirement is that we should be able to run \"sdocs\" command in the repo which has type script (.ts) files. The requirement is that the repo-owners will add a file called **ts-docs.json**, which will list the ts files for which the documentation have to be created, similar to the docs.json file we had, that listed the js files. The command to run then (in standalone mode is) is:\r\n```\r\nsdocs --out <output-dir> --type ts\r\n```\r\nThe command to run in preview mode is\r\n```\r\nsdocs --out <output-dir> --type ts --preview\r\n```\r\n**Implementation Details:**\r\nOn seeing the --type flag set to ts, the control moves to ts function that calls the typeDoc api \"generateDocs\", to generate the documentation in the output directory.\r\n\r\n","created_at":"2017-05-10T19:02:22Z","updated_at":"2017-05-11T01:24:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fb00ade63e7b54eaa6dffb1d79b77125dd0d7d0","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ritch","id":462228,"avatar_url":"https://avatars2.githubusercontent.com/u/462228?v=3","gravatar_id":"","url":"https://api.github.com/users/ritch","html_url":"https://github.com/ritch","followers_url":"https://api.github.com/users/ritch/followers","following_url":"https://api.github.com/users/ritch/following{/other_user}","gists_url":"https://api.github.com/users/ritch/gists{/gist_id}","starred_url":"https://api.github.com/users/ritch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritch/subscriptions","organizations_url":"https://api.github.com/users/ritch/orgs","repos_url":"https://api.github.com/users/ritch/repos","events_url":"https://api.github.com/users/ritch/events{/privacy}","received_events_url":"https://api.github.com/users/ritch/received_events","type":"User","site_admin":false},{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars3.githubusercontent.com/u/540892?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},{"login":"hacksparrow","id":950112,"avatar_url":"https://avatars0.githubusercontent.com/u/950112?v=3","gravatar_id":"","url":"https://api.github.com/users/hacksparrow","html_url":"https://github.com/hacksparrow","followers_url":"https://api.github.com/users/hacksparrow/followers","following_url":"https://api.github.com/users/hacksparrow/following{/other_user}","gists_url":"https://api.github.com/users/hacksparrow/gists{/gist_id}","starred_url":"https://api.github.com/users/hacksparrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacksparrow/subscriptions","organizations_url":"https://api.github.com/users/hacksparrow/orgs","repos_url":"https://api.github.com/users/hacksparrow/repos","events_url":"https://api.github.com/users/hacksparrow/events{/privacy}","received_events_url":"https://api.github.com/users/hacksparrow/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/strong-docs/pulls/78/commits","review_comments_url":"https://api.github.com/repos/strongloop/strong-docs/pulls/78/comments","review_comment_url":"https://api.github.com/repos/strongloop/strong-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/strong-docs/issues/78/comments","statuses_url":"https://api.github.com/repos/strongloop/strong-docs/statuses/049f06f1beb06c8d81baab01188fcce3e64318c6","head":{"label":"strongloop:type-script","ref":"type-script","sha":"049f06f1beb06c8d81baab01188fcce3e64318c6","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars2.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":11003447,"name":"strong-docs","full_name":"strongloop/strong-docs","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars2.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/strong-docs","description":"build documentation sites for your node modules","fork":false,"url":"https://api.github.com/repos/strongloop/strong-docs","forks_url":"https://api.github.com/repos/strongloop/strong-docs/forks","keys_url":"https://api.github.com/repos/strongloop/strong-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/strong-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/strong-docs/teams","hooks_url":"https://api.github.com/repos/strongloop/strong-docs/hooks","issue_events_url":"https://api.github.com/repos/strongloop/strong-docs/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/strong-docs/events","assignees_url":"https://api.github.com/repos/strongloop/strong-docs/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/strong-docs/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/strong-docs/tags","blobs_url":"https://api.github.com/repos/strongloop/strong-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/strong-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/strong-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/strong-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/strong-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/strong-docs/languages","stargazers_url":"https://api.github.com/repos/strongloop/strong-docs/stargazers","contributors_url":"https://api.github.com/repos/strongloop/strong-docs/contributors","subscribers_url":"https://api.github.com/repos/strongloop/strong-docs/subscribers","subscription_url":"https://api.github.com/repos/strongloop/strong-docs/subscription","commits_url":"https://api.github.com/repos/strongloop/strong-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/strong-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/strong-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/strong-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/strong-docs/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/strong-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/strong-docs/merges","archive_url":"https://api.github.com/repos/strongloop/strong-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/strong-docs/downloads","issues_url":"https://api.github.com/repos/strongloop/strong-docs/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/strong-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/strong-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/strong-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/strong-docs/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/strong-docs/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/strong-docs/deployments","created_at":"2013-06-27T17:35:20Z","updated_at":"2017-04-06T17:43:02Z","pushed_at":"2017-05-10T19:02:22Z","git_url":"git://github.com/strongloop/strong-docs.git","ssh_url":"git@github.com:strongloop/strong-docs.git","clone_url":"https://github.com/strongloop/strong-docs.git","svn_url":"https://github.com/strongloop/strong-docs","homepage":null,"size":669,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":25,"forks":2,"open_issues":25,"watchers":4,"default_branch":"master"}},"base":{"label":"strongloop:master","ref":"master","sha":"524c5314fca1e31a259bf9178d73fa556392aea3","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars2.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":11003447,"name":"strong-docs","full_name":"strongloop/strong-docs","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars2.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/strong-docs","description":"build documentation sites for your node modules","fork":false,"url":"https://api.github.com/repos/strongloop/strong-docs","forks_url":"https://api.github.com/repos/strongloop/strong-docs/forks","keys_url":"https://api.github.com/repos/strongloop/strong-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/strong-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/strong-docs/teams","hooks_url":"https://api.github.com/repos/strongloop/strong-docs/hooks","issue_events_url":"https://api.github.com/repos/strongloop/strong-docs/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/strong-docs/events","assignees_url":"https://api.github.com/repos/strongloop/strong-docs/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/strong-docs/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/strong-docs/tags","blobs_url":"https://api.github.com/repos/strongloop/strong-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/strong-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/strong-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/strong-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/strong-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/strong-docs/languages","stargazers_url":"https://api.github.com/repos/strongloop/strong-docs/stargazers","contributors_url":"https://api.github.com/repos/strongloop/strong-docs/contributors","subscribers_url":"https://api.github.com/repos/strongloop/strong-docs/subscribers","subscription_url":"https://api.github.com/repos/strongloop/strong-docs/subscription","commits_url":"https://api.github.com/repos/strongloop/strong-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/strong-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/strong-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/strong-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/strong-docs/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/strong-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/strong-docs/merges","archive_url":"https://api.github.com/repos/strongloop/strong-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/strong-docs/downloads","issues_url":"https://api.github.com/repos/strongloop/strong-docs/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/strong-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/strong-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/strong-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/strong-docs/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/strong-docs/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/strong-docs/deployments","created_at":"2013-06-27T17:35:20Z","updated_at":"2017-04-06T17:43:02Z","pushed_at":"2017-05-10T19:02:22Z","git_url":"git://github.com/strongloop/strong-docs.git","ssh_url":"git@github.com:strongloop/strong-docs.git","clone_url":"https://github.com/strongloop/strong-docs.git","svn_url":"https://github.com/strongloop/strong-docs","homepage":null,"size":669,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":25,"forks":2,"open_issues":25,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/strong-docs/pulls/78"},"html":{"href":"https://github.com/strongloop/strong-docs/pull/78"},"issue":{"href":"https://api.github.com/repos/strongloop/strong-docs/issues/78"},"comments":{"href":"https://api.github.com/repos/strongloop/strong-docs/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/strong-docs/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/strong-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/strong-docs/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/strong-docs/statuses/049f06f1beb06c8d81baab01188fcce3e64318c6"}}}}
{"actor":{"display_login":"superkhau"}}