class RailsVite::Instance
Attributes
config_path[R]
root_path[R]
Public Class Methods
new(root_path: Rails.root, config_path: Rails.root.join('config/rails_vite.yml'))
click to toggle source
# File lib/rails_vite/instance.rb, line 7 def initialize(root_path: Rails.root, config_path: Rails.root.join('config/rails_vite.yml')) @root_path = root_path @config_path = config_path end
Public Instance Methods
commands()
click to toggle source
# File lib/rails_vite/instance.rb, line 36 def commands @commands ||= Commands.new self end
compiler()
click to toggle source
# File lib/rails_vite/instance.rb, line 24 def compiler @compiler ||= Compiler.new self end
config()
click to toggle source
# File lib/rails_vite/instance.rb, line 16 def config @config ||= Configuration.new( root_path: root_path, config_path: config_path, env: env ) end
dev_server()
click to toggle source
# File lib/rails_vite/instance.rb, line 28 def dev_server @dev_server ||= DevServer.new config end
env()
click to toggle source
# File lib/rails_vite/instance.rb, line 12 def env @env ||= Env.inquire self end
manifest()
click to toggle source
# File lib/rails_vite/instance.rb, line 32 def manifest @manifest ||= Manifest.new self end