{"action":"created","comment":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/comments/31386666","id":31386666,"diff_hunk":"@@ -37,7 +38,7 @@ export default function BuildBower() {\n     .then(() => Promise.all([\n       bowerConfig(),\n       generateFactories(factoriesDestination, babelOptions),\n-      exec(`babel ${babelOptions} ${srcRoot} --out-dir ${libDestination}`),\n+      buildFolder(srcRoot, libDestination, babelOptions),","path":"tools/amd/build.js","position":22,"original_position":22,"commit_id":"930df5cfbda4b005a9e7cb52ffbac24d3fff3a71","original_commit_id":"930df5cfbda4b005a9e7cb52ffbac24d3fff3a71","user":{"login":"Cellule","id":4157103,"avatar_url":"https://avatars.githubusercontent.com/u/4157103?v=3","gravatar_id":"","url":"https://api.github.com/users/Cellule","html_url":"https://github.com/Cellule","followers_url":"https://api.github.com/users/Cellule/followers","following_url":"https://api.github.com/users/Cellule/following{/other_user}","gists_url":"https://api.github.com/users/Cellule/gists{/gist_id}","starred_url":"https://api.github.com/users/Cellule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cellule/subscriptions","organizations_url":"https://api.github.com/users/Cellule/orgs","repos_url":"https://api.github.com/users/Cellule/repos","events_url":"https://api.github.com/users/Cellule/events{/privacy}","received_events_url":"https://api.github.com/users/Cellule/received_events","type":"User","site_admin":false},"body":"The biggest problem with the cli is that there is no way (that I know) to run it from stdin in a cross platform way.\r\nTherefore, I thought using the api instead would be cleaner. Since I changed to use the api for factories, it would be more uniform to use it everywhere.\r\n\r\nThat said, I think the solution to have write a temporary file then run babel and delete the temp file is also valid. I wanted to show another option to see which we prefer.","created_at":"2015-05-31T03:56:21Z","updated_at":"2015-05-31T03:56:21Z","html_url":"https://github.com/react-bootstrap/react-bootstrap/pull/762#discussion_r31386666","pull_request_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/762","_links":{"self":{"href":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/comments/31386666"},"html":{"href":"https://github.com/react-bootstrap/react-bootstrap/pull/762#discussion_r31386666"},"pull_request":{"href":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/762"}}},"pull_request":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/762","id":36556164,"html_url":"https://github.com/react-bootstrap/react-bootstrap/pull/762","diff_url":"https://github.com/react-bootstrap/react-bootstrap/pull/762.diff","patch_url":"https://github.com/react-bootstrap/react-bootstrap/pull/762.patch","issue_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/762","number":762,"state":"open","locked":false,"title":"Rely on babel api instead of executing the babel cli","user":{"login":"Cellule","id":4157103,"avatar_url":"https://avatars.githubusercontent.com/u/4157103?v=3","gravatar_id":"","url":"https://api.github.com/users/Cellule","html_url":"https://github.com/Cellule","followers_url":"https://api.github.com/users/Cellule/followers","following_url":"https://api.github.com/users/Cellule/following{/other_user}","gists_url":"https://api.github.com/users/Cellule/gists{/gist_id}","starred_url":"https://api.github.com/users/Cellule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cellule/subscriptions","organizations_url":"https://api.github.com/users/Cellule/orgs","repos_url":"https://api.github.com/users/Cellule/repos","events_url":"https://api.github.com/users/Cellule/events{/privacy}","received_events_url":"https://api.github.com/users/Cellule/received_events","type":"User","site_admin":false},"body":"fixes #754\r\nImplements some utility function to build with babel using the api.\r\n`buildGlob` is not use at this moment and can be removed if you wish. It was mostly an attempt to mimic babel-cli.\r\n`'./test/server/*Spec.js'` was not recognised by mocha. I'm not sure if it's particularly related to Windows, but it works this way and I'm confident it will work for Linux.","created_at":"2015-05-30T00:32:30Z","updated_at":"2015-05-31T03:56:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50944ed05b48d86dc2f1d1ff8d6c18fe5fa833db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/762/commits","review_comments_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/762/comments","review_comment_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/762/comments","statuses_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/statuses/930df5cfbda4b005a9e7cb52ffbac24d3fff3a71","head":{"label":"Cellule:babel_api","ref":"babel_api","sha":"930df5cfbda4b005a9e7cb52ffbac24d3fff3a71","user":{"login":"Cellule","id":4157103,"avatar_url":"https://avatars.githubusercontent.com/u/4157103?v=3","gravatar_id":"","url":"https://api.github.com/users/Cellule","html_url":"https://github.com/Cellule","followers_url":"https://api.github.com/users/Cellule/followers","following_url":"https://api.github.com/users/Cellule/following{/other_user}","gists_url":"https://api.github.com/users/Cellule/gists{/gist_id}","starred_url":"https://api.github.com/users/Cellule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cellule/subscriptions","organizations_url":"https://api.github.com/users/Cellule/orgs","repos_url":"https://api.github.com/users/Cellule/repos","events_url":"https://api.github.com/users/Cellule/events{/privacy}","received_events_url":"https://api.github.com/users/Cellule/received_events","type":"User","site_admin":false},"repo":{"id":30688575,"name":"react-bootstrap","full_name":"Cellule/react-bootstrap","owner":{"login":"Cellule","id":4157103,"avatar_url":"https://avatars.githubusercontent.com/u/4157103?v=3","gravatar_id":"","url":"https://api.github.com/users/Cellule","html_url":"https://github.com/Cellule","followers_url":"https://api.github.com/users/Cellule/followers","following_url":"https://api.github.com/users/Cellule/following{/other_user}","gists_url":"https://api.github.com/users/Cellule/gists{/gist_id}","starred_url":"https://api.github.com/users/Cellule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cellule/subscriptions","organizations_url":"https://api.github.com/users/Cellule/orgs","repos_url":"https://api.github.com/users/Cellule/repos","events_url":"https://api.github.com/users/Cellule/events{/privacy}","received_events_url":"https://api.github.com/users/Cellule/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cellule/react-bootstrap","description":"Bootstrap 3 components built with React","fork":true,"url":"https://api.github.com/repos/Cellule/react-bootstrap","forks_url":"https://api.github.com/repos/Cellule/react-bootstrap/forks","keys_url":"https://api.github.com/repos/Cellule/react-bootstrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cellule/react-bootstrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cellule/react-bootstrap/teams","hooks_url":"https://api.github.com/repos/Cellule/react-bootstrap/hooks","issue_events_url":"https://api.github.com/repos/Cellule/react-bootstrap/issues/events{/number}","events_url":"https://api.github.com/repos/Cellule/react-bootstrap/events","assignees_url":"https://api.github.com/repos/Cellule/react-bootstrap/assignees{/user}","branches_url":"https://api.github.com/repos/Cellule/react-bootstrap/branches{/branch}","tags_url":"https://api.github.com/repos/Cellule/react-bootstrap/tags","blobs_url":"https://api.github.com/repos/Cellule/react-bootstrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cellule/react-bootstrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cellule/react-bootstrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cellule/react-bootstrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cellule/react-bootstrap/statuses/{sha}","languages_url":"https://api.github.com/repos/Cellule/react-bootstrap/languages","stargazers_url":"https://api.github.com/repos/Cellule/react-bootstrap/stargazers","contributors_url":"https://api.github.com/repos/Cellule/react-bootstrap/contributors","subscribers_url":"https://api.github.com/repos/Cellule/react-bootstrap/subscribers","subscription_url":"https://api.github.com/repos/Cellule/react-bootstrap/subscription","commits_url":"https://api.github.com/repos/Cellule/react-bootstrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cellule/react-bootstrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cellule/react-bootstrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cellule/react-bootstrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cellule/react-bootstrap/contents/{+path}","compare_url":"https://api.github.com/repos/Cellule/react-bootstrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cellule/react-bootstrap/merges","archive_url":"https://api.github.com/repos/Cellule/react-bootstrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cellule/react-bootstrap/downloads","issues_url":"https://api.github.com/repos/Cellule/react-bootstrap/issues{/number}","pulls_url":"https://api.github.com/repos/Cellule/react-bootstrap/pulls{/number}","milestones_url":"https://api.github.com/repos/Cellule/react-bootstrap/milestones{/number}","notifications_url":"https://api.github.com/repos/Cellule/react-bootstrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cellule/react-bootstrap/labels{/name}","releases_url":"https://api.github.com/repos/Cellule/react-bootstrap/releases{/id}","created_at":"2015-02-12T06:11:26Z","updated_at":"2015-02-12T06:12:48Z","pushed_at":"2015-05-30T00:30:06Z","git_url":"git://github.com/Cellule/react-bootstrap.git","ssh_url":"git@github.com:Cellule/react-bootstrap.git","clone_url":"https://github.com/Cellule/react-bootstrap.git","svn_url":"https://github.com/Cellule/react-bootstrap","homepage":"http://react-bootstrap.github.io/","size":2219,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"react-bootstrap:master","ref":"master","sha":"1a7b2d35031de01dd4dbaab9bdba6b18ff0384c8","user":{"login":"react-bootstrap","id":6853419,"avatar_url":"https://avatars.githubusercontent.com/u/6853419?v=3","gravatar_id":"","url":"https://api.github.com/users/react-bootstrap","html_url":"https://github.com/react-bootstrap","followers_url":"https://api.github.com/users/react-bootstrap/followers","following_url":"https://api.github.com/users/react-bootstrap/following{/other_user}","gists_url":"https://api.github.com/users/react-bootstrap/gists{/gist_id}","starred_url":"https://api.github.com/users/react-bootstrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-bootstrap/subscriptions","organizations_url":"https://api.github.com/users/react-bootstrap/orgs","repos_url":"https://api.github.com/users/react-bootstrap/repos","events_url":"https://api.github.com/users/react-bootstrap/events{/privacy}","received_events_url":"https://api.github.com/users/react-bootstrap/received_events","type":"Organization","site_admin":false},"repo":{"id":15480067,"name":"react-bootstrap","full_name":"react-bootstrap/react-bootstrap","owner":{"login":"react-bootstrap","id":6853419,"avatar_url":"https://avatars.githubusercontent.com/u/6853419?v=3","gravatar_id":"","url":"https://api.github.com/users/react-bootstrap","html_url":"https://github.com/react-bootstrap","followers_url":"https://api.github.com/users/react-bootstrap/followers","following_url":"https://api.github.com/users/react-bootstrap/following{/other_user}","gists_url":"https://api.github.com/users/react-bootstrap/gists{/gist_id}","starred_url":"https://api.github.com/users/react-bootstrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-bootstrap/subscriptions","organizations_url":"https://api.github.com/users/react-bootstrap/orgs","repos_url":"https://api.github.com/users/react-bootstrap/repos","events_url":"https://api.github.com/users/react-bootstrap/events{/privacy}","received_events_url":"https://api.github.com/users/react-bootstrap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/react-bootstrap/react-bootstrap","description":"Bootstrap 3 components built with React","fork":false,"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap","forks_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/forks","keys_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/teams","hooks_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/hooks","issue_events_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/events{/number}","events_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/events","assignees_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/assignees{/user}","branches_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/branches{/branch}","tags_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/tags","blobs_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/statuses/{sha}","languages_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/languages","stargazers_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/stargazers","contributors_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/contributors","subscribers_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/subscribers","subscription_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/subscription","commits_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/contents/{+path}","compare_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/merges","archive_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/downloads","issues_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues{/number}","pulls_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls{/number}","milestones_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/milestones{/number}","notifications_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/labels{/name}","releases_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/releases{/id}","created_at":"2013-12-27T19:06:07Z","updated_at":"2015-05-31T03:12:23Z","pushed_at":"2015-05-31T03:16:12Z","git_url":"git://github.com/react-bootstrap/react-bootstrap.git","ssh_url":"git@github.com:react-bootstrap/react-bootstrap.git","clone_url":"https://github.com/react-bootstrap/react-bootstrap.git","svn_url":"https://github.com/react-bootstrap/react-bootstrap","homepage":"http://react-bootstrap.github.io/","size":9315,"stargazers_count":2384,"watchers_count":2384,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":371,"mirror_url":null,"open_issues_count":109,"forks":371,"open_issues":109,"watchers":2384,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/762"},"html":{"href":"https://github.com/react-bootstrap/react-bootstrap/pull/762"},"issue":{"href":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/762"},"comments":{"href":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/762/comments"},"review_comments":{"href":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/762/comments"},"review_comment":{"href":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/762/commits"},"statuses":{"href":"https://api.github.com/repos/react-bootstrap/react-bootstrap/statuses/930df5cfbda4b005a9e7cb52ffbac24d3fff3a71"}}}}