{"action":"created","comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/comments/80033254","id":80033254,"diff_hunk":"@@ -40,6 +40,7 @@\n     \"cross-spawn\": \"4.0.0\",\n     \"css-loader\": \"0.24.0\",\n     \"detect-port\": \"1.0.0\",\n+    \"dotenv\": \"^2.0.0\",","path":"packages/react-scripts/package.json","position":4,"original_position":4,"commit_id":"e8510b3a4f312d5911f4c65e9a1817129baccb37","original_commit_id":"e8510b3a4f312d5911f4c65e9a1817129baccb37","user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"body":"Please keep the version pinned (`2.0.0`). We’re a bit more on the conservative side about updates.","created_at":"2016-09-22T12:55:38Z","updated_at":"2016-09-22T12:55:41Z","html_url":"https://github.com/facebookincubator/create-react-app/pull/695#discussion_r80033254","pull_request_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/695","_links":{"self":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/comments/80033254"},"html":{"href":"https://github.com/facebookincubator/create-react-app/pull/695#discussion_r80033254"},"pull_request":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/695"}}},"pull_request":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/695","id":86234730,"html_url":"https://github.com/facebookincubator/create-react-app/pull/695","diff_url":"https://github.com/facebookincubator/create-react-app/pull/695.diff","patch_url":"https://github.com/facebookincubator/create-react-app/pull/695.patch","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/695","number":695,"state":"open","locked":false,"title":"Load environment file in development","user":{"login":"ayrton","id":440926,"avatar_url":"https://avatars.githubusercontent.com/u/440926?v=3","gravatar_id":"","url":"https://api.github.com/users/ayrton","html_url":"https://github.com/ayrton","followers_url":"https://api.github.com/users/ayrton/followers","following_url":"https://api.github.com/users/ayrton/following{/other_user}","gists_url":"https://api.github.com/users/ayrton/gists{/gist_id}","starred_url":"https://api.github.com/users/ayrton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayrton/subscriptions","organizations_url":"https://api.github.com/users/ayrton/orgs","repos_url":"https://api.github.com/users/ayrton/repos","events_url":"https://api.github.com/users/ayrton/events{/privacy}","received_events_url":"https://api.github.com/users/ayrton/received_events","type":"User","site_admin":false},"body":"Adds support to load environment variables via a .env file for development using the very stable and battle tested ⚔ npm package [dotenv](https://github.com/motdotla/dotenv). For more context see https://github.com/facebookincubator/create-react-app/issues/687.\r\n\r\nI've tested this out by doing the following:\r\n\r\n```sh\r\nnpm run create-react-app my-app\r\ncd my-app\r\necho \"NODE_ENV=.\" >> .env\r\nnpm start\r\n```\r\n\r\nIn `my-app/src/index.js` I changed `import App from './App';` to `import App from 'src/App';` and verified all still works (including tests)\r\n\r\n","created_at":"2016-09-21T20:24:36Z","updated_at":"2016-09-22T12:55:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfe04102734b8f25dc95df6c41f01fe15b0636d8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/695/commits","review_comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/695/comments","review_comment_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/695/comments","statuses_url":"https://api.github.com/repos/facebookincubator/create-react-app/statuses/e8510b3a4f312d5911f4c65e9a1817129baccb37","head":{"label":"ayrton:environment-variables","ref":"environment-variables","sha":"e8510b3a4f312d5911f4c65e9a1817129baccb37","user":{"login":"ayrton","id":440926,"avatar_url":"https://avatars.githubusercontent.com/u/440926?v=3","gravatar_id":"","url":"https://api.github.com/users/ayrton","html_url":"https://github.com/ayrton","followers_url":"https://api.github.com/users/ayrton/followers","following_url":"https://api.github.com/users/ayrton/following{/other_user}","gists_url":"https://api.github.com/users/ayrton/gists{/gist_id}","starred_url":"https://api.github.com/users/ayrton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayrton/subscriptions","organizations_url":"https://api.github.com/users/ayrton/orgs","repos_url":"https://api.github.com/users/ayrton/repos","events_url":"https://api.github.com/users/ayrton/events{/privacy}","received_events_url":"https://api.github.com/users/ayrton/received_events","type":"User","site_admin":false},"repo":{"id":68851901,"name":"create-react-app","full_name":"ayrton/create-react-app","owner":{"login":"ayrton","id":440926,"avatar_url":"https://avatars.githubusercontent.com/u/440926?v=3","gravatar_id":"","url":"https://api.github.com/users/ayrton","html_url":"https://github.com/ayrton","followers_url":"https://api.github.com/users/ayrton/followers","following_url":"https://api.github.com/users/ayrton/following{/other_user}","gists_url":"https://api.github.com/users/ayrton/gists{/gist_id}","starred_url":"https://api.github.com/users/ayrton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayrton/subscriptions","organizations_url":"https://api.github.com/users/ayrton/orgs","repos_url":"https://api.github.com/users/ayrton/repos","events_url":"https://api.github.com/users/ayrton/events{/privacy}","received_events_url":"https://api.github.com/users/ayrton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ayrton/create-react-app","description":"Create React apps with no build configuration.","fork":true,"url":"https://api.github.com/repos/ayrton/create-react-app","forks_url":"https://api.github.com/repos/ayrton/create-react-app/forks","keys_url":"https://api.github.com/repos/ayrton/create-react-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ayrton/create-react-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ayrton/create-react-app/teams","hooks_url":"https://api.github.com/repos/ayrton/create-react-app/hooks","issue_events_url":"https://api.github.com/repos/ayrton/create-react-app/issues/events{/number}","events_url":"https://api.github.com/repos/ayrton/create-react-app/events","assignees_url":"https://api.github.com/repos/ayrton/create-react-app/assignees{/user}","branches_url":"https://api.github.com/repos/ayrton/create-react-app/branches{/branch}","tags_url":"https://api.github.com/repos/ayrton/create-react-app/tags","blobs_url":"https://api.github.com/repos/ayrton/create-react-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ayrton/create-react-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ayrton/create-react-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/ayrton/create-react-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ayrton/create-react-app/statuses/{sha}","languages_url":"https://api.github.com/repos/ayrton/create-react-app/languages","stargazers_url":"https://api.github.com/repos/ayrton/create-react-app/stargazers","contributors_url":"https://api.github.com/repos/ayrton/create-react-app/contributors","subscribers_url":"https://api.github.com/repos/ayrton/create-react-app/subscribers","subscription_url":"https://api.github.com/repos/ayrton/create-react-app/subscription","commits_url":"https://api.github.com/repos/ayrton/create-react-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/ayrton/create-react-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/ayrton/create-react-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/ayrton/create-react-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/ayrton/create-react-app/contents/{+path}","compare_url":"https://api.github.com/repos/ayrton/create-react-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ayrton/create-react-app/merges","archive_url":"https://api.github.com/repos/ayrton/create-react-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ayrton/create-react-app/downloads","issues_url":"https://api.github.com/repos/ayrton/create-react-app/issues{/number}","pulls_url":"https://api.github.com/repos/ayrton/create-react-app/pulls{/number}","milestones_url":"https://api.github.com/repos/ayrton/create-react-app/milestones{/number}","notifications_url":"https://api.github.com/repos/ayrton/create-react-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ayrton/create-react-app/labels{/name}","releases_url":"https://api.github.com/repos/ayrton/create-react-app/releases{/id}","deployments_url":"https://api.github.com/repos/ayrton/create-react-app/deployments","created_at":"2016-09-21T19:45:29Z","updated_at":"2016-09-21T19:45:31Z","pushed_at":"2016-09-21T20:20:38Z","git_url":"git://github.com/ayrton/create-react-app.git","ssh_url":"git@github.com:ayrton/create-react-app.git","clone_url":"https://github.com/ayrton/create-react-app.git","svn_url":"https://github.com/ayrton/create-react-app","homepage":null,"size":830,"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":"facebookincubator:master","ref":"master","sha":"d2128b62f01e8516accc025dbd0f0db1985852f4","user":{"login":"facebookincubator","id":19538647,"avatar_url":"https://avatars.githubusercontent.com/u/19538647?v=3","gravatar_id":"","url":"https://api.github.com/users/facebookincubator","html_url":"https://github.com/facebookincubator","followers_url":"https://api.github.com/users/facebookincubator/followers","following_url":"https://api.github.com/users/facebookincubator/following{/other_user}","gists_url":"https://api.github.com/users/facebookincubator/gists{/gist_id}","starred_url":"https://api.github.com/users/facebookincubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebookincubator/subscriptions","organizations_url":"https://api.github.com/users/facebookincubator/orgs","repos_url":"https://api.github.com/users/facebookincubator/repos","events_url":"https://api.github.com/users/facebookincubator/events{/privacy}","received_events_url":"https://api.github.com/users/facebookincubator/received_events","type":"Organization","site_admin":false},"repo":{"id":63537249,"name":"create-react-app","full_name":"facebookincubator/create-react-app","owner":{"login":"facebookincubator","id":19538647,"avatar_url":"https://avatars.githubusercontent.com/u/19538647?v=3","gravatar_id":"","url":"https://api.github.com/users/facebookincubator","html_url":"https://github.com/facebookincubator","followers_url":"https://api.github.com/users/facebookincubator/followers","following_url":"https://api.github.com/users/facebookincubator/following{/other_user}","gists_url":"https://api.github.com/users/facebookincubator/gists{/gist_id}","starred_url":"https://api.github.com/users/facebookincubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebookincubator/subscriptions","organizations_url":"https://api.github.com/users/facebookincubator/orgs","repos_url":"https://api.github.com/users/facebookincubator/repos","events_url":"https://api.github.com/users/facebookincubator/events{/privacy}","received_events_url":"https://api.github.com/users/facebookincubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebookincubator/create-react-app","description":"Create React apps with no build configuration.","fork":false,"url":"https://api.github.com/repos/facebookincubator/create-react-app","forks_url":"https://api.github.com/repos/facebookincubator/create-react-app/forks","keys_url":"https://api.github.com/repos/facebookincubator/create-react-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebookincubator/create-react-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebookincubator/create-react-app/teams","hooks_url":"https://api.github.com/repos/facebookincubator/create-react-app/hooks","issue_events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/events{/number}","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/events","assignees_url":"https://api.github.com/repos/facebookincubator/create-react-app/assignees{/user}","branches_url":"https://api.github.com/repos/facebookincubator/create-react-app/branches{/branch}","tags_url":"https://api.github.com/repos/facebookincubator/create-react-app/tags","blobs_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebookincubator/create-react-app/statuses/{sha}","languages_url":"https://api.github.com/repos/facebookincubator/create-react-app/languages","stargazers_url":"https://api.github.com/repos/facebookincubator/create-react-app/stargazers","contributors_url":"https://api.github.com/repos/facebookincubator/create-react-app/contributors","subscribers_url":"https://api.github.com/repos/facebookincubator/create-react-app/subscribers","subscription_url":"https://api.github.com/repos/facebookincubator/create-react-app/subscription","commits_url":"https://api.github.com/repos/facebookincubator/create-react-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebookincubator/create-react-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebookincubator/create-react-app/contents/{+path}","compare_url":"https://api.github.com/repos/facebookincubator/create-react-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebookincubator/create-react-app/merges","archive_url":"https://api.github.com/repos/facebookincubator/create-react-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebookincubator/create-react-app/downloads","issues_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues{/number}","pulls_url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls{/number}","milestones_url":"https://api.github.com/repos/facebookincubator/create-react-app/milestones{/number}","notifications_url":"https://api.github.com/repos/facebookincubator/create-react-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/labels{/name}","releases_url":"https://api.github.com/repos/facebookincubator/create-react-app/releases{/id}","deployments_url":"https://api.github.com/repos/facebookincubator/create-react-app/deployments","created_at":"2016-07-17T14:55:11Z","updated_at":"2016-09-22T12:53:19Z","pushed_at":"2016-09-22T12:08:24Z","git_url":"git://github.com/facebookincubator/create-react-app.git","ssh_url":"git@github.com:facebookincubator/create-react-app.git","clone_url":"https://github.com/facebookincubator/create-react-app.git","svn_url":"https://github.com/facebookincubator/create-react-app","homepage":null,"size":1993,"stargazers_count":11260,"watchers_count":11260,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":823,"mirror_url":null,"open_issues_count":101,"forks":823,"open_issues":101,"watchers":11260,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/695"},"html":{"href":"https://github.com/facebookincubator/create-react-app/pull/695"},"issue":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/issues/695"},"comments":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/issues/695/comments"},"review_comments":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/695/comments"},"review_comment":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/695/commits"},"statuses":{"href":"https://api.github.com/repos/facebookincubator/create-react-app/statuses/e8510b3a4f312d5911f4c65e9a1817129baccb37"}}}}
{"actor":{"display_login":"gaearon"}}