
require 'opal'

# require 'client_and_server'
# require 'react/react-source-browser'
# require 'react/react-source-server'

require 'hyper-component'

if React::IsomorphicHelpers.on_opal_client?
  require 'opal-jquery'
  # require 'browser' # disable for phantomjs
  require 'browser/interval'
  require 'browser/delay'
  require 'opal_hot_reloader'
  OpalHotReloader.listen
end

require 'hyper-model'
require 'hyper-store'
require 'hyper-operation'
require 'reactrb/auto-import'
# require 'hyper-router/react-router-source'
require 'hyper-router'

require 'hyper-console'
require_tree './models' if RUBY_ENGINE == 'opal'
require_tree './components'
require_tree './operations'
require_tree './stores'
