{"action":"created","comment":{"url":"https://api.github.com/repos/npm/scope-it/pulls/comments/45271968","id":45271968,"diff_hunk":"@@ -81,6 +99,11 @@ function rewrite(cb){\n   walkdir(dir,function(p,stat){\n     if(p.substr(p.length-3) !== '.js') return\n     if(~p.indexOf('.git') || ~p.indexOf('node_modules')) return\n+    for (var i = 0; i < ignorePaths.length; i++){","path":"bin/cli.js","position":36,"original_position":36,"commit_id":"584648f710f1646f5c881af198173f1709b3ba9a","original_commit_id":"584648f710f1646f5c881af198173f1709b3ba9a","user":{"login":"jangie","id":698291,"avatar_url":"https://avatars.githubusercontent.com/u/698291?v=3","gravatar_id":"","url":"https://api.github.com/users/jangie","html_url":"https://github.com/jangie","followers_url":"https://api.github.com/users/jangie/followers","following_url":"https://api.github.com/users/jangie/following{/other_user}","gists_url":"https://api.github.com/users/jangie/gists{/gist_id}","starred_url":"https://api.github.com/users/jangie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jangie/subscriptions","organizations_url":"https://api.github.com/users/jangie/orgs","repos_url":"https://api.github.com/users/jangie/repos","events_url":"https://api.github.com/users/jangie/events{/privacy}","received_events_url":"https://api.github.com/users/jangie/received_events","type":"User","site_admin":false},"body":"Ah, true. I think that we could do that so long as we normalized the end of the inputted paths such that they matched whatever is returned as it's being walked.","created_at":"2015-11-18T22:38:59Z","updated_at":"2015-11-18T22:38:59Z","html_url":"https://github.com/npm/scope-it/pull/3#discussion_r45271968","pull_request_url":"https://api.github.com/repos/npm/scope-it/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/npm/scope-it/pulls/comments/45271968"},"html":{"href":"https://github.com/npm/scope-it/pull/3#discussion_r45271968"},"pull_request":{"href":"https://api.github.com/repos/npm/scope-it/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/npm/scope-it/pulls/3","id":51129349,"html_url":"https://github.com/npm/scope-it/pull/3","diff_url":"https://github.com/npm/scope-it/pull/3.diff","patch_url":"https://github.com/npm/scope-it/pull/3.patch","issue_url":"https://api.github.com/repos/npm/scope-it/issues/3","number":3,"state":"closed","locked":false,"title":"Ignore certain paths","user":{"login":"jangie","id":698291,"avatar_url":"https://avatars.githubusercontent.com/u/698291?v=3","gravatar_id":"","url":"https://api.github.com/users/jangie","html_url":"https://github.com/jangie","followers_url":"https://api.github.com/users/jangie/followers","following_url":"https://api.github.com/users/jangie/following{/other_user}","gists_url":"https://api.github.com/users/jangie/gists{/gist_id}","starred_url":"https://api.github.com/users/jangie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jangie/subscriptions","organizations_url":"https://api.github.com/users/jangie/orgs","repos_url":"https://api.github.com/users/jangie/repos","events_url":"https://api.github.com/users/jangie/events{/privacy}","received_events_url":"https://api.github.com/users/jangie/received_events","type":"User","site_admin":false},"body":"For our use case, we sometimes have .js files which are intended for\r\nthe client side. Oftentimes, these are minimized (and are yet huge),\r\nand this needlessly slows the scan/replace down.","created_at":"2015-11-18T19:24:24Z","updated_at":"2015-11-18T22:38:59Z","closed_at":"2015-11-18T22:20:49Z","merged_at":"2015-11-18T22:20:49Z","merge_commit_sha":"20bf88ffbf344ab8a89ad6d31dde718e40c35434","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/npm/scope-it/pulls/3/commits","review_comments_url":"https://api.github.com/repos/npm/scope-it/pulls/3/comments","review_comment_url":"https://api.github.com/repos/npm/scope-it/pulls/comments{/number}","comments_url":"https://api.github.com/repos/npm/scope-it/issues/3/comments","statuses_url":"https://api.github.com/repos/npm/scope-it/statuses/584648f710f1646f5c881af198173f1709b3ba9a","head":{"label":"jangie:ignore-sub-paths","ref":"ignore-sub-paths","sha":"584648f710f1646f5c881af198173f1709b3ba9a","user":{"login":"jangie","id":698291,"avatar_url":"https://avatars.githubusercontent.com/u/698291?v=3","gravatar_id":"","url":"https://api.github.com/users/jangie","html_url":"https://github.com/jangie","followers_url":"https://api.github.com/users/jangie/followers","following_url":"https://api.github.com/users/jangie/following{/other_user}","gists_url":"https://api.github.com/users/jangie/gists{/gist_id}","starred_url":"https://api.github.com/users/jangie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jangie/subscriptions","organizations_url":"https://api.github.com/users/jangie/orgs","repos_url":"https://api.github.com/users/jangie/repos","events_url":"https://api.github.com/users/jangie/events{/privacy}","received_events_url":"https://api.github.com/users/jangie/received_events","type":"User","site_admin":false},"repo":{"id":46439567,"name":"scope-it","full_name":"jangie/scope-it","owner":{"login":"jangie","id":698291,"avatar_url":"https://avatars.githubusercontent.com/u/698291?v=3","gravatar_id":"","url":"https://api.github.com/users/jangie","html_url":"https://github.com/jangie","followers_url":"https://api.github.com/users/jangie/followers","following_url":"https://api.github.com/users/jangie/following{/other_user}","gists_url":"https://api.github.com/users/jangie/gists{/gist_id}","starred_url":"https://api.github.com/users/jangie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jangie/subscriptions","organizations_url":"https://api.github.com/users/jangie/orgs","repos_url":"https://api.github.com/users/jangie/repos","events_url":"https://api.github.com/users/jangie/events{/privacy}","received_events_url":"https://api.github.com/users/jangie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jangie/scope-it","description":"rewrite your require statements to use a new scope.  ","fork":true,"url":"https://api.github.com/repos/jangie/scope-it","forks_url":"https://api.github.com/repos/jangie/scope-it/forks","keys_url":"https://api.github.com/repos/jangie/scope-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jangie/scope-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jangie/scope-it/teams","hooks_url":"https://api.github.com/repos/jangie/scope-it/hooks","issue_events_url":"https://api.github.com/repos/jangie/scope-it/issues/events{/number}","events_url":"https://api.github.com/repos/jangie/scope-it/events","assignees_url":"https://api.github.com/repos/jangie/scope-it/assignees{/user}","branches_url":"https://api.github.com/repos/jangie/scope-it/branches{/branch}","tags_url":"https://api.github.com/repos/jangie/scope-it/tags","blobs_url":"https://api.github.com/repos/jangie/scope-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jangie/scope-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jangie/scope-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/jangie/scope-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jangie/scope-it/statuses/{sha}","languages_url":"https://api.github.com/repos/jangie/scope-it/languages","stargazers_url":"https://api.github.com/repos/jangie/scope-it/stargazers","contributors_url":"https://api.github.com/repos/jangie/scope-it/contributors","subscribers_url":"https://api.github.com/repos/jangie/scope-it/subscribers","subscription_url":"https://api.github.com/repos/jangie/scope-it/subscription","commits_url":"https://api.github.com/repos/jangie/scope-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/jangie/scope-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/jangie/scope-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/jangie/scope-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/jangie/scope-it/contents/{+path}","compare_url":"https://api.github.com/repos/jangie/scope-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jangie/scope-it/merges","archive_url":"https://api.github.com/repos/jangie/scope-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jangie/scope-it/downloads","issues_url":"https://api.github.com/repos/jangie/scope-it/issues{/number}","pulls_url":"https://api.github.com/repos/jangie/scope-it/pulls{/number}","milestones_url":"https://api.github.com/repos/jangie/scope-it/milestones{/number}","notifications_url":"https://api.github.com/repos/jangie/scope-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jangie/scope-it/labels{/name}","releases_url":"https://api.github.com/repos/jangie/scope-it/releases{/id}","created_at":"2015-11-18T18:42:14Z","updated_at":"2015-11-18T18:42:15Z","pushed_at":"2015-11-18T19:23:37Z","git_url":"git://github.com/jangie/scope-it.git","ssh_url":"git@github.com:jangie/scope-it.git","clone_url":"https://github.com/jangie/scope-it.git","svn_url":"https://github.com/jangie/scope-it","homepage":null,"size":9,"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":"npm:master","ref":"master","sha":"0a6a22baeb0abc185a6d40c26c07c1f500996252","user":{"login":"npm","id":6078720,"avatar_url":"https://avatars.githubusercontent.com/u/6078720?v=3","gravatar_id":"","url":"https://api.github.com/users/npm","html_url":"https://github.com/npm","followers_url":"https://api.github.com/users/npm/followers","following_url":"https://api.github.com/users/npm/following{/other_user}","gists_url":"https://api.github.com/users/npm/gists{/gist_id}","starred_url":"https://api.github.com/users/npm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npm/subscriptions","organizations_url":"https://api.github.com/users/npm/orgs","repos_url":"https://api.github.com/users/npm/repos","events_url":"https://api.github.com/users/npm/events{/privacy}","received_events_url":"https://api.github.com/users/npm/received_events","type":"Organization","site_admin":false},"repo":{"id":45738031,"name":"scope-it","full_name":"npm/scope-it","owner":{"login":"npm","id":6078720,"avatar_url":"https://avatars.githubusercontent.com/u/6078720?v=3","gravatar_id":"","url":"https://api.github.com/users/npm","html_url":"https://github.com/npm","followers_url":"https://api.github.com/users/npm/followers","following_url":"https://api.github.com/users/npm/following{/other_user}","gists_url":"https://api.github.com/users/npm/gists{/gist_id}","starred_url":"https://api.github.com/users/npm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npm/subscriptions","organizations_url":"https://api.github.com/users/npm/orgs","repos_url":"https://api.github.com/users/npm/repos","events_url":"https://api.github.com/users/npm/events{/privacy}","received_events_url":"https://api.github.com/users/npm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npm/scope-it","description":"rewrite your require statements to use a new scope.  ","fork":false,"url":"https://api.github.com/repos/npm/scope-it","forks_url":"https://api.github.com/repos/npm/scope-it/forks","keys_url":"https://api.github.com/repos/npm/scope-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npm/scope-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npm/scope-it/teams","hooks_url":"https://api.github.com/repos/npm/scope-it/hooks","issue_events_url":"https://api.github.com/repos/npm/scope-it/issues/events{/number}","events_url":"https://api.github.com/repos/npm/scope-it/events","assignees_url":"https://api.github.com/repos/npm/scope-it/assignees{/user}","branches_url":"https://api.github.com/repos/npm/scope-it/branches{/branch}","tags_url":"https://api.github.com/repos/npm/scope-it/tags","blobs_url":"https://api.github.com/repos/npm/scope-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npm/scope-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npm/scope-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/npm/scope-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npm/scope-it/statuses/{sha}","languages_url":"https://api.github.com/repos/npm/scope-it/languages","stargazers_url":"https://api.github.com/repos/npm/scope-it/stargazers","contributors_url":"https://api.github.com/repos/npm/scope-it/contributors","subscribers_url":"https://api.github.com/repos/npm/scope-it/subscribers","subscription_url":"https://api.github.com/repos/npm/scope-it/subscription","commits_url":"https://api.github.com/repos/npm/scope-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/npm/scope-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/npm/scope-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/npm/scope-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/npm/scope-it/contents/{+path}","compare_url":"https://api.github.com/repos/npm/scope-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npm/scope-it/merges","archive_url":"https://api.github.com/repos/npm/scope-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npm/scope-it/downloads","issues_url":"https://api.github.com/repos/npm/scope-it/issues{/number}","pulls_url":"https://api.github.com/repos/npm/scope-it/pulls{/number}","milestones_url":"https://api.github.com/repos/npm/scope-it/milestones{/number}","notifications_url":"https://api.github.com/repos/npm/scope-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npm/scope-it/labels{/name}","releases_url":"https://api.github.com/repos/npm/scope-it/releases{/id}","created_at":"2015-11-07T13:42:53Z","updated_at":"2015-11-10T15:27:35Z","pushed_at":"2015-11-18T22:28:05Z","git_url":"git://github.com/npm/scope-it.git","ssh_url":"git@github.com:npm/scope-it.git","clone_url":"https://github.com/npm/scope-it.git","svn_url":"https://github.com/npm/scope-it","homepage":null,"size":13,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npm/scope-it/pulls/3"},"html":{"href":"https://github.com/npm/scope-it/pull/3"},"issue":{"href":"https://api.github.com/repos/npm/scope-it/issues/3"},"comments":{"href":"https://api.github.com/repos/npm/scope-it/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/npm/scope-it/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/npm/scope-it/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/npm/scope-it/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/npm/scope-it/statuses/584648f710f1646f5c881af198173f1709b3ba9a"}}}}