module Isomorfeus

Attributes

app_root[RW]
asset_manager_hmr_channel[RW]
asset_manager_hmr_dirs[RW]
asset_manager_tmpdir[RW]
assets[RW]
assets_path[RW]
assets_websocket_path[RW]
env[R]
hmr_listener[RW]
node_paths[RW]
root[RW]

Public Class Methods

add_common_js_import(*args) click to toggle source
# File lib/isomorfeus/asset_manager/config.rb, line 27
def add_common_js_import(*args)
  Isomorfeus.assets['web.js'].add_js_import(*args)
  Isomorfeus.assets['ssr.js'].add_js_import(*args)
end
add_common_ruby_import(*args) click to toggle source
# File lib/isomorfeus/asset_manager/config.rb, line 40
def add_common_ruby_import(*args)
  Isomorfeus.assets['web.js'].add_ruby_import(*args)
  Isomorfeus.assets['ssr.js'].add_ruby_import(*args)
end
add_ssr_js_import(*args) click to toggle source
# File lib/isomorfeus/asset_manager/config.rb, line 23
def add_ssr_js_import(*args)
  Isomorfeus.assets['ssr.js'].add_js_import(*args)
end
add_ssr_ruby_import(*args) click to toggle source
# File lib/isomorfeus/asset_manager/config.rb, line 36
def add_ssr_ruby_import(*args)
  Isomorfeus.assets['ssr.js'].add_ruby_import(*args)
end
add_web_js_import(*args) click to toggle source
# File lib/isomorfeus/asset_manager/config.rb, line 19
def add_web_js_import(*args)
  Isomorfeus.assets['web.js'].add_js_import(*args)
end
add_web_ruby_import(*args) click to toggle source
# File lib/isomorfeus/asset_manager/config.rb, line 32
def add_web_ruby_import(*args)
  Isomorfeus.assets['web.js'].add_ruby_import(*args)
end
development?() click to toggle source
# File lib/isomorfeus/asset_manager/config.rb, line 53
def development?
  @development
end
env=(env_string) click to toggle source

client side env is initialized in isomorfeus-preact

# File lib/isomorfeus/asset_manager/config.rb, line 46
def env=(env_string)
  @env = env_string ? env_string.to_s : 'development'
  @development = (@env == 'development') ? true : false
  @production = (@env == 'production') ? true : false
  @test = (@env == 'test') ? true : false
end
production?() click to toggle source
# File lib/isomorfeus/asset_manager/config.rb, line 57
def production?
  @production
end
test?() click to toggle source
# File lib/isomorfeus/asset_manager/config.rb, line 61
def test?
  @test
end