{"action":"created","issue":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/768","labels_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/768/labels{/name}","comments_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/768/comments","events_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/768/events","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/768","id":105787792,"number":768,"title":"Suggestion: exclude `.mock.js` files only on build tasks.","user":{"login":"mdentinho","id":210138,"avatar_url":"https://avatars.githubusercontent.com/u/210138?v=3","gravatar_id":"","url":"https://api.github.com/users/mdentinho","html_url":"https://github.com/mdentinho","followers_url":"https://api.github.com/users/mdentinho/followers","following_url":"https://api.github.com/users/mdentinho/following{/other_user}","gists_url":"https://api.github.com/users/mdentinho/gists{/gist_id}","starred_url":"https://api.github.com/users/mdentinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdentinho/subscriptions","organizations_url":"https://api.github.com/users/mdentinho/orgs","repos_url":"https://api.github.com/users/mdentinho/repos","events_url":"https://api.github.com/users/mdentinho/events{/privacy}","received_events_url":"https://api.github.com/users/mdentinho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-10T11:29:26Z","updated_at":"2015-09-11T07:46:27Z","closed_at":null,"body":"Currently the `*.mock.js` files are only used for tests, but for a use case where you are working Backendless (more about it [here](http://www.jeremyzerr.com/angularjs-backend-less-development-using-httpbackend-mock)) and need to mock the backend http responses, they would be the \"best\" place to put the mocked backend.\r\n\r\nFor this to be able to work, the `inject` task scripts list should only exclude those files when called by any of the `build` tasks. But it could also have a `build:mock` task where they are included so, if necessary, the project can be built with the mocked backend too."},"comment":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/comments/139476147","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/768#issuecomment-139476147","issue_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/768","id":139476147,"user":{"login":"Swiip","id":475895,"avatar_url":"https://avatars.githubusercontent.com/u/475895?v=3","gravatar_id":"","url":"https://api.github.com/users/Swiip","html_url":"https://github.com/Swiip","followers_url":"https://api.github.com/users/Swiip/followers","following_url":"https://api.github.com/users/Swiip/following{/other_user}","gists_url":"https://api.github.com/users/Swiip/gists{/gist_id}","starred_url":"https://api.github.com/users/Swiip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swiip/subscriptions","organizations_url":"https://api.github.com/users/Swiip/orgs","repos_url":"https://api.github.com/users/Swiip/repos","events_url":"https://api.github.com/users/Swiip/events{/privacy}","received_events_url":"https://api.github.com/users/Swiip/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T07:46:27Z","updated_at":"2015-09-11T07:46:27Z","body":"Your reasoning seams right but I don't see this for everyone. Few people has this need I think."}}