{"action":"closed","number":58,"pull_request":{"url":"https://api.github.com/repos/bcoe/nyc/pulls/58","id":51948802,"html_url":"https://github.com/bcoe/nyc/pull/58","diff_url":"https://github.com/bcoe/nyc/pull/58.diff","patch_url":"https://github.com/bcoe/nyc/pull/58.patch","issue_url":"https://api.github.com/repos/bcoe/nyc/issues/58","number":58,"state":"closed","locked":false,"title":"Babel/ES2015 Support","user":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"body":"\r\nwith the `--babel` flag, nyc is the easiest way to add ES2015 support to your project:\r\n\r\n1. install the appropriate babel dependencies for your project (`npm i babel-core babel-preset-es2015 --save`).\r\n2. create a `.babelrc` file:\r\n\r\n```json\r\n{\r\n  \"presets\": [\"es2015\"]\r\n}\r\n```\r\n\r\n3. install nyc, and run it with the `--babel` flag:\r\n\r\n```sh\r\nnyc --babel mocha\r\n```\r\n\r\nnyc uses source-maps to map coverage information back to the appropriate lines of the pre-transpiled code:\r\n\r\n<img width=\"808\" alt=\"screen shot 2015-11-26 at 1 57 47 pm\" src=\"https://cloud.githubusercontent.com/assets/194609/11431320/8c9f77dc-944a-11e5-93ab-6dd019a900f8.png\">\r\n\r\nThis is a pretty big change, and I would love some help with the code review, you can try it out in your project by running:\r\n\r\n```sh\r\nnpm i nyc@alpha --save-dev\r\n```\r\n\r\nI hope it solves the problems folks were having with nyc + babel:\r\n\r\nCC: @Janpot, @shannonmoeller, @lfilho, @sindresorhus","created_at":"2015-11-26T22:37:49Z","updated_at":"2015-11-29T18:19:50Z","closed_at":"2015-11-29T18:19:50Z","merged_at":"2015-11-29T18:19:50Z","merge_commit_sha":"f53f92a7f97df9355acf03d1bfa126703f15c92a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bcoe/nyc/pulls/58/commits","review_comments_url":"https://api.github.com/repos/bcoe/nyc/pulls/58/comments","review_comment_url":"https://api.github.com/repos/bcoe/nyc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bcoe/nyc/issues/58/comments","statuses_url":"https://api.github.com/repos/bcoe/nyc/statuses/4b4fcec0d86b88d21f75adf1ade1271bb3ac0d98","head":{"label":"bcoe:babel","ref":"babel","sha":"4b4fcec0d86b88d21f75adf1ade1271bb3ac0d98","user":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"repo":{"id":35312458,"name":"nyc","full_name":"bcoe/nyc","owner":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bcoe/nyc","description":"a code coverage tool that works well with subprocesses.","fork":false,"url":"https://api.github.com/repos/bcoe/nyc","forks_url":"https://api.github.com/repos/bcoe/nyc/forks","keys_url":"https://api.github.com/repos/bcoe/nyc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcoe/nyc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcoe/nyc/teams","hooks_url":"https://api.github.com/repos/bcoe/nyc/hooks","issue_events_url":"https://api.github.com/repos/bcoe/nyc/issues/events{/number}","events_url":"https://api.github.com/repos/bcoe/nyc/events","assignees_url":"https://api.github.com/repos/bcoe/nyc/assignees{/user}","branches_url":"https://api.github.com/repos/bcoe/nyc/branches{/branch}","tags_url":"https://api.github.com/repos/bcoe/nyc/tags","blobs_url":"https://api.github.com/repos/bcoe/nyc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcoe/nyc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcoe/nyc/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcoe/nyc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcoe/nyc/statuses/{sha}","languages_url":"https://api.github.com/repos/bcoe/nyc/languages","stargazers_url":"https://api.github.com/repos/bcoe/nyc/stargazers","contributors_url":"https://api.github.com/repos/bcoe/nyc/contributors","subscribers_url":"https://api.github.com/repos/bcoe/nyc/subscribers","subscription_url":"https://api.github.com/repos/bcoe/nyc/subscription","commits_url":"https://api.github.com/repos/bcoe/nyc/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcoe/nyc/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcoe/nyc/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcoe/nyc/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcoe/nyc/contents/{+path}","compare_url":"https://api.github.com/repos/bcoe/nyc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcoe/nyc/merges","archive_url":"https://api.github.com/repos/bcoe/nyc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcoe/nyc/downloads","issues_url":"https://api.github.com/repos/bcoe/nyc/issues{/number}","pulls_url":"https://api.github.com/repos/bcoe/nyc/pulls{/number}","milestones_url":"https://api.github.com/repos/bcoe/nyc/milestones{/number}","notifications_url":"https://api.github.com/repos/bcoe/nyc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcoe/nyc/labels{/name}","releases_url":"https://api.github.com/repos/bcoe/nyc/releases{/id}","created_at":"2015-05-09T02:55:45Z","updated_at":"2015-11-29T18:16:19Z","pushed_at":"2015-11-29T18:19:50Z","git_url":"git://github.com/bcoe/nyc.git","ssh_url":"git@github.com:bcoe/nyc.git","clone_url":"https://github.com/bcoe/nyc.git","svn_url":"https://github.com/bcoe/nyc","homepage":"","size":315,"stargazers_count":124,"watchers_count":124,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":13,"forks":11,"open_issues":13,"watchers":124,"default_branch":"master"}},"base":{"label":"bcoe:master","ref":"master","sha":"4e9545a0c039032585149bf503c797f975e1e982","user":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"repo":{"id":35312458,"name":"nyc","full_name":"bcoe/nyc","owner":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bcoe/nyc","description":"a code coverage tool that works well with subprocesses.","fork":false,"url":"https://api.github.com/repos/bcoe/nyc","forks_url":"https://api.github.com/repos/bcoe/nyc/forks","keys_url":"https://api.github.com/repos/bcoe/nyc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcoe/nyc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcoe/nyc/teams","hooks_url":"https://api.github.com/repos/bcoe/nyc/hooks","issue_events_url":"https://api.github.com/repos/bcoe/nyc/issues/events{/number}","events_url":"https://api.github.com/repos/bcoe/nyc/events","assignees_url":"https://api.github.com/repos/bcoe/nyc/assignees{/user}","branches_url":"https://api.github.com/repos/bcoe/nyc/branches{/branch}","tags_url":"https://api.github.com/repos/bcoe/nyc/tags","blobs_url":"https://api.github.com/repos/bcoe/nyc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcoe/nyc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcoe/nyc/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcoe/nyc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcoe/nyc/statuses/{sha}","languages_url":"https://api.github.com/repos/bcoe/nyc/languages","stargazers_url":"https://api.github.com/repos/bcoe/nyc/stargazers","contributors_url":"https://api.github.com/repos/bcoe/nyc/contributors","subscribers_url":"https://api.github.com/repos/bcoe/nyc/subscribers","subscription_url":"https://api.github.com/repos/bcoe/nyc/subscription","commits_url":"https://api.github.com/repos/bcoe/nyc/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcoe/nyc/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcoe/nyc/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcoe/nyc/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcoe/nyc/contents/{+path}","compare_url":"https://api.github.com/repos/bcoe/nyc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcoe/nyc/merges","archive_url":"https://api.github.com/repos/bcoe/nyc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcoe/nyc/downloads","issues_url":"https://api.github.com/repos/bcoe/nyc/issues{/number}","pulls_url":"https://api.github.com/repos/bcoe/nyc/pulls{/number}","milestones_url":"https://api.github.com/repos/bcoe/nyc/milestones{/number}","notifications_url":"https://api.github.com/repos/bcoe/nyc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcoe/nyc/labels{/name}","releases_url":"https://api.github.com/repos/bcoe/nyc/releases{/id}","created_at":"2015-05-09T02:55:45Z","updated_at":"2015-11-29T18:16:19Z","pushed_at":"2015-11-29T18:19:50Z","git_url":"git://github.com/bcoe/nyc.git","ssh_url":"git@github.com:bcoe/nyc.git","clone_url":"https://github.com/bcoe/nyc.git","svn_url":"https://github.com/bcoe/nyc","homepage":"","size":315,"stargazers_count":124,"watchers_count":124,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":13,"forks":11,"open_issues":13,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bcoe/nyc/pulls/58"},"html":{"href":"https://github.com/bcoe/nyc/pull/58"},"issue":{"href":"https://api.github.com/repos/bcoe/nyc/issues/58"},"comments":{"href":"https://api.github.com/repos/bcoe/nyc/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/bcoe/nyc/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/bcoe/nyc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bcoe/nyc/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/bcoe/nyc/statuses/4b4fcec0d86b88d21f75adf1ade1271bb3ac0d98"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"comments":23,"review_comments":0,"commits":4,"additions":6560,"deletions":19,"changed_files":13}}