{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/115","labels_url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/115/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/115/events","html_url":"https://github.com/DefinitelyTyped/tsd/issues/115","id":54300963,"number":115,"title":"tsd link --implicit proposal","user":{"login":"Toilal","id":1165758,"avatar_url":"https://avatars.githubusercontent.com/u/1165758?v=3","gravatar_id":"","url":"https://api.github.com/users/Toilal","html_url":"https://github.com/Toilal","followers_url":"https://api.github.com/users/Toilal/followers","following_url":"https://api.github.com/users/Toilal/following{/other_user}","gists_url":"https://api.github.com/users/Toilal/gists{/gist_id}","starred_url":"https://api.github.com/users/Toilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toilal/subscriptions","organizations_url":"https://api.github.com/users/Toilal/orgs","repos_url":"https://api.github.com/users/Toilal/repos","events_url":"https://api.github.com/users/Toilal/events{/privacy}","received_events_url":"https://api.github.com/users/Toilal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-14T09:32:51Z","updated_at":"2015-06-01T15:26:50Z","closed_at":null,"body":"In my project, many dependencies defined in `bower.json` and `package.json` have definition files existing in this repository, but I still have to install all those dependencies manually.\r\n\r\nI've finally manage to write a gulp script that retrieves all dependency names from bower and npm json files, and `tsd install` them based on their name.\r\n\r\nIt would be great if such features exists in `tsd` as a new command, or maybe an additionnal option to `tsd link` command, maybe `tsd link --implicit`.\r\n\r\nFYI, here's the gulp task that handles this.\r\n\r\n```js\r\n  var bower = require(path.join(process.cwd(), 'bower.json'));\r\n  var npm = require(path.join(process.cwd(), 'package.json'));\r\n\r\n  var dependencies = [].concat(\r\n    Object.keys(bower.dependencies),\r\n    Object.keys(bower.devDependencies),\r\n    Object.keys(npm.dependencies),\r\n    Object.keys(npm.devDependencies)\r\n  );\r\n\r\n  gutil.log('> tsd install ' + dependencies.join(' ') + ' -ros');\r\n  exec('tsd install ' + dependencies.join(' ') + ' -ros', function (err, stdout, stderr) {\r\n    gutil.log(stdout);\r\n    gutil.log(stderr);\r\n    if (!err) {\r\n      gutil.log('Required d.ts files have been installed in typings/ directory');\r\n    }\r\n    done(err);\r\n  });\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/comments/107582528","html_url":"https://github.com/DefinitelyTyped/tsd/issues/115#issuecomment-107582528","issue_url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/115","id":107582528,"user":{"login":"joeskeen","id":12286274,"avatar_url":"https://avatars.githubusercontent.com/u/12286274?v=3","gravatar_id":"","url":"https://api.github.com/users/joeskeen","html_url":"https://github.com/joeskeen","followers_url":"https://api.github.com/users/joeskeen/followers","following_url":"https://api.github.com/users/joeskeen/following{/other_user}","gists_url":"https://api.github.com/users/joeskeen/gists{/gist_id}","starred_url":"https://api.github.com/users/joeskeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeskeen/subscriptions","organizations_url":"https://api.github.com/users/joeskeen/orgs","repos_url":"https://api.github.com/users/joeskeen/repos","events_url":"https://api.github.com/users/joeskeen/events{/privacy}","received_events_url":"https://api.github.com/users/joeskeen/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T15:26:50Z","updated_at":"2015-06-01T15:26:50Z","body":"This would be a fantastic feature, as you could set up npm and bower to run tsd as a post-install / uninstall to keep your definition files up to date."}}