{"action":"closed","issue":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/177","labels_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/177/comments","events_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/177/events","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/177","id":51627493,"number":177,"title":"Proposal: appPath support ","user":{"login":"marani","id":2355027,"avatar_url":"https://avatars.githubusercontent.com/u/2355027?v=3","gravatar_id":"","url":"https://api.github.com/users/marani","html_url":"https://github.com/marani","followers_url":"https://api.github.com/users/marani/followers","following_url":"https://api.github.com/users/marani/following{/other_user}","gists_url":"https://api.github.com/users/marani/gists{/gist_id}","starred_url":"https://api.github.com/users/marani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marani/subscriptions","organizations_url":"https://api.github.com/users/marani/orgs","repos_url":"https://api.github.com/users/marani/repos","events_url":"https://api.github.com/users/marani/events{/privacy}","received_events_url":"https://api.github.com/users/marani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2014-12-10T23:49:44Z","updated_at":"2015-01-01T22:33:52Z","closed_at":"2015-01-01T22:33:52Z","body":"Reposting the idea here. Should have opened for discussion before the previous PR. \r\n\r\nThe problem is to add custom path for the Angular application (fixed at `src` currently), for better flexibility to interact with different backends & also higher composability, we can perhaps reuse directly the sub generator from generator-angular. Reference: [generator-backbone](https://github.com/yeoman/generator-backbone#options) & [generator-angular](https://github.com/yeoman/generator-angular#output).\r\n\r\nI have done [a PR](https://github.com/Swiip/generator-gulp-angular/pull/148) (or 2) to address this problem, but it's a bit overkill because I changed internal code structure too much. If you want to try out: [mri/app-path](https://github.com/marani/generator-gulp-angular/tree/mri/app-path) (working but tests fail due to e2e tests issue).\r\n\r\nSo I am in progress of redoing this:\r\n1. Make `appPath` an argument (`--appPath`) rather than a prompt.\r\n2. Putting `appPath` in `bower.json` like [generator-angular](https://github.com/yeoman/generator-angular#output) ? Previously I put it in a `gulp/config/paths.js` file, which later support changing directory of other parts of app (like e2e tests..), not sure which is better?\r\n3. Also less dramatic change to internal code structure.\r\n\r\nIf you have any suggestions, please comment. Thanks."}}