Sha256: 50a108f6e44eaf0dcd226175feaaecfa6d4f367da4561cf3a9c52e3f4c384620
Contents?: true
Size: 859 Bytes
Versions: 7
Compression:
Stored size: 859 Bytes
Contents
# This file is used by Rack-based servers to start the application. if true require ::File.expand_path('../config/environment', __FILE__) run Dummy::Application else require 'bundler' Bundler.require require "opal/rspec" require "opal-jquery" Opal.append_path File.expand_path('../spec', __FILE__) sprockets_env = Opal::RSpec::SprocketsEnvironment.new rescue nil if sprockets_env run Opal::Server.new(sprockets: sprockets_env) { |s| s.main = 'opal/rspec/sprockets_runner' sprockets_env.add_spec_paths_to_sprockets s.debug = false s.index_path = 'spec/index.html.erb' } else run Opal::Server.new { |s| s.main = 'opal/rspec/sprockets_runner' s.append_path 'spec' #s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js")) s.debug = true s.index_path = 'spec/index.html.erb' } end end
Version data entries
7 entries across 7 versions & 1 rubygems