{"action":"created","issue":{"url":"https://api.github.com/repos/yeoman/generator/issues/819","labels_url":"https://api.github.com/repos/yeoman/generator/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/yeoman/generator/issues/819/comments","events_url":"https://api.github.com/repos/yeoman/generator/issues/819/events","html_url":"https://github.com/yeoman/generator/issues/819","id":88545185,"number":819,"title":"registerTransformStream in composed generators is not applied","user":{"login":"olsonpm","id":5957709,"avatar_url":"https://avatars.githubusercontent.com/u/5957709?v=3","gravatar_id":"","url":"https://api.github.com/users/olsonpm","html_url":"https://github.com/olsonpm","followers_url":"https://api.github.com/users/olsonpm/followers","following_url":"https://api.github.com/users/olsonpm/following{/other_user}","gists_url":"https://api.github.com/users/olsonpm/gists{/gist_id}","starred_url":"https://api.github.com/users/olsonpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olsonpm/subscriptions","organizations_url":"https://api.github.com/users/olsonpm/orgs","repos_url":"https://api.github.com/users/olsonpm/repos","events_url":"https://api.github.com/users/olsonpm/events{/privacy}","received_events_url":"https://api.github.com/users/olsonpm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yeoman/generator/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/yeoman/generator/labels/medium","name":"medium","color":"fef2c0"},{"url":"https://api.github.com/repos/yeoman/generator/labels/to-discuss","name":"to-discuss","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T21:26:31Z","updated_at":"2015-06-15T23:19:56Z","closed_at":null,"body":"When using composeWith, the composed generators' registered transform streams are not applied.\r\n\r\nIs this by design?\r\n\r\nExplanation by example:\r\n\r\nAssume two generators\r\n - generator-base\r\n - generator-child\r\n\r\ngenerator-base calls `composeWith('child', ...`\r\ngenerator-child calls `this.registerTransformStream`\r\n\r\nif you run `yo child`, the transform stream is applied\r\nif you run `yo base`, the transform stream is ignored\r\n\r\nRepo to reproduce the issue: https://github.com/olsonpm/composeWith-registerTransformStream\r\n"},"comment":{"url":"https://api.github.com/repos/yeoman/generator/issues/comments/112235858","html_url":"https://github.com/yeoman/generator/issues/819#issuecomment-112235858","issue_url":"https://api.github.com/repos/yeoman/generator/issues/819","id":112235858,"user":{"login":"olsonpm","id":5957709,"avatar_url":"https://avatars.githubusercontent.com/u/5957709?v=3","gravatar_id":"","url":"https://api.github.com/users/olsonpm","html_url":"https://github.com/olsonpm","followers_url":"https://api.github.com/users/olsonpm/followers","following_url":"https://api.github.com/users/olsonpm/following{/other_user}","gists_url":"https://api.github.com/users/olsonpm/gists{/gist_id}","starred_url":"https://api.github.com/users/olsonpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olsonpm/subscriptions","organizations_url":"https://api.github.com/users/olsonpm/orgs","repos_url":"https://api.github.com/users/olsonpm/repos","events_url":"https://api.github.com/users/olsonpm/events{/privacy}","received_events_url":"https://api.github.com/users/olsonpm/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T23:19:56Z","updated_at":"2015-06-15T23:19:56Z","body":"Thanks for the feedback - I don't feel I can contribute to a discussion without looking at how composed generators implement mem-fs (basically whether the stores are shared).  In the next couple days I'll take a look so I can have a high-level solution thought up.\r\n\r\nThat said, my immediate expectation was that each generator would apply their writes individually.  Say if generator-child1 wrote file 'test.js' and generator-child2 also wrote file 'test.js' - the result would be the transformed file of each, likely causing a conflict.  I understand the existing implementation might not easily allow for this."}}