{"action":"created","issue":{"url":"https://api.github.com/repos/tuist/tuist/issues/101","repository_url":"https://api.github.com/repos/tuist/tuist","labels_url":"https://api.github.com/repos/tuist/tuist/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/tuist/tuist/issues/101/comments","events_url":"https://api.github.com/repos/tuist/tuist/issues/101/events","html_url":"https://github.com/tuist/tuist/issues/101","id":352440351,"node_id":"MDU6SXNzdWUzNTI0NDAzNTE=","number":101,"title":"Dependency graph command","user":{"login":"pepibumur","id":663605,"node_id":"MDQ6VXNlcjY2MzYwNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/663605?v=4","gravatar_id":"","url":"https://api.github.com/users/pepibumur","html_url":"https://github.com/pepibumur","followers_url":"https://api.github.com/users/pepibumur/followers","following_url":"https://api.github.com/users/pepibumur/following{/other_user}","gists_url":"https://api.github.com/users/pepibumur/gists{/gist_id}","starred_url":"https://api.github.com/users/pepibumur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepibumur/subscriptions","organizations_url":"https://api.github.com/users/pepibumur/orgs","repos_url":"https://api.github.com/users/pepibumur/repos","events_url":"https://api.github.com/users/pepibumur/events{/privacy}","received_events_url":"https://api.github.com/users/pepibumur/received_events","type":"User","site_admin":false},"labels":[{"id":1042459255,"node_id":"MDU6TGFiZWwxMDQyNDU5MjU1","url":"https://api.github.com/repos/tuist/tuist/labels/domain:cli","name":"domain:cli","color":"43e065","default":false},{"id":1042460263,"node_id":"MDU6TGFiZWwxMDQyNDYwMjYz","url":"https://api.github.com/repos/tuist/tuist/labels/status:ready-development","name":"status:ready-development","color":"b60205","default":false},{"id":903090203,"node_id":"MDU6TGFiZWw5MDMwOTAyMDM=","url":"https://api.github.com/repos/tuist/tuist/labels/type:enhancement","name":"type:enhancement","color":"7057ff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-21T08:41:02Z","updated_at":"2018-09-11T17:01:00Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## What 🌱\r\nSince Tuist supports defining dependencies between targets and projects, and we have that information when we parse the manifests, we could offer a command that exports the dependency graph. Xcode doesn't provide such feature and I think it's very useful for modular projects where it can be hard to know what depends on what.\r\n\r\nWe can use the [cocoapods-dependencies](https://github.com/segiddins/cocoapods-dependencies) library as a reference, which does the same for CocoaPods dependencies. \r\n\r\n## Proposal 🎉\r\nAdd a command that looks like:\r\n\r\n```\r\ntuist dependencies\r\n```\r\n\r\nAnd export the dependencies using the given format. The first implementation can export it as a JSON and we can add more formats in the future:\r\n\r\n```json\r\n{\r\n  \"TargetA\": {\r\n    \"project_path\": \"/xxx/xxx.xcodeproj\",\r\n    \"product_type\": \"application\",\r\n    \"dependencies\": [\r\n      \"TargetB\"\r\n    ]\r\n  },\r\n  \"TargetB\": {\r\n    \"project_path\": \"/xx/xx.xcodeproj\",\r\n    \"product_type\": \"framework\",\r\n    \"dependencies\": []\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/tuist/tuist/issues/comments/420345820","html_url":"https://github.com/tuist/tuist/issues/101#issuecomment-420345820","issue_url":"https://api.github.com/repos/tuist/tuist/issues/101","id":420345820,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDM0NTgyMA==","user":{"login":"pepibumur","id":663605,"node_id":"MDQ6VXNlcjY2MzYwNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/663605?v=4","gravatar_id":"","url":"https://api.github.com/users/pepibumur","html_url":"https://github.com/pepibumur","followers_url":"https://api.github.com/users/pepibumur/followers","following_url":"https://api.github.com/users/pepibumur/following{/other_user}","gists_url":"https://api.github.com/users/pepibumur/gists{/gist_id}","starred_url":"https://api.github.com/users/pepibumur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepibumur/subscriptions","organizations_url":"https://api.github.com/users/pepibumur/orgs","repos_url":"https://api.github.com/users/pepibumur/repos","events_url":"https://api.github.com/users/pepibumur/events{/privacy}","received_events_url":"https://api.github.com/users/pepibumur/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T17:01:00Z","updated_at":"2018-09-11T17:01:00Z","author_association":"CONTRIBUTOR","body":"![](https://github.trello.services/images/mini-trello-icon.png) [Dependency graph command](https://trello.com/c/pkC2l30y/22-dependency-graph-command)"}}
{"actor":{"display_login":"pepibumur"}}