{"action":"opened","issue":{"url":"https://api.github.com/repos/torba-rb/torba/issues/31","repository_url":"https://api.github.com/repos/torba-rb/torba","labels_url":"https://api.github.com/repos/torba-rb/torba/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/torba-rb/torba/issues/31/comments","events_url":"https://api.github.com/repos/torba-rb/torba/issues/31/events","html_url":"https://github.com/torba-rb/torba/issues/31","id":140145513,"number":31,"title":"Auto pack in development","user":{"login":"JanStevens","id":1540483,"avatar_url":"https://avatars.githubusercontent.com/u/1540483?v=3","gravatar_id":"","url":"https://api.github.com/users/JanStevens","html_url":"https://github.com/JanStevens","followers_url":"https://api.github.com/users/JanStevens/followers","following_url":"https://api.github.com/users/JanStevens/following{/other_user}","gists_url":"https://api.github.com/users/JanStevens/gists{/gist_id}","starred_url":"https://api.github.com/users/JanStevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanStevens/subscriptions","organizations_url":"https://api.github.com/users/JanStevens/orgs","repos_url":"https://api.github.com/users/JanStevens/repos","events_url":"https://api.github.com/users/JanStevens/events{/privacy}","received_events_url":"https://api.github.com/users/JanStevens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-11T10:12:50Z","updated_at":"2016-03-11T10:12:50Z","closed_at":null,"body":"We used to have bower and one thing devs always forget after pulling from master is to do a `bower install`.\r\n\r\nWith torba I automated the process by including the following file in an initializer:\r\n\r\n```ruby\r\n# Auto pack when in development, normally assets:precompile takes care of this\r\nclass TorbaAutoPack\r\n  def self.start!\r\n    Torba.verify\r\n  rescue Torba::Errors::MissingPackages\r\n    Rails.logger.error \"Assets not packed yet, packing...\"\r\n    Torba.pack\r\n    Rails.logger.error 'Done asset packing, booting...'\r\n  rescue Errors::NothingToImport => e\r\n    Rails.logger.error \"Couldn't import an asset(-s) '#{e.path}' from import list in '#{e.package}'.\"\r\n    Rails.logger.error \"Check for typos.\"\r\n    Rails.logger.error \"Make sure that the path has trailing '/' if its a directory.\"\r\n  rescue Errors::AssetNotFound => e\r\n    Rails.logger.error \"Couldn't find an asset with path '#{e.message}'.\"\r\n    Rails.logger.error \"Make sure that you've imported all image/font assets mentioned in a stylesheet(-s).\"\r\n  end\r\nend\r\n\r\nTorbaAutoPack.start! if Rails.env.development?\r\n```\r\n\r\nWould be awesome if we could include this in the `torba/rails` file when we are on development"}}