2015-07-14 13:08:28 +02:00
|
|
|
require 'bundler'
|
|
|
|
Bundler.require
|
2015-08-20 02:14:33 +02:00
|
|
|
require 'tilt/erb'
|
2015-07-14 13:08:28 +02:00
|
|
|
require "opal"
|
2018-04-17 15:35:42 +02:00
|
|
|
require 'opal-sprockets'
|
2015-08-20 00:53:39 +02:00
|
|
|
|
2018-04-03 15:48:45 +02:00
|
|
|
Opal.use_gem("rubyx")
|
2015-07-14 13:08:28 +02:00
|
|
|
|
2018-04-17 15:35:42 +02:00
|
|
|
run Opal::Sprockets::Server.new { |s|
|
2018-04-03 18:35:25 +02:00
|
|
|
s.main = 'debugger.js.rb'
|
2015-07-14 13:08:28 +02:00
|
|
|
s.append_path 'lib'
|
2015-08-20 02:14:33 +02:00
|
|
|
s.append_path 'assets'
|
2018-04-04 12:16:59 +02:00
|
|
|
s.debug = !ENV["DEBUG"].nil?
|
2015-08-20 02:14:33 +02:00
|
|
|
s.index_path = "index.html.erb"
|
2018-04-17 17:49:00 +02:00
|
|
|
s.sprockets.cache = Sprockets::Cache::MemoryStore.new(50000)
|
2018-04-17 15:35:42 +02:00
|
|
|
}
|