Sha256: d2f6a995c2521abb171c41da6bb653c5608f1c08ec78ec5815637c1f3f1b2519
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
require 'hyperstack-config' require 'rails/generators' # 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' require 'mini_racer' rescue LoadError end require 'react-rails' require 'opal-browser' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails-hyperstack-1.0.alpha1.8 | lib/rails-hyperstack.rb |
rails-hyperstack-1.0.alpha1.7 | lib/rails-hyperstack.rb |
rails-hyperstack-1.0.alpha1.6 | lib/rails-hyperstack.rb |