{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/684","labels_url":"https://api.github.com/repos/angular-ui/ui-select/issues/684/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-select/issues/684/comments","events_url":"https://api.github.com/repos/angular-ui/ui-select/issues/684/events","html_url":"https://github.com/angular-ui/ui-select/pull/684","id":58163819,"number":684,"title":"chore(refactor): split code into multiple files","user":{"login":"dimirc","id":5034942,"avatar_url":"https://avatars.githubusercontent.com/u/5034942?v=3","gravatar_id":"","url":"https://api.github.com/users/dimirc","html_url":"https://github.com/dimirc","followers_url":"https://api.github.com/users/dimirc/followers","following_url":"https://api.github.com/users/dimirc/following{/other_user}","gists_url":"https://api.github.com/users/dimirc/gists{/gist_id}","starred_url":"https://api.github.com/users/dimirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimirc/subscriptions","organizations_url":"https://api.github.com/users/dimirc/orgs","repos_url":"https://api.github.com/users/dimirc/repos","events_url":"https://api.github.com/users/dimirc/events{/privacy}","received_events_url":"https://api.github.com/users/dimirc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-19T03:31:23Z","updated_at":"2015-02-20T13:52:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular-ui/ui-select/pulls/684","html_url":"https://github.com/angular-ui/ui-select/pull/684","diff_url":"https://github.com/angular-ui/ui-select/pull/684.diff","patch_url":"https://github.com/angular-ui/ui-select/pull/684.patch"},"body":"I think it's time to split the code into different files to get more organized. Basically I split each main directive and service into different files and did a small change on the gulpfile to concat them when building.\r\n\r\nI guess that this split might also help to avoid people pushing changes to /dist/select.js file and do the PR on the specific /src files\r\n\r\nThis is how it will look:\r\n![image](https://cloud.githubusercontent.com/assets/5034942/6261489/1b58eaf4-b7be-11e4-9b0d-f78d61f79d26.png)\r\n\r\n\r\nLater we should also reorganize the themes folders (check https://github.com/angular-ui/ui-select/issues/186)\r\n\r\nLet me know your opinion\r\n\r\nRelated to: https://github.com/angular-ui/ui-select/issues/649"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/comments/75240591","html_url":"https://github.com/angular-ui/ui-select/pull/684#issuecomment-75240591","issue_url":"https://api.github.com/repos/angular-ui/ui-select/issues/684","id":75240591,"user":{"login":"brianfeister","id":806536,"avatar_url":"https://avatars.githubusercontent.com/u/806536?v=3","gravatar_id":"","url":"https://api.github.com/users/brianfeister","html_url":"https://github.com/brianfeister","followers_url":"https://api.github.com/users/brianfeister/followers","following_url":"https://api.github.com/users/brianfeister/following{/other_user}","gists_url":"https://api.github.com/users/brianfeister/gists{/gist_id}","starred_url":"https://api.github.com/users/brianfeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianfeister/subscriptions","organizations_url":"https://api.github.com/users/brianfeister/orgs","repos_url":"https://api.github.com/users/brianfeister/repos","events_url":"https://api.github.com/users/brianfeister/events{/privacy}","received_events_url":"https://api.github.com/users/brianfeister/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T13:52:35Z","updated_at":"2015-02-20T13:52:35Z","body":"This looks good to me @dimirc.  Would be a great time to think about how we generate distributions, whether the theme files can be broken out per the discussions in #175, #186, #529... obviously the scope of that is bigger, however.  My company just made the decision to move to Angular Material over Bootstrap, so it would be great to both include that as a new theme and also come up with a strategy for breaking out dependencies and having a way to reference different CSS and angular templates per theme #438"}}