Install gem react-rails-hot-loader

This commit is contained in:
Jesse C. Fisher 2015-11-10 03:47:54 -08:00
parent 1b86aade85
commit abc6279986
4 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,7 @@ gem 'simple_form'
gem 'upmin-admin'
gem 'dotenv-rails'
gem 'react-rails'
gem 'react-rails-hot-loader'
group :development do
gem 'better_errors'
gem 'rubocop', require: false

View File

@ -108,7 +108,11 @@ GEM
dotenv-rails (2.0.2)
dotenv (= 2.0.2)
railties (~> 4.0)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
erubis (2.7.0)
eventmachine (1.0.8)
execjs (2.6.0)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
@ -162,6 +166,7 @@ GEM
haml (~> 4.0.0)
nokogiri (~> 1.6.0)
ruby_parser (~> 3.5)
http_parser.rb (0.6.0)
hub (1.12.4)
i18n (0.7.0)
interception (0.5)
@ -264,6 +269,10 @@ GEM
execjs
rails (>= 3.2)
tilt
react-rails-hot-loader (0.4.0)
em-websocket
rails
react-rails
responders (1.1.2)
railties (>= 3.2, < 4.2)
rspec (3.3.0)
@ -408,6 +417,7 @@ DEPENDENCIES
rb-fsevent
rb-inotify
react-rails
react-rails-hot-loader
rspec-rails
rubocop
sass-rails (~> 4.0.3)

View File

@ -16,4 +16,5 @@
//= require react
//= require react_ujs
//= require components
//= require react-rails-hot-loader
//= require_tree .

View File

@ -0,0 +1,3 @@
if Rails.env.development?
React::Rails::HotLoader.start()
end