{"action":"created","comment":{"url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/comments/28510378","id":28510378,"diff_hunk":"@@ -40,4 +37,85 @@ Babel.prototype.copyOptions = function() {\n   return cloned;\n };\n \n+// Promise-enabled utilities.\n+\n+// Recursively go through source directory and return file list.\n+function deepList(dir) {\n+  return new rsvp.Promise(function(resolve, reject) {\n+    recreaddir(dir, function(err, files) {\n+      resolve(files.map(function(file) {\n+        // Normalize slashes in directories.\n+        return file.replace(/\\\\/g, '/');\n+      }));\n+    });\n+  });\n+}\n+// Read file; transpile it if it's JavaScript.\n+function readAndTranspile(loc, options, ext) {\n+  return new rsvp.Promise(function(resolve, reject) {\n+    fs.readFile(loc, 'utf8', function(err, data) {\n+      // Non-target filetype.","path":"index.js","position":60,"original_position":60,"commit_id":"f08d6d562345356fe0377e833ae127fa28e38378","original_commit_id":"f08d6d562345356fe0377e833ae127fa28e38378","user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"body":"err never rejects","created_at":"2015-04-16T13:47:28Z","updated_at":"2015-04-16T13:47:28Z","html_url":"https://github.com/babel/broccoli-babel-transpiler/pull/20#discussion_r28510378","pull_request_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/comments/28510378"},"html":{"href":"https://github.com/babel/broccoli-babel-transpiler/pull/20#discussion_r28510378"},"pull_request":{"href":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/20","id":32612570,"html_url":"https://github.com/babel/broccoli-babel-transpiler/pull/20","diff_url":"https://github.com/babel/broccoli-babel-transpiler/pull/20.diff","patch_url":"https://github.com/babel/broccoli-babel-transpiler/pull/20.patch","issue_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/issues/20","number":20,"state":"open","locked":false,"title":"External Source Map Support","user":{"login":"brianblakely","id":401422,"avatar_url":"https://avatars.githubusercontent.com/u/401422?v=3","gravatar_id":"","url":"https://api.github.com/users/brianblakely","html_url":"https://github.com/brianblakely","followers_url":"https://api.github.com/users/brianblakely/followers","following_url":"https://api.github.com/users/brianblakely/following{/other_user}","gists_url":"https://api.github.com/users/brianblakely/gists{/gist_id}","starred_url":"https://api.github.com/users/brianblakely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianblakely/subscriptions","organizations_url":"https://api.github.com/users/brianblakely/orgs","repos_url":"https://api.github.com/users/brianblakely/repos","events_url":"https://api.github.com/users/brianblakely/events{/privacy}","received_events_url":"https://api.github.com/users/brianblakely/received_events","type":"User","site_admin":false},"body":"This should work just like the previous version, but with the ability to create external source maps.\r\n\r\n**Notes**\r\n\r\n* Switched from Filter to Writer base class.\r\n\r\n* As you can imagine, there was a lot more handwork involved; existing behavior was reimplemented manually.\r\n\r\n* Callback hell is mostly mitigated with Promises.\r\n\r\n* Tests still need to be rewritten. Haven't touched them at all so far.  If you care about that right now, might want to pull this into a new branch.","created_at":"2015-04-03T20:00:57Z","updated_at":"2015-04-16T13:47:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59e19179f1a7c9cf0302cec81242b22f4710e86b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/20/commits","review_comments_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/20/comments","review_comment_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/issues/20/comments","statuses_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/statuses/f08d6d562345356fe0377e833ae127fa28e38378","head":{"label":"brianblakely:ext-src-map","ref":"ext-src-map","sha":"f08d6d562345356fe0377e833ae127fa28e38378","user":{"login":"brianblakely","id":401422,"avatar_url":"https://avatars.githubusercontent.com/u/401422?v=3","gravatar_id":"","url":"https://api.github.com/users/brianblakely","html_url":"https://github.com/brianblakely","followers_url":"https://api.github.com/users/brianblakely/followers","following_url":"https://api.github.com/users/brianblakely/following{/other_user}","gists_url":"https://api.github.com/users/brianblakely/gists{/gist_id}","starred_url":"https://api.github.com/users/brianblakely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianblakely/subscriptions","organizations_url":"https://api.github.com/users/brianblakely/orgs","repos_url":"https://api.github.com/users/brianblakely/repos","events_url":"https://api.github.com/users/brianblakely/events{/privacy}","received_events_url":"https://api.github.com/users/brianblakely/received_events","type":"User","site_admin":false},"repo":{"id":33017951,"name":"broccoli-babel-transpiler","full_name":"brianblakely/broccoli-babel-transpiler","owner":{"login":"brianblakely","id":401422,"avatar_url":"https://avatars.githubusercontent.com/u/401422?v=3","gravatar_id":"","url":"https://api.github.com/users/brianblakely","html_url":"https://github.com/brianblakely","followers_url":"https://api.github.com/users/brianblakely/followers","following_url":"https://api.github.com/users/brianblakely/following{/other_user}","gists_url":"https://api.github.com/users/brianblakely/gists{/gist_id}","starred_url":"https://api.github.com/users/brianblakely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianblakely/subscriptions","organizations_url":"https://api.github.com/users/brianblakely/orgs","repos_url":"https://api.github.com/users/brianblakely/repos","events_url":"https://api.github.com/users/brianblakely/events{/privacy}","received_events_url":"https://api.github.com/users/brianblakely/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brianblakely/broccoli-babel-transpiler","description":"Broccoli plugin for babel","fork":true,"url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler","forks_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/forks","keys_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/teams","hooks_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/hooks","issue_events_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/issues/events{/number}","events_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/events","assignees_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/assignees{/user}","branches_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/branches{/branch}","tags_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/tags","blobs_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/statuses/{sha}","languages_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/languages","stargazers_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/stargazers","contributors_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/contributors","subscribers_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/subscribers","subscription_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/subscription","commits_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/contents/{+path}","compare_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/merges","archive_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/downloads","issues_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/issues{/number}","pulls_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/pulls{/number}","milestones_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/milestones{/number}","notifications_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/labels{/name}","releases_url":"https://api.github.com/repos/brianblakely/broccoli-babel-transpiler/releases{/id}","created_at":"2015-03-28T02:13:00Z","updated_at":"2015-04-04T03:23:15Z","pushed_at":"2015-04-03T19:51:54Z","git_url":"git://github.com/brianblakely/broccoli-babel-transpiler.git","ssh_url":"git@github.com:brianblakely/broccoli-babel-transpiler.git","clone_url":"https://github.com/brianblakely/broccoli-babel-transpiler.git","svn_url":"https://github.com/brianblakely/broccoli-babel-transpiler","homepage":"https://github.com/babel/broccoli-babel-transpiler","size":119,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"babel:master","ref":"master","sha":"3304a4c975d5a611f062a9fa528ff9943840e4c7","user":{"login":"babel","id":9637642,"avatar_url":"https://avatars.githubusercontent.com/u/9637642?v=3","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"repo":{"id":25077882,"name":"broccoli-babel-transpiler","full_name":"babel/broccoli-babel-transpiler","owner":{"login":"babel","id":9637642,"avatar_url":"https://avatars.githubusercontent.com/u/9637642?v=3","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/babel/broccoli-babel-transpiler","description":"Broccoli plugin for babel","fork":false,"url":"https://api.github.com/repos/babel/broccoli-babel-transpiler","forks_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/forks","keys_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/teams","hooks_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/hooks","issue_events_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/issues/events{/number}","events_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/events","assignees_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/assignees{/user}","branches_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/branches{/branch}","tags_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/tags","blobs_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/statuses/{sha}","languages_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/languages","stargazers_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/stargazers","contributors_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/contributors","subscribers_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/subscribers","subscription_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/subscription","commits_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/contents/{+path}","compare_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/merges","archive_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/downloads","issues_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/issues{/number}","pulls_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls{/number}","milestones_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/milestones{/number}","notifications_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/labels{/name}","releases_url":"https://api.github.com/repos/babel/broccoli-babel-transpiler/releases{/id}","created_at":"2014-10-11T12:47:58Z","updated_at":"2015-04-14T21:58:41Z","pushed_at":"2015-04-14T03:45:38Z","git_url":"git://github.com/babel/broccoli-babel-transpiler.git","ssh_url":"git@github.com:babel/broccoli-babel-transpiler.git","clone_url":"https://github.com/babel/broccoli-babel-transpiler.git","svn_url":"https://github.com/babel/broccoli-babel-transpiler","homepage":"https://github.com/babel/broccoli-babel-transpiler","size":532,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":8,"forks":7,"open_issues":8,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/20"},"html":{"href":"https://github.com/babel/broccoli-babel-transpiler/pull/20"},"issue":{"href":"https://api.github.com/repos/babel/broccoli-babel-transpiler/issues/20"},"comments":{"href":"https://api.github.com/repos/babel/broccoli-babel-transpiler/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/babel/broccoli-babel-transpiler/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/babel/broccoli-babel-transpiler/statuses/f08d6d562345356fe0377e833ae127fa28e38378"}}}}