{"action":"created","issue":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1108","labels_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1108/labels{/name}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1108/comments","events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1108/events","html_url":"https://github.com/cfpb/cfgov-refresh/pull/1108","id":113457401,"number":1108,"title":"Fixes #1004 - Uses globally installed protractor, if available","user":{"login":"anselmbradford","id":704760,"avatar_url":"https://avatars.githubusercontent.com/u/704760?v=3","gravatar_id":"","url":"https://api.github.com/users/anselmbradford","html_url":"https://github.com/anselmbradford","followers_url":"https://api.github.com/users/anselmbradford/followers","following_url":"https://api.github.com/users/anselmbradford/following{/other_user}","gists_url":"https://api.github.com/users/anselmbradford/gists{/gist_id}","starred_url":"https://api.github.com/users/anselmbradford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anselmbradford/subscriptions","organizations_url":"https://api.github.com/users/anselmbradford/orgs","repos_url":"https://api.github.com/users/anselmbradford/repos","events_url":"https://api.github.com/users/anselmbradford/events{/privacy}","received_events_url":"https://api.github.com/users/anselmbradford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-26T21:42:09Z","updated_at":"2015-10-29T18:06:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/1108","html_url":"https://github.com/cfpb/cfgov-refresh/pull/1108","diff_url":"https://github.com/cfpb/cfgov-refresh/pull/1108.diff","patch_url":"https://github.com/cfpb/cfgov-refresh/pull/1108.patch"},"body":"Fixes #1004 - Uses globally installed protractor, if available. Chromedriver takes awhile to download. With this PR if protractor is installed globally, it will be copied into the `node_modules` directory, instead of downloading it every time. This cuts the time of `setup.sh` by approximately 40%.\r\n\r\n## Changes\r\n\r\n- Uses globally installed protractor in `setup.sh`, if available.\r\n\r\n## Testing\r\n\r\n- `npm install -g protractor && webdriver-manager update` if you don't have global protractor.\r\n- Run `./setup.sh local`. Time should be around 2.5min, depending on Internet connection.\r\n- `npm uninstall -g protractor`\r\n- Run  `./setup.sh local`. Time should be about 4min, depending on Internet connection.\r\n- Re-install global protractor, if you want the faster build time.\r\n\r\n## Review\r\n\r\n- @jimmynotjim \r\n- @KimberlyMunoz \r\n- @sebworks "},"comment":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/comments/152268726","html_url":"https://github.com/cfpb/cfgov-refresh/pull/1108#issuecomment-152268726","issue_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1108","id":152268726,"user":{"login":"KimberlyMunoz","id":1860176,"avatar_url":"https://avatars.githubusercontent.com/u/1860176?v=3","gravatar_id":"","url":"https://api.github.com/users/KimberlyMunoz","html_url":"https://github.com/KimberlyMunoz","followers_url":"https://api.github.com/users/KimberlyMunoz/followers","following_url":"https://api.github.com/users/KimberlyMunoz/following{/other_user}","gists_url":"https://api.github.com/users/KimberlyMunoz/gists{/gist_id}","starred_url":"https://api.github.com/users/KimberlyMunoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KimberlyMunoz/subscriptions","organizations_url":"https://api.github.com/users/KimberlyMunoz/orgs","repos_url":"https://api.github.com/users/KimberlyMunoz/repos","events_url":"https://api.github.com/users/KimberlyMunoz/events{/privacy}","received_events_url":"https://api.github.com/users/KimberlyMunoz/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T18:06:31Z","updated_at":"2015-10-29T18:06:31Z","body":"The download speeds are about the same for me, but the logs looks as though they're doing as they should. I'm going to leave this for someone else to give a second look at,  but LGTM"}}