{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/318","labels_url":"https://api.github.com/repos/facebook/jest/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/318/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/318/events","html_url":"https://github.com/facebook/jest/pull/318","id":65735880,"number":318,"title":"Automatically ignore devDependencies","user":{"login":"hankhsiao","id":2044960,"avatar_url":"https://avatars.githubusercontent.com/u/2044960?v=3","gravatar_id":"","url":"https://api.github.com/users/hankhsiao","html_url":"https://github.com/hankhsiao","followers_url":"https://api.github.com/users/hankhsiao/followers","following_url":"https://api.github.com/users/hankhsiao/following{/other_user}","gists_url":"https://api.github.com/users/hankhsiao/gists{/gist_id}","starred_url":"https://api.github.com/users/hankhsiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hankhsiao/subscriptions","organizations_url":"https://api.github.com/users/hankhsiao/orgs","repos_url":"https://api.github.com/users/hankhsiao/repos","events_url":"https://api.github.com/users/hankhsiao/events{/privacy}","received_events_url":"https://api.github.com/users/hankhsiao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T17:22:16Z","updated_at":"2015-04-01T18:58:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/318","html_url":"https://github.com/facebook/jest/pull/318","diff_url":"https://github.com/facebook/jest/pull/318.diff","patch_url":"https://github.com/facebook/jest/pull/318.patch"},"body":"One performance issue on Jest is that it scan all files in ``node_modules``. But we want to ignore those development dependencies.\r\n\r\nThis PR tries to append the development dependencies to ``modulePathIgnorePatterns``.\r\n\r\nThe definition of the development dependencies is the package\r\n1. in ``devDependencies``\r\n2. and not in ``dependencies``\r\n3. and not in ``peerDependencies``\r\n\r\nBut there could be an issue, so want to discuss with you guys.\r\n1. People write test with some util package, such like ``lodash``, and they will put it into ``devDependencies`` and will be invisible to Jest.\r\n\r\nIn this case, maybe I can introduce ``-lodash``, so will exclude it out of the ```modulePathIgnorePatterns``. Any idea?"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/88594969","html_url":"https://github.com/facebook/jest/pull/318#issuecomment-88594969","issue_url":"https://api.github.com/repos/facebook/jest/issues/318","id":88594969,"user":{"login":"hankhsiao","id":2044960,"avatar_url":"https://avatars.githubusercontent.com/u/2044960?v=3","gravatar_id":"","url":"https://api.github.com/users/hankhsiao","html_url":"https://github.com/hankhsiao","followers_url":"https://api.github.com/users/hankhsiao/followers","following_url":"https://api.github.com/users/hankhsiao/following{/other_user}","gists_url":"https://api.github.com/users/hankhsiao/gists{/gist_id}","starred_url":"https://api.github.com/users/hankhsiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hankhsiao/subscriptions","organizations_url":"https://api.github.com/users/hankhsiao/orgs","repos_url":"https://api.github.com/users/hankhsiao/repos","events_url":"https://api.github.com/users/hankhsiao/events{/privacy}","received_events_url":"https://api.github.com/users/hankhsiao/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T18:58:34Z","updated_at":"2015-04-01T18:58:34Z","body":"@jeffmo please take a look if available."}}