{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1809bdc58abcce9dfd9957ea3b2ec590?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1809bdc58abcce9dfd9957ea3b2ec590","url":"https://api.github.com/users/michaelsbradleyjr","login":"michaelsbradleyjr","id":194260},"assignee":null,"updated_at":"2011-11-17T10:53:15Z","labels":[],"closed_at":null,"comments":9,"url":"https://api.github.com/repos/isaacs/npm/issues/1167","body":"I started exploring the recommended practice of having my test-harness dependency listed in \"devDependencies\".  At the same time, I decided to add an \"script\" called \"web-test\", which involves spinning up a 'connect' instance to serve up the tests targeting browser environments.\r\n\r\nBut there's a \"downside\" then to installing with:\r\n\r\n     npm install mypkg --dev\r\n\r\nNamely, all the packages in \"devDependencies\" (which in this case include connect) in turn have their \"devDependencies\" installed, and so on.\r\n\r\nWould it be possible to specify the depth at which `--dev` will take effect?\r\n","html_url":"https://github.com/isaacs/npm/issues/1167","title":"option to have `--dev` flag, devDependencies depth limited","number":1167,"id":1255087,"created_at":"2011-07-20T09:00:32Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/88e66469431b52ecccb22a51eca1a221?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"88e66469431b52ecccb22a51eca1a221","url":"https://api.github.com/users/peritus","login":"peritus","id":11022},"updated_at":"2011-11-17T10:53:15Z","url":"https://api.github.com/repos/isaacs/npm/issues/comments/2774669","body":"Here's a workaround for your Rakefile:\r\n\r\n```ruby\r\n\r\n    sh \"npm link\"\r\n\r\n    # install devDependencies, as long as\r\n    # https://github.com/isaacs/npm/issues/1167 is not fixed\r\n\r\n    devDependencies = JSON.parse(`cat package.json`)['devDependencies']\r\n    devDependencies.each do |package_name, package_version|\r\n      sh \"npm install #{package_name}@#{package_version}\"\r\n    end\r\n```","id":2774669,"created_at":"2011-11-17T10:53:15Z"}}