{"action":"created","issue":{"url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/44","labels_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/44/comments","events_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/44/events","html_url":"https://github.com/rwz/ember-cli-rails/issues/44","id":53348847,"number":44,"title":"Conditionally suppress Ember, Ember-Data and Handlebars from vendor.js","user":{"login":"bradurani","id":4195952,"avatar_url":"https://avatars.githubusercontent.com/u/4195952?v=3","gravatar_id":"","url":"https://api.github.com/users/bradurani","html_url":"https://github.com/bradurani","followers_url":"https://api.github.com/users/bradurani/followers","following_url":"https://api.github.com/users/bradurani/following{/other_user}","gists_url":"https://api.github.com/users/bradurani/gists{/gist_id}","starred_url":"https://api.github.com/users/bradurani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradurani/subscriptions","organizations_url":"https://api.github.com/users/bradurani/orgs","repos_url":"https://api.github.com/users/bradurani/repos","events_url":"https://api.github.com/users/bradurani/events{/privacy}","received_events_url":"https://api.github.com/users/bradurani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-04T21:18:23Z","updated_at":"2015-01-08T04:31:47Z","closed_at":null,"body":"Similar to [this issue] (https://github.com/rwz/ember-cli-rails/issues/32), it would be nice to be able to prevent Ember, Ember-Data and Handlebars from being included in vendor.js if the ember-rails gem is present. This would be useful for sites that have more than one ember app. Currently, under this scenario, Ember, Ember-Data and Handlebars are downloaded once for each app.\r\n\r\nReally, depending on the presence of the gems to detect jQuery and Ember doesn't cover all use cases. Many teams like to use Bower to include these in their Rails apps (I mean using Bower directly in Rails, not in Ember CLI). Since there's no way to detect that, maybe it would be useful to have additional options in the ember-cli-rails initializer that can manually suppress these imports?\r\n\r\nI don't know enough about Ember CLI to know if it will build without Ember included though.\r\n\r\nI'm willing to work on this if you think it's a good idea, but it will be a few weeks before I have the time. Thanks for the awesome gem!"},"comment":{"url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/comments/69134697","html_url":"https://github.com/rwz/ember-cli-rails/issues/44#issuecomment-69134697","issue_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/44","id":69134697,"user":{"login":"rwz","id":129043,"avatar_url":"https://avatars.githubusercontent.com/u/129043?v=3","gravatar_id":"","url":"https://api.github.com/users/rwz","html_url":"https://github.com/rwz","followers_url":"https://api.github.com/users/rwz/followers","following_url":"https://api.github.com/users/rwz/following{/other_user}","gists_url":"https://api.github.com/users/rwz/gists{/gist_id}","starred_url":"https://api.github.com/users/rwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwz/subscriptions","organizations_url":"https://api.github.com/users/rwz/orgs","repos_url":"https://api.github.com/users/rwz/repos","events_url":"https://api.github.com/users/rwz/events{/privacy}","received_events_url":"https://api.github.com/users/rwz/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T04:31:47Z","updated_at":"2015-01-08T04:31:47Z","body":"Related: https://github.com/rwz/ember-cli-rails/issues/49\r\n\r\nCrossposting my new **totally awesome** (!!!) idea about how we should deal with that:\r\n\r\n```ruby\r\nEmberCLI.configure do |config|\r\n  config.app :frontend, exclude_vendor: %w[jquery ember-data some-other-script]\r\nend\r\n```\r\n\r\nWhat do you guys think? //cc @rondale-sc @rwjblue "}}