{"action":"closed","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/1592","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/1592/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/1592/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/1592/events","html_url":"https://github.com/Polymer/polymer/issues/1592","id":79407150,"number":1592,"title":"Better dependency management","user":{"login":"razvanz","id":3844203,"avatar_url":"https://avatars.githubusercontent.com/u/3844203?v=3","gravatar_id":"","url":"https://api.github.com/users/razvanz","html_url":"https://github.com/razvanz","followers_url":"https://api.github.com/users/razvanz/followers","following_url":"https://api.github.com/users/razvanz/following{/other_user}","gists_url":"https://api.github.com/users/razvanz/gists{/gist_id}","starred_url":"https://api.github.com/users/razvanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razvanz/subscriptions","organizations_url":"https://api.github.com/users/razvanz/orgs","repos_url":"https://api.github.com/users/razvanz/repos","events_url":"https://api.github.com/users/razvanz/events{/privacy}","received_events_url":"https://api.github.com/users/razvanz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-22T10:58:54Z","updated_at":"2015-06-03T00:53:27Z","closed_at":"2015-06-03T00:53:27Z","body":"I see that bower installations of polymer and polymer components are tightly coupled with the folder structure. \r\nThat is fine for development, but when building for production I would like to extract all the main files for each dependency in a common folder.\r\nWhy?\r\n* Static file access can be limited to only the required files.\r\n* In the process I may want to compress everything in one big minified file (Maybe not the case for now, but later could be considered).\r\n* It's easier to manage what exactly gets loaded on the client and find ways to optimize.\r\n\r\nThe way this should work is to specify the main files for each repository (component) and then to use a tool like [main-bower-files](https://www.npmjs.com/package/main-bower-files) to extract them in a common folder.\r\n\r\nAnother problem that needs to be solved is that polymer components assume a folder structure when they require the polymer file which in case of a common folder will result in broken links. A hack to solve would be to substring the directories from the path before the static files are served (which is basically [polyserve](https://github.com/PolymerLabs/polyserve)), but I wouldn't like to have something like that in production.\r\n\r\nAny thoughts on this?"}}