Sha256: 675d1d6f85a9db64094bec9a257c376bffe72cf761102a3fb10d6fd26b57d11f

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

require 'hyperstack-config'
require 'rails/generators'
require 'hyper-state'

# remove these once lap29 is released ...
Hyperstack.js_import 'react/react-source-browser', client_only: true, defines: ['ReactDOM', 'React']
Hyperstack.js_import 'react/react-source-server', server_only: true, defines: 'React'
#Hyperstack.js_import 'hyper-router/react-router-source', defines: ['ReactRouter', 'ReactRouterDOM', 'History']
Hyperstack.js_import 'react_ujs', defines: 'ReactRailsUJS'
# remove above once lap29 is released ...

Hyperstack.import 'hyper-router'
Hyperstack.import 'hyper-model'
Hyperstack.import 'hyper-state'

require 'generators/hyperstack/install_generator'
require 'generators/hyper/generator_base'
require 'generators/hyper/component_generator'
require 'generators/hyper/router_generator'
begin
  require 'opal-rails'
  require 'hyper-model'
  require 'hyper-router'
rescue LoadError
end
require 'react-rails'
require 'opal-browser'
require 'mini_racer'
require 'hyperstack/version'

class RailsHyperstack < Rails::Railtie
  rake_tasks do
    Dir[File.join(File.dirname(__FILE__),'tasks/hyperstack/*.rake')].each { |f| puts "loading #{f}"; load f }
  end
end

Hyperstack.define_setting :component_base_class, 'HyperComponent'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-hyperstack-1.0.alpha1.5 lib/rails-hyperstack.rb