Install gem react-rails-hot-loader
This commit is contained in:
parent
1b86aade85
commit
abc6279986
1
Gemfile
1
Gemfile
@ -20,6 +20,7 @@ gem 'simple_form'
|
|||||||
gem 'upmin-admin'
|
gem 'upmin-admin'
|
||||||
gem 'dotenv-rails'
|
gem 'dotenv-rails'
|
||||||
gem 'react-rails'
|
gem 'react-rails'
|
||||||
|
gem 'react-rails-hot-loader'
|
||||||
group :development do
|
group :development do
|
||||||
gem 'better_errors'
|
gem 'better_errors'
|
||||||
gem 'rubocop', require: false
|
gem 'rubocop', require: false
|
||||||
|
|||||||
10
Gemfile.lock
10
Gemfile.lock
@ -108,7 +108,11 @@ GEM
|
|||||||
dotenv-rails (2.0.2)
|
dotenv-rails (2.0.2)
|
||||||
dotenv (= 2.0.2)
|
dotenv (= 2.0.2)
|
||||||
railties (~> 4.0)
|
railties (~> 4.0)
|
||||||
|
em-websocket (0.5.1)
|
||||||
|
eventmachine (>= 0.12.9)
|
||||||
|
http_parser.rb (~> 0.6.0)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
|
eventmachine (1.0.8)
|
||||||
execjs (2.6.0)
|
execjs (2.6.0)
|
||||||
factory_girl (4.5.0)
|
factory_girl (4.5.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
@ -162,6 +166,7 @@ GEM
|
|||||||
haml (~> 4.0.0)
|
haml (~> 4.0.0)
|
||||||
nokogiri (~> 1.6.0)
|
nokogiri (~> 1.6.0)
|
||||||
ruby_parser (~> 3.5)
|
ruby_parser (~> 3.5)
|
||||||
|
http_parser.rb (0.6.0)
|
||||||
hub (1.12.4)
|
hub (1.12.4)
|
||||||
i18n (0.7.0)
|
i18n (0.7.0)
|
||||||
interception (0.5)
|
interception (0.5)
|
||||||
@ -264,6 +269,10 @@ GEM
|
|||||||
execjs
|
execjs
|
||||||
rails (>= 3.2)
|
rails (>= 3.2)
|
||||||
tilt
|
tilt
|
||||||
|
react-rails-hot-loader (0.4.0)
|
||||||
|
em-websocket
|
||||||
|
rails
|
||||||
|
react-rails
|
||||||
responders (1.1.2)
|
responders (1.1.2)
|
||||||
railties (>= 3.2, < 4.2)
|
railties (>= 3.2, < 4.2)
|
||||||
rspec (3.3.0)
|
rspec (3.3.0)
|
||||||
@ -408,6 +417,7 @@ DEPENDENCIES
|
|||||||
rb-fsevent
|
rb-fsevent
|
||||||
rb-inotify
|
rb-inotify
|
||||||
react-rails
|
react-rails
|
||||||
|
react-rails-hot-loader
|
||||||
rspec-rails
|
rspec-rails
|
||||||
rubocop
|
rubocop
|
||||||
sass-rails (~> 4.0.3)
|
sass-rails (~> 4.0.3)
|
||||||
|
|||||||
@ -16,4 +16,5 @@
|
|||||||
//= require react
|
//= require react
|
||||||
//= require react_ujs
|
//= require react_ujs
|
||||||
//= require components
|
//= require components
|
||||||
|
//= require react-rails-hot-loader
|
||||||
//= require_tree .
|
//= require_tree .
|
||||||
|
|||||||
3
config/initializers/react_rails_hot_loader.rb
Normal file
3
config/initializers/react_rails_hot_loader.rb
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if Rails.env.development?
|
||||||
|
React::Rails::HotLoader.start()
|
||||||
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user