lib/staticky.rb in staticky-0.2.0 vs lib/staticky.rb in staticky-0.3.0
- old
+ new
@@ -33,13 +33,14 @@
module_function
extend Dry::Configurable
setting :env, default: ENV.fetch("RACK_ENV", "development").to_sym
- setting :build_path, default: Pathname.new("build")
+ setting :build_path, default: Pathname(__dir__).join("..", "build")
setting :root_path, default: Pathname(__dir__)
setting :logger, default: Dry.Logger(:staticky, template: :details)
+ setting :live_reloading, default: true
setting :server_logger, default: Dry.Logger(
:staticky_server,
template: :details,
formatter: :rack
)
@@ -51,9 +52,10 @@
def root_path = config.root_path
def resources = router.resources
def router = application[:router]
def builder = application[:builder]
def generator = application[:generator]
+ def files = application[:files]
def application = Application
def env
Environment.new config.env.to_sym
end