{"action":"created","issue":{"url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/665","labels_url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/665/labels{/name}","comments_url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/665/comments","events_url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/665/events","html_url":"https://github.com/monarch-initiative/monarch-app/issues/665","id":59741529,"number":665,"title":"Develop and implement module strategy","user":{"login":"harryhoch","id":174707,"avatar_url":"https://avatars.githubusercontent.com/u/174707?v=3","gravatar_id":"","url":"https://api.github.com/users/harryhoch","html_url":"https://github.com/harryhoch","followers_url":"https://api.github.com/users/harryhoch/followers","following_url":"https://api.github.com/users/harryhoch/following{/other_user}","gists_url":"https://api.github.com/users/harryhoch/gists{/gist_id}","starred_url":"https://api.github.com/users/harryhoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harryhoch/subscriptions","organizations_url":"https://api.github.com/users/harryhoch/orgs","repos_url":"https://api.github.com/users/harryhoch/repos","events_url":"https://api.github.com/users/harryhoch/events{/privacy}","received_events_url":"https://api.github.com/users/harryhoch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-04T02:30:00Z","updated_at":"2015-03-05T00:20:01Z","closed_at":null,"body":"Phenogrid and presumably other widgets will be part of monarch-app, but will also be used as standalone components by third parties.   As a result, inclusion of the phenogrid code in the monarch-app repository is non-optimal. \r\n\r\nWe need a strategy for including components like phenogrid  \"by reference\". Monarch-app should simply get the required code when needed.  Possible approaches for managing this include:\r\n\r\n1. ad-hoc scripts: already implemented for phenogrid. Advantages - flexibility. Disadvantages - may not play well with some environments. These scripts posed a problem for deployment on tartini.\r\n\r\n2. Git submodules  - http://www.git-scm.com/book/en/v2/Git-Tools-Submodules. Pros - integrate well with the git ecosystem. Cons - I personally have not used them. Some comments on the web hint at possible challenges.\r\n\r\n3. npm/bower, or other configuration manager -. Pros - widely used. Cons - more focused on node.js so not directly applicable. \r\n\r\nThoughts? Other alternatives? "},"comment":{"url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/comments/77280623","html_url":"https://github.com/monarch-initiative/monarch-app/issues/665#issuecomment-77280623","issue_url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/665","id":77280623,"user":{"login":"jnguyenx","id":4312088,"avatar_url":"https://avatars.githubusercontent.com/u/4312088?v=3","gravatar_id":"","url":"https://api.github.com/users/jnguyenx","html_url":"https://github.com/jnguyenx","followers_url":"https://api.github.com/users/jnguyenx/followers","following_url":"https://api.github.com/users/jnguyenx/following{/other_user}","gists_url":"https://api.github.com/users/jnguyenx/gists{/gist_id}","starred_url":"https://api.github.com/users/jnguyenx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnguyenx/subscriptions","organizations_url":"https://api.github.com/users/jnguyenx/orgs","repos_url":"https://api.github.com/users/jnguyenx/repos","events_url":"https://api.github.com/users/jnguyenx/events{/privacy}","received_events_url":"https://api.github.com/users/jnguyenx/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T00:20:01Z","updated_at":"2015-03-05T00:20:01Z","body":"You should definitely not embed your dependencies in the bundle, that's the best way to get conflicts.\r\n\r\nPopular frameworks offer the following distributions type: (ie: angularjs, facebook react, etc..)\r\n* zip\r\n* CDN\r\n* npm\r\n\" bower\r\n\r\nThey must have a simlpe way to deliver to all these platforms with a single command, maybe with Grunt? We'll need to inspect their github repos to see that.\r\n\r\nAnyhow I find CDN very handy for fast prototyping, but larger applications certainly need a proper dependency management system."}}